Feuille de gardes
"; ?> ' . $nomJour[$jour] . ' ' . date('d/m', strtotime('+' . $jour . ' day', $premierJour)) . ''); } echo "" . PHP_EOL . " "; for ($jour = 0; $jour <= 6; $jour++) { foreach ($lesTranches as $uneTranche) { echo ''; } } echo PHP_EOL . " "; foreach ($lesPompiers as $unPompier) { echo " "; for ($jour = 0; $jour <= 6; $jour++) { $leJour = date('Y-m-d', strtotime('+' . $jour . ' day', $premierJour)); $dateTab = date('d/m/Y', strtotime('+' . $jour . ' day', $premierJour)); $dispos = $lesDispos[$unPompier['pId']][$dateTab]; for ($tranche = 1; $tranche <= 4; $tranche++) { $couleur = 'c' . $tranche; $garde = 'g' . $tranche; $dispo = 'd' . $tranche; echo ''; } } echo ("" . PHP_EOL . " "); } ?>
')" onmouseover="document.gauche.src='images/gauche_.gif'" onmouseout="document.gauche.src='images/gauche.gif'" type="image"> Semaine ')" onmouseover="document.droite.src='images/droite_.gif'" onmouseout="document.droite.src='images/droite.gif'" type="image">
 
Volontaires' . $uneTranche["pIndice"] . '
" . $unPompier['pNom'] . " " . $unPompier['pPrenom'] . "' . (($dispos[$garde] == 1) ? 'X' : '') . '