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
| <a href="formulaireheure.php">Ajouter</a><br>
<table border cellspacing="0" cellpadding="6">
<thead>
<th>Nom </th>
<th>Date debut </th>
<th>Date fin </th>
<th>Heure debut</th>
<th>Heure fin</th>
<th>Jour à 50%</th>
<th>Jour à 75%</th>
<th>Jour à 150%</th>
</thead>
<tbody>
<?php while($sa = mysql_fetch_array($res)) { ?>
<tr>
<td><?php echo $sa['nom'];?></td>
<td><?php echo date("d-m-20y",strtotime($sa['datedebut']));?></td>
<td><?php echo date("d-m-20y",strtotime($sa['datefin']));?></td>
<td><?php /*echo $sa['datedebut'];*/echo date('H:i',strtotime($sa['datedebut']));
?></td>
<td><?php /* echo $sa['datefin'];*/echo date('H:i',strtotime($sa['datefin']));?></td>
<?php
$date1 =date_create($sa['datedebut']);
$date2 = date_create($sa['datefin']);
$HS=$calculer_HS($date1,$date2);
?>
<td>
<?php
echo $HS['Type50'];
?>
</td>
<td>
<?php
echo $HS['Type75'];
}
?>
</td>
<td>
<?php
echo $HS['Type150'];
}
?>
</td>
</tr> |
Partager