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
|
<fieldset>
<legend>
<tr>
<td></td>
<td align="right"><input type="submit" name="Submit" value="Mettre à jour liste des arrêts"></td>
</tr>
</legend>
<div class="champ">
<table border="0" cellspacing="2" cellpadding="2">
<td width="30px" align="center">Id</td>
<td width="75px" align="center">Date/Heure</td>
<td align="center">Raison</td>
<td width="15px" align="center">Durée</td>
<?php
{
$compteur = 1;
while($rows=mysqli_fetch_array($result) )
{
mysqli_select_db($link,$base);
$heureavant=mysqli_query($link,"select heure from $table ORDER BY id DESC LIMIT $compteur");
echo "heure avant : $heureavant";
?>
<tr>
<td width="30px" align="center"><? $Id[]=$rows['id']; ?><? echo $rows['id']; ?></td>
<td width="15px" align="center"><?php echo $rows['heure']; ?> </td>
<td align="center">
<select name="raison" size="1">
<Option value= 1 <? if ($rows['raison']==1) {print "selected";} ?>> 1
<Option value= 2 <? if ($rows['raison']==2) {print "selected";} ?>> 2
<Option value= 3 <? if ($rows['raison']==3) {print "selected";} ?>> 3
<Option value= 4 <? if ($rows['raison']==4) {print "selected";} ?>> 4
</select>
</td>
<td width="15px" align="center"><?php echo INTVAL(($rows['heure']-$heureavant)); ?> </td>
</tr>
<?php
}
$compteur = "$compteur"+1;
?>
</table>
</fieldset> |
Partager