26,49 → 26,66 |
<tr> |
<th>Projets</th> |
<?php foreach ($elements as $jour) : ?> |
<th class="<?=$jour['class']?>"> |
<?=$jour['jour_nom']?> <?=$jour['jour']?> |
</th> |
<th class="<?=$jour['class']?>"><?=$jour['jour_nom']?> <?=$jour['jour']?></th> |
<?php endforeach; ?> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php if (isset($projets)) : ?> |
<?php $ligne = "impair"; ?> |
<tr class="total"> |
<th>Travail</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['travail'])) ? $jour['travail'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total_w;?></td> |
</tr> |
<?foreach ($projets as $categorie => $pr):?> |
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<td class="entete categories_titre"><?=$categorie;?></td> |
<th class="entete categories_titre"><?=$categorie;?></th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="categories_total"><?=(isset($categorie_totaux[$categorie][$jour_id])) ? $categorie_totaux[$categorie][$jour_id] : " ";?></td> |
<td class="categories_total"><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$categories[$categorie]['total'];?></td> |
</tr> |
<?foreach ($pr as $id => $projet):?> |
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<td id="pr:<?=$id;?>" class="entete projet_nom"><?=$projet['nom'];?></td> |
<th id="pr:<?=$id;?>" class="entete projet_nom" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="projet"><?=(isset($projet['duree'][$jour_id])) ? $projet['duree'][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=(isset($projet['total'])) ? $projet['total'] : " ";?></td> |
</tr> |
<?php endforeach; ?> |
<?php endforeach; ?> |
<?php endif; ?> |
<?php if (isset($absences)) : ?> |
<?php $ligne = "impair"; ?> |
<tr class="absences"> |
<td class="entete absences_titre">Absences</td> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="absences_total"><?=(isset($ab_total[$jour_id])) ? $ab_total[$jour_id] : " ";?></td> |
<tr class="total"> |
<th class="entete absences_titre">Absences</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['absence'])) ? $jour['absence'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total_a;?></td> |
</tr> |
<?php foreach ($absences as $ab_id => $ab_libelle) : ?> |
<?php $ligne = "impair"; ?> |
<?php foreach ($absences as $ab_id => $absence) : ?> |
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<td id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$ab_libelle;?></td> |
<th id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$absence['nom'];?></th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="absence"><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : " ";?></td> |
<td><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=(!empty($absence['total'])) ? $absence['total'] : ' ' ;?></td> |
</tr> |
<?php endforeach; ?> |
<?php endif; ?> |
<tr class="total"> |
<th>Total</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['w_et_a'])) ? $jour['w_et_a'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total;?></td> |
</tr> |
</tbody> |
</table> |
<?php endif; ?> |