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 52 53 54 55 56 57 58 59 60
| while($donnees = mysqli_fetch_assoc($itineraire)) {?>
<form id="form1" name="form1" method="post" action="modif-itineraire.php?codeitineraire=<?php echo $donnees['code_circuit']; ?>&version=<?php echo $donnees['version']; ?>">
<table width="98%" border="0">
<tr>
<td width="10%"><div align="center">
<input type="date" name="date" value="<?php echo htmlentities($donnees['date'], ENT_COMPAT, 'UTF-8'); ?>" size="20" />
</div></td>
<td width="5%"><div align="center"><input type="text" name="jour" value="<?php echo htmlentities($donnees['jour'], ENT_COMPAT, 'UTF-8'); ?>" size="20" /></div></td>
<td width="35%"><div align="center"><select id="code_journee" name="code_journee">
<?php
mysqli_data_seek($base_contenus,0);
do
{
if ($donneescontenus['code_journee'] == $donnees['code_journee'])
{ $selected = 'selected'; }
else { $selected = ''; }
?>
<option value="<?php echo $donneescontenus['code_journee']; ?>"<?php echo $selected; ?>><?php echo $donneescontenus['menu_deroulant']; ?></option>
<?php
} while($donneescontenus = mysqli_fetch_assoc($base_contenus));
?>
</select></div></td>
<td width="15%"><div align="center">
<textarea name="notes" cols="20" rows="1"><?php echo htmlentities($donnees['notes'], ENT_COMPAT, 'UTF-8'); ?></textarea>
</div></td>
<td width="25%"><div align="center"><select name="code_hotel">
<?php
mysqli_data_seek($hotels,0);
while($donneeshotels = mysqli_fetch_assoc($hotels))
{
if ($donneeshotels['code_hotel'] == $donnees['code_hotel'])
{ $selected = 'selected'; }
else { $selected = ''; }
?>
<option value="<?php echo $donneeshotels['code_hotel']; ?>"<?php echo $selected; ?>><?php echo $donneeshotels['pays_hotel']; echo " "; echo $donneeshotels['ville_hotel']; echo " "; echo $donneeshotels['nom_hotel']; ?></option>
<?php
}
?>
</select>
</div></td>
<td width="5%">
<table width="25" height="25" border="0">
<tr>
<td width="5%"><div align="center"><button name="button">Maj</button>
<input type="hidden" name="form1" value="form1" />
<input type="hidden" name="id" value="<?php echo $donnees['id']; ?>" /></div></td>
<td width="5%"><div align="center"><a href="devis-traitement-suppression.php?id=<?php echo $donnees['id']; ?>&codeitineraire=<?php echo $donnees['code_circuit']; ?>&version=<?php echo $donnees['version']; ?>"><img src="../../icones/corbeille.gif" alt="jeter" width="20" height="20" border="0" /></a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form> |
Partager