89 |
jpm |
1 |
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ.">
|
67 |
jpm |
2 |
<caption>
|
89 |
jpm |
3 |
<a href="<?=$url_mois_precedent;?>"><<</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">>></a>
|
67 |
jpm |
4 |
</caption>
|
|
|
5 |
<thead>
|
89 |
jpm |
6 |
<tr>
|
|
|
7 |
<th>Projets</th>
|
|
|
8 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
9 |
<th>
|
|
|
10 |
<?=$utilisateur['prenom_nom']?>
|
|
|
11 |
</th>
|
|
|
12 |
<?php endforeach; ?>
|
|
|
13 |
</tr>
|
67 |
jpm |
14 |
</thead>
|
|
|
15 |
<tbody>
|
89 |
jpm |
16 |
<?php $ligne = "impair"; ?>
|
|
|
17 |
<?foreach ($projets as $categorie => $pr):?>
|
|
|
18 |
<tr class="categories">
|
|
|
19 |
<td class="categories_titre"><?=$categorie;?></td>
|
|
|
20 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
21 |
<td class="categories_total"><?=(isset($utilisateur['categorie_totaux'][$categorie])) ? $utilisateur['categorie_totaux'][$categorie] : " ";?></td>
|
|
|
22 |
<?php endforeach; ?>
|
|
|
23 |
</tr>
|
|
|
24 |
<?foreach ($pr as $id => $nom):?>
|
|
|
25 |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
|
|
26 |
<td id="pr:<?=$id;?>" class="projet_nom"><?=$nom;?></td>
|
|
|
27 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
28 |
<td class="projet"><?=(isset($utilisateur['projets'][$categorie][$id])) ? $utilisateur['projets'][$categorie][$id]['duree'] : " ";?></td>
|
|
|
29 |
<?php endforeach; ?>
|
|
|
30 |
</tr>
|
67 |
jpm |
31 |
<?php endforeach; ?>
|
89 |
jpm |
32 |
<?php $ligne = "impair"; ?>
|
|
|
33 |
<?php endforeach; ?>
|
|
|
34 |
<tr class="absences">
|
|
|
35 |
<td class="absences_titre">Absences</td>
|
|
|
36 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
37 |
<td class="absences_total"><?=$utilisateur['ab_total'];?></td>
|
|
|
38 |
<?php endforeach; ?>
|
|
|
39 |
</tr>
|
|
|
40 |
<?php foreach ($absences as $ab_id => $ab_libelle) : ?>
|
|
|
41 |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
|
|
42 |
<td id="ab:<?=$ab_id;?>" class="absence_nom"><?=$ab_libelle;?></td>
|
|
|
43 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
44 |
<td class="absence"><?= (isset($utilisateur['ab'][$ab_id])) ? $utilisateur['ab'][$ab_id] : " ";?></td>
|
|
|
45 |
<?php endforeach; ?>
|
|
|
46 |
</tr>
|
67 |
jpm |
47 |
<?php endforeach; ?>
|
|
|
48 |
</tbody>
|
|
|
49 |
</table>
|