1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<?
require_once('../../../scripts/fonctions.php');
list($annee,$mois,$jour)=split('-',date2sql(time()));
"var montant = new Array(" . implode(",", $Resmontant) . ");";
?>
<script language="javascript" type="text/javascript">
function afficher(nomForm,val,Txtmontant,Txtcom,tab_montant)
{
document.write(this.tab_montant[6]);
}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td>
<table border="2" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><b>Vos réservations au mois :</b></td>
<td><b>Montant des réservations :</b></td>
<td><b>Commissions engrangées :</b></td>
</tr>
<form name="f_choice" method="post" >
<tr>
<td><select name="Choixmois" onChange="afficher('f_choice',this.value,'montant','commission',montant)">';
<?
$i=01;
while($i<=$mois){?>
<option value="<?=$i?>"><?=mois($i)?> <?=$annee?></option>
<?
$i=$i+1;
if(strlen($i)!=2)$i='0'.$i;
}?>
</select>
</td>
<td><input="text" name="montant"></td>
<td><input="text" name="commission"></td>
</tr>
</form>
</table>
</td></tr>
</table> |
Partager