New file |
0,0 → 1,60 |
<table summary="Tableau du temps de travail mensuel par salariƩ."> |
<caption> |
<a href="<?=$url_mois_precedent;?>"><<</a> <?=$mois['mois'];?><?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">>></a> |
</caption> |
<thead> |
<tr> |
<th>Projets</th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<th> |
<?=$utilisateur['prenom_nom']?> |
</th> |
<?php endforeach; ?> |
</tr> |
</thead> |
<tbody> |
<?foreach ($projets as $categorie => $pr):?> |
<tr><td colspan="<?=count($utilisateurs)+1;?>" class="categorie"><?=$categorie;?></td></tr> |
<?foreach ($pr as $id => $nom):?> |
<tr> |
<td id="pr:<?=$id;?>" class="projet"><?=$nom;?></td> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<?php if (isset($utilisateur['projets'][$categorie][$id])) : ?> |
<td class="projet"><?=$utilisateur['projets'][$categorie][$id]['duree'];?></td> |
<?php else : ?> |
<td class="projet"> </td> |
<?php endif; ?> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<tr><td class="total_titre">Totaux</td> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<?php if (isset($utilisateur['categorie_totaux'][$categorie])) : ?> |
<td class="categorie_total"><?=$utilisateur['categorie_totaux'][$categorie];?></td> |
<?php else : ?> |
<td class="categorie_total"> </td> |
<?php endif; ?> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<tr><td colspan="<?=count($utilisateurs)+1;?>" class="categorie">Absences</td></tr> |
<?php foreach ($absences as $ab_id => $ab_libelle) : ?> |
<tr> |
<td class="absence_titre"><?=$ab_libelle;?></td> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<?php if (isset($utilisateur['ab'][$ab_id])) : ?> |
<td class="ab"><?=$utilisateur['ab'][$ab_id];?></td> |
<?php else : ?> |
<td class="ab"> </td> |
<?php endif; ?> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
<tr> |
<td class="total_titre">Totaux</td> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td class="categorie_total"><?=$utilisateur['ab_total'];?></td> |
<?php endforeach; ?> |
</tr> |
</tbody> |
</table> |