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 51
|
<table id="disponibilites" border="0" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td></td>
<td class="jour">  Lundi  </td>
<td class="jour">  Mardi  </td>
<td class="jour">  Mercredi  </td>
<td class="jour">  Jeudi  </td>
<td class="jour">  Vendredi  </td>
<td class="jour">  Samedi  </td>
<td class="jour">  Dimanche  </td>
</tr>
<?
$jours = array("Lu", "Ma", "Me", "Je", "Ve", "Sa", "Di");
$horaires = array("08-10", "10-12", "12-14", "14-16", "16-18", "18-20", "20-22");
$nb_jours = count($jours);
$nb_horaires = count($horaires);
for ($i = 0; $i < $nb_horaires; $i++)
{
?>
<tr align="center" valign="middle">
<td class="heure">
<? echo $horaires[$i] ?>h</td>
<?
for ($j = 0; $j < $nb_jours; $j++)
{
?>
<td><input name="horaire_<? printf("%s_%s", $jours[$j], $horaires[$i]) ?>" type="checkbox" value="<? printf("%s_%s", $jours[$j], $horaires[$i]) ?>"></td>
<?
} ?>
</tr>
<? } ?>
</table> |
Partager