|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/TEST/www/../../MCPRO/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include_once 'code/init.php';
if(!empty($_POST))
{
foreach ($_POST as $key => $value)
{
list($nb) = dbi_fetch_row(dbi_query("SELECT count(*) FROM ".TABLE_CONFIG." where agence_id = $agence AND `key` = '".addslashes($key)."'")) ;
if($nb)
dbi_query("UPDATE ".TABLE_CONFIG." SET value='".addslashes($value)."' where agence_id = $agence AND `key` = '".addslashes($key)."'") ;
else
dbi_query("INSERT INTO ".TABLE_CONFIG." (`key`, value, agence_id) VALUES ('".addslashes($key)."', '".addslashes($value)."', $agence)") ;
}
}
print_header ();
$q = dbi_query("SELECT * FROM ".TABLE_CONFIG." WHERE agence_id=$agence") ;
$conf = array() ;
while($r = dbi_fetch_row($q))
$conf[$r['key']] = $r['value'] ;
?>
<script language="javascript" type="text/javascript">
<!--
function color (name, value)
{
open('colors.php?elem='+name+'&color='+value, 'color',
'width=361,height=435,top='+((screen.height-435)/2)+',left='+((screen.width-361)/2)+',status=0,resizable=0,scrollbars=no').focus() ;
}
-->
</script>
<form action="admin_cal.php" method="post">
<h1>Couleurs</h1>
<table class="td_normal">
<tr>
<td class="td_listing1">Disponibilité :</td>
<td class="td_listing1"><input id="dispo" name="dispo" value="<?=$conf['dispo']?>"> <input type="button" value="Sélectionner" onclick="color('dispo', this.form.dispo.value) ;"></td>
</tr>
<tr>
<td class="td_listing0">Absence :</td>
<td class="td_listing0"><input id="abs" name="abs" value="<?=$conf['abs']?>"> <input type="button" value="Sélectionner" onclick="color('abs', this.form.abs.value)"></td>
</tr>
<tr>
<td class="td_listing1">Prestation :</td>
<td class="td_listing1"><input id="prest" name="prest" value="<?=$conf['prest']?>"> <input type="button" value="Sélectionner" onclick="color('prest', this.form.prest.value)"></td>
</tr>
<tr>
<td class="td_listing0">Prestation hors disponibilité :</td>
<td class="td_listing0"><input id="presthd" name="presthd" value="<?=$conf['presthd']?>"> <input type="button" value="Sélectionner" onclick="color('presthd', this.form.presthd.value)"></td>
</tr>
<tr>
<td class="td_listing1">Prestation régulière :</td>
<td class="td_listing1"><input id="prestr" name="prestr" value="<?=$conf['prestr']?>"> <input type="button" value="Sélectionner" onclick="color('prestr', this.form.prestr.value)"></td>
</tr>
<tr>
<td class="td_listing0">Prestation régulière hors disponibilité :</td>
<td class="td_listing0"><input id="prestrhd" name="prestrhd" value="<?=$conf['prestrhd']?>"> <input type="button" value="Sélectionner" onclick="color('prestrhd', this.form.prestrhd.value)"></td>
</tr>
<tr>
<td class="td_listing1">Prestation pendant absence :</td>
<td class="td_listing1"><input id="prestabs" name="prestabs" value="<?=$conf['prestabs']?>"> <input type="button" value="Sélectionner" onclick="color('prestabs', this.form.prestabs.value)"></td>
</tr>
<tr>
<td class="td_listing0">Chevauchement de prestations :</td>
<td class="td_listing0"><input id="prestc" name="prestc" value="<?=$conf['prestc']?>"> <input type="button" value="Sélectionner" onclick="color('prestc', this.form.prestc.value)"></td>
</tr>
<tr>
<td class="td_listing1">Chevauchement de prestations pendant absence :</td>
<td class="td_listing1"><input id="prestcabs" name="prestcabs" value="<?=$conf['prestcabs']?>"> <input type="button" value="Sélectionner" onclick="color('prestcabs', this.form.prestcabs.value)"></td>
</tr>
</table><br />
<input type="submit" class="bigbutton" value="Enregistrer" onClick="">
</form>
</body>
</html>
