16,17 → 16,24 |
<tbody> |
<?php $ligne = "impair"; ?> |
<?php if ($categories) : ?> |
<tr class="total"> |
<th>Travail</th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total_projets;?></td> |
</tr> |
<?foreach ($categories as $idc => $categorie):?> |
<tr class="categories"> |
<td class="categories_titre"><?=$categorie['nom'];?></td> |
<th class="categories_titre"><?=$categorie['nom'];?></th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : " ";?></td> |
<?php endforeach; ?> |
<td><?=$categorie['total'];?></td> |
<td class="total"><?=$categorie['total'];?></td> |
</tr> |
<?foreach ($categorie['projets'] as $idp => $projet):?> |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<td id="pr:<?=$idp;?>" class="projet_nom"><?=$projet['nom'];?></td> |
<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : " ";?></td> |
<?php endforeach; ?> |
34,25 → 41,18 |
</tr> |
<?php endforeach; ?> |
<?php endforeach; ?> |
<tr class="total"> |
<td>Total travail</td> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : " ";?></td> |
<?php endforeach; ?> |
<td><?=$total_projets;?></td> |
</tr> |
<?php endif; ?> |
<?php if ($absences) : ?> |
<tr class="absences"> |
<td class="absences_titre">Absences</td> |
<tr class="total"> |
<th class="absences_titre">Absences</th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td class="absences_total"><?=$utilisateur['total_a'];?></td> |
<td><?=$utilisateur['total_a'];?></td> |
<?php endforeach; ?> |
<td><?=$total_absences;?></td> |
<td class="total"><?=$total_absences;?></td> |
</tr> |
<?php foreach ($absences as $ida => $absence) : ?> |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<td id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></td> |
<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : " ";?></td> |
<?php endforeach; ?> |
61,11 → 61,11 |
<?php endforeach; ?> |
<?php endif; ?> |
<tr class="total"> |
<td>Total</td> |
<th>Total</th> |
<?php foreach ($utilisateurs as $utilisateur) : ?> |
<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : " ";?></td> |
<?php endforeach; ?> |
<td><?=$total_absences_projets;?></td> |
<td class="total"><?=$total_absences_projets;?></td> |
</tr> |
</tbody> |
</table> |