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