67 |
jpm |
1 |
<table summary="Tableau du temps de travail mensuel par salariƩ.">
|
|
|
2 |
<caption>
|
|
|
3 |
<a href="<?=$url_mois_precedent;?>"><<</a> <?=$mois['mois'];?><?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">>></a>
|
|
|
4 |
</caption>
|
|
|
5 |
<thead>
|
|
|
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>
|
|
|
14 |
</thead>
|
|
|
15 |
<tbody>
|
|
|
16 |
<?foreach ($projets as $categorie => $pr):?>
|
|
|
17 |
<tr><td colspan="<?=count($utilisateurs)+1;?>" class="categorie"><?=$categorie;?></td></tr>
|
|
|
18 |
<?foreach ($pr as $id => $nom):?>
|
|
|
19 |
<tr>
|
|
|
20 |
<td id="pr:<?=$id;?>" class="projet"><?=$nom;?></td>
|
|
|
21 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
22 |
<?php if (isset($utilisateur['projets'][$categorie][$id])) : ?>
|
75 |
jpm |
23 |
<td class="utilisateur"><?=$utilisateur['projets'][$categorie][$id]['duree'];?></td>
|
67 |
jpm |
24 |
<?php else : ?>
|
75 |
jpm |
25 |
<td class="utilisateur"> </td>
|
67 |
jpm |
26 |
<?php endif; ?>
|
|
|
27 |
<?php endforeach; ?>
|
|
|
28 |
</tr>
|
|
|
29 |
<?php endforeach; ?>
|
|
|
30 |
<tr><td class="total_titre">Totaux</td>
|
|
|
31 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
32 |
<?php if (isset($utilisateur['categorie_totaux'][$categorie])) : ?>
|
|
|
33 |
<td class="categorie_total"><?=$utilisateur['categorie_totaux'][$categorie];?></td>
|
|
|
34 |
<?php else : ?>
|
|
|
35 |
<td class="categorie_total"> </td>
|
|
|
36 |
<?php endif; ?>
|
|
|
37 |
<?php endforeach; ?>
|
|
|
38 |
</tr>
|
|
|
39 |
<?php endforeach; ?>
|
|
|
40 |
<tr><td colspan="<?=count($utilisateurs)+1;?>" class="categorie">Absences</td></tr>
|
|
|
41 |
<?php foreach ($absences as $ab_id => $ab_libelle) : ?>
|
|
|
42 |
<tr>
|
|
|
43 |
<td class="absence_titre"><?=$ab_libelle;?></td>
|
|
|
44 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
45 |
<?php if (isset($utilisateur['ab'][$ab_id])) : ?>
|
|
|
46 |
<td class="ab"><?=$utilisateur['ab'][$ab_id];?></td>
|
|
|
47 |
<?php else : ?>
|
|
|
48 |
<td class="ab"> </td>
|
|
|
49 |
<?php endif; ?>
|
|
|
50 |
<?php endforeach; ?>
|
|
|
51 |
</tr>
|
|
|
52 |
<?php endforeach; ?>
|
|
|
53 |
<tr>
|
|
|
54 |
<td class="total_titre">Totaux</td>
|
|
|
55 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
56 |
<td class="categorie_total"><?=$utilisateur['ab_total'];?></td>
|
|
|
57 |
<?php endforeach; ?>
|
|
|
58 |
</tr>
|
|
|
59 |
</tbody>
|
|
|
60 |
</table>
|