4,68 → 4,65 |
</div> |
<div id="calendrier_gestion" class="calendrier"> |
<?php if ($bool_projets) : ?> |
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post"> |
<table id="tab_gestion"> |
<caption> |
<a href="<?=$url_semaine_precedente;?>"><<</a> |
<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?> |
<a href="<?=$url_semaine_suivante;?>">>></a> |
</caption> |
<thead> |
<tr> |
<th>Projets</th> |
<?php foreach ($elements[$s] as $jour) : ?> |
<th class="<?=$jour['class'];?>"> |
<?=$jour['jour_nom'];?> <?=$jour['jour'];?> |
</th> |
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post"> |
<table id="tab_gestion"> |
<caption> |
<a href="<?=$url_semaine_precedente;?>"><<</a> |
<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?> |
<a href="<?=$url_semaine_suivante;?>">>></a> |
</caption> |
<thead> |
<tr> |
<th>Projets</th> |
<?php foreach ($elements[$s] as $jour) : ?> |
<th class="<?=$jour['class'];?>"> |
<?=$jour['jour_nom'];?> <?=$jour['jour'];?> |
</th> |
<?php endforeach; ?> |
</tr> |
</thead> |
<tbody> |
<?php if ($bool_projets) : ?> |
<?foreach ($preferences as $categorie => $projets):?> |
<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr> |
<?foreach ($projets as $projet):?> |
<tr> |
<td class="projet"><?=$projet['nom'];?></td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td> |
<?php endforeach; ?> |
</tr> |
</thead> |
<tbody> |
<?php if ($bool_projets) : ?> |
<?foreach ($preferences as $categorie => $projets):?> |
<tr> |
<td class="categorie"><?=$categorie;?></td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td> |
<?php endforeach; ?> |
</tr> |
<?foreach ($projets as $projet):?> |
<tr> |
<td class="projet"><?=$projet['nom'];?></td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<?php endforeach; ?> |
<? endif;?> |
<tr> |
<td class="categorie">Absences</td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="categorie_total"><?=$ab_total[$num];?></td> |
<?php endforeach; ?> |
</tr> |
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?> |
<tr> |
<td class="absence_titre"><?=$ab_libelle[$ab_id];?></td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
|
<tr> |
<td class="totaux_titre">Totaux journée</td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="totaux"><?=$totaux[$num];?></td> |
<?php endforeach; ?> |
</tr> |
</tbody> |
</table> |
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" /> |
</form> |
</tr> |
<?php endforeach; ?> |
<tr><td class="total_titre">Totaux</td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<? endif;?> |
<tr><td colspan="8" class="categorie">Absences</td></tr> |
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?> |
<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<tr><td class="total_titre">Totaux</td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="categorie_total"><?=$ab_total[$num];?></td> |
<?php endforeach; ?> |
</tr> |
<tr><td class="totaux_titre">Totaux journée</td> |
<?php foreach ($elements[$s] as $num => $jour) : ?> |
<td class="totaux"><?=$totaux[$num];?></td> |
<?php endforeach; ?> |
</tr> |
</tbody> |
</table> |
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" /> |
</form> |
<?php else : ?> |
<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p> |
<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p> |
<? endif;?> |
</div> |