Premier commit
This commit is contained in:
66
vues/v_ficheGardes.php
Normal file
66
vues/v_ficheGardes.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<!-- affichage de la feuille de gardes / Derniere modification le 18/09/2023 à 16h50 par Pascal Blain -->
|
||||
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
||||
<fieldset><legend>Feuille de gardes</legend>
|
||||
<form name="frmDispos" action="index.php?choixTraitement=gardes&action=voir" method="post">
|
||||
<input type="hidden" name="zSemaine" value='<?php echo $semaine;?>'>
|
||||
<input type="hidden" name="zAnnee" value='<?php echo $annee;?>'>
|
||||
<input type="hidden" name="ztLaDate" value="">
|
||||
<input type="hidden" name="ztLaTranche" value="">
|
||||
<input type="hidden" name="ztExGarde" value="">
|
||||
<input type="hidden" name="ztPompier" value="">
|
||||
</form>
|
||||
<table id="tableau" class="tableau">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><input id="sPrecedente" name="gauche" title="semaine précédente" src="images/gauche.gif" onclick="autreSemaine('<?php echo date('W',strtotime("-7 days",$premierJour))."', '".date('Y',strtotime("-7 days",$premierJour))?>')" onmouseover="document.gauche.src='images/gauche_.gif'" onmouseout="document.gauche.src='images/gauche.gif'"type="image"></th>
|
||||
|
||||
<th colspan="27"><b><big>Semaine <?php echo $semaine." : du lundi ".date('d/m/Y',$premierJour)." au dimanche ".date('d/m/Y',strtotime("6 days",$premierJour))."</big></b></th>";?>
|
||||
|
||||
<th><input id="sSuivante" name="droite" title="semaine suivante" src="images/droite.gif" onclick="autreSemaine('<?php echo date('W',strtotime("+7 day",$premierJour))."', '".date('Y',strtotime("+7 day",$premierJour));?>')" onmouseover="document.droite.src='images/droite_.gif'" onmouseout="document.droite.src='images/droite.gif'"type="image"></th>
|
||||
</tr>
|
||||
<tr><th> </th>
|
||||
<?php
|
||||
$nomJour = array('Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi','Dimanche');
|
||||
for($jour=0; $jour<= 6; $jour++)
|
||||
{
|
||||
echo ('<th colspan="4">'.$nomJour[$jour].' '.date('d/m',strtotime('+'.$jour.' day',$premierJour)).'</th>');
|
||||
}
|
||||
|
||||
echo "</tr>".PHP_EOL." <tr><th width='100'>Volontaires</th>";
|
||||
for($jour=0; $jour<= 6; $jour++)
|
||||
{
|
||||
foreach ($lesTranches as $uneTranche)
|
||||
{echo '<th class="semaine" style="text-align : center;">'.$uneTranche["pIndice"].'</th>';}
|
||||
}
|
||||
echo PHP_EOL." </tr>";
|
||||
|
||||
foreach ($lesPompiers as $unPompier)
|
||||
{
|
||||
echo "<tr><td><small><small>".$unPompier['pNom']." ".$unPompier['pPrenom']."</small></small></td>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "</tr>".PHP_EOL." ";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
Reference in New Issue
Block a user