95 |
jpm |
1 |
<div id="navigation">
|
|
|
2 |
<p>Navigation : <a href="<?=$url_mois_precedent;?>"><<</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">>></a></p>
|
|
|
3 |
</div>
|
125 |
jpm |
4 |
<div id="export">
|
|
|
5 |
<p><a href="<?=$url_mois_courant;?>&format=csv">Affichage au format CSV</a> - <a href="<?=$url_mois_courant;?>&format=csv&sortie=csvt">Export au format CSV</a></p>
|
|
|
6 |
</div>
|
107 |
jpm |
7 |
<?php if ($categories || $absences) : ?>
|
104 |
jpm |
8 |
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salarié.">
|
95 |
jpm |
9 |
<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
|
67 |
jpm |
10 |
<thead>
|
89 |
jpm |
11 |
<tr>
|
|
|
12 |
<th>Projets</th>
|
95 |
jpm |
13 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
107 |
jpm |
14 |
<th><?=$utilisateur['prenom_nom']?></th>
|
95 |
jpm |
15 |
<?php endforeach; ?>
|
107 |
jpm |
16 |
<th>Total</th>
|
89 |
jpm |
17 |
</tr>
|
67 |
jpm |
18 |
</thead>
|
|
|
19 |
<tbody>
|
89 |
jpm |
20 |
<?php $ligne = "impair"; ?>
|
107 |
jpm |
21 |
<?php if ($categories) : ?>
|
110 |
jpm |
22 |
<tr class="total">
|
|
|
23 |
<th>Travail</th>
|
|
|
24 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
25 |
<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : " ";?></td>
|
|
|
26 |
<?php endforeach; ?>
|
|
|
27 |
<td class="total"><?=$total_projets;?></td>
|
|
|
28 |
</tr>
|
107 |
jpm |
29 |
<?foreach ($categories as $idc => $categorie):?>
|
89 |
jpm |
30 |
<tr class="categories">
|
142 |
jpm |
31 |
<th class="categories_titre"><?=$categorie['nom'];?> [<?=$categorie['abreviation'];?>]</th>
|
89 |
jpm |
32 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
107 |
jpm |
33 |
<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : " ";?></td>
|
89 |
jpm |
34 |
<?php endforeach; ?>
|
110 |
jpm |
35 |
<td class="total"><?=$categorie['total'];?></td>
|
89 |
jpm |
36 |
</tr>
|
107 |
jpm |
37 |
<?foreach ($categorie['projets'] as $idp => $projet):?>
|
89 |
jpm |
38 |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
110 |
jpm |
39 |
<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
|
89 |
jpm |
40 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
107 |
jpm |
41 |
<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : " ";?></td>
|
89 |
jpm |
42 |
<?php endforeach; ?>
|
107 |
jpm |
43 |
<td class="total"><?=$projet['total'];?></td>
|
89 |
jpm |
44 |
</tr>
|
67 |
jpm |
45 |
<?php endforeach; ?>
|
107 |
jpm |
46 |
<?php endforeach; ?>
|
95 |
jpm |
47 |
<?php endif; ?>
|
|
|
48 |
<?php if ($absences) : ?>
|
110 |
jpm |
49 |
<tr class="total">
|
|
|
50 |
<th class="absences_titre">Absences</th>
|
89 |
jpm |
51 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
110 |
jpm |
52 |
<td><?=$utilisateur['total_a'];?></td>
|
89 |
jpm |
53 |
<?php endforeach; ?>
|
110 |
jpm |
54 |
<td class="total"><?=$total_absences;?></td>
|
89 |
jpm |
55 |
</tr>
|
107 |
jpm |
56 |
<?php foreach ($absences as $ida => $absence) : ?>
|
89 |
jpm |
57 |
<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
110 |
jpm |
58 |
<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
|
89 |
jpm |
59 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
107 |
jpm |
60 |
<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : " ";?></td>
|
89 |
jpm |
61 |
<?php endforeach; ?>
|
107 |
jpm |
62 |
<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : " ";?></td>
|
89 |
jpm |
63 |
</tr>
|
95 |
jpm |
64 |
<?php endforeach; ?>
|
|
|
65 |
<?php endif; ?>
|
107 |
jpm |
66 |
<tr class="total">
|
110 |
jpm |
67 |
<th>Total</th>
|
107 |
jpm |
68 |
<?php foreach ($utilisateurs as $utilisateur) : ?>
|
|
|
69 |
<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : " ";?></td>
|
|
|
70 |
<?php endforeach; ?>
|
110 |
jpm |
71 |
<td class="total"><?=$total_absences_projets;?></td>
|
107 |
jpm |
72 |
</tr>
|
67 |
jpm |
73 |
</tbody>
|
95 |
jpm |
74 |
</table>
|
|
|
75 |
<?php endif; ?>
|
|
|
76 |
|
|
|
77 |
<?php if (isset($messages)) : ?>
|
|
|
78 |
<?php foreach ($messages as $message) : ?>
|
|
|
79 |
<p class="information"><?=$message;?></p>
|
|
|
80 |
<?php endforeach; ?>
|
|
|
81 |
<?php endif; ?>
|