function Choix_materiel(){
$query=mysql_query("SELECT * from servicecommunication.type_materiel order by type_materiel");
$result=mysql_fetch_object($query);
?>
<table align="center" border="1">
<tr>
<td class="entete">Matériel</td>
<td class="entete">date souhaitée</td>
<td class="entete">Créneau souhaité</td>
</tr>
<?
while($materiel = mysql_fetch_object($query))
{
$id_mat=$materiel->id_type_materiel;
$nom_mat=$materiel->type_materiel;
$d="date".$materiel->id_type_materiel;
?>
<tr>
<td class='ecriture'><input name='materiel[]' type='checkbox' value='<? echo $id_mat; ?>'><? echo $nom_mat; ?></td>
<td class='ecriture'><input type='text' name='date_souhait[]' value='' size='10' class='chiffre'> <a href="javascript
:NewCal('date_souhait[]','ddmmyyyy',false,24)"><img src='Images/cal.gif' width='16' height='16' border='0' alt='choisir une date'></a> <img src='Images/croix.gif' onClick="document.dispo_materiel.<? echo $d; ?>.value='';" title='supprimer la sélection'></td></td>
<td class='ecriture'><? Creneau(); ?></td>
</tr>
<?
}
?>
</table>
<?
}
Partager