90 |
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 |
<?php if ($etre_admin) : ?>
|
|
|
4 |
|
|
|
5 |
<form id="form_utilisateur" name="form_utilisateur" action="<?=$form_url;?>" method="get">
|
|
|
6 |
<input type="hidden" name="action" value="<?=$form_param['action'];?>"/>
|
|
|
7 |
<input type="hidden" name="annee" value="<?=$form_param['annee'];?>"/>
|
|
|
8 |
<input type="hidden" name="mois" value="<?=$form_param['mois'];?>"/>
|
|
|
9 |
<label for="uid">Utilisateur :</label>
|
|
|
10 |
<select id="uid" name="uid" onchange="javascript:this.form.submit();">
|
|
|
11 |
<?php foreach ($utilisateurs as $id => $utilisateur) : ?>
|
|
|
12 |
<option value="<?php echo $id; ?>" <?php echo ($utilisateur['courant']) ? 'selected="selected"' : ''; ?>><?php echo $utilisateur['nom']; ?></option>
|
|
|
13 |
<?php endforeach; ?>
|
|
|
14 |
</select>
|
|
|
15 |
<input type="submit" name="btn_envoyer_utilisateur" value="OK"/>
|
|
|
16 |
</form>
|
|
|
17 |
<?php endif; ?>
|
|
|
18 |
</div>
|
125 |
jpm |
19 |
<div id="export">
|
|
|
20 |
<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>
|
|
|
21 |
</div>
|
90 |
jpm |
22 |
<?php if (isset($projets) || isset($absences)) : ?>
|
104 |
jpm |
23 |
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salarié.">
|
90 |
jpm |
24 |
<caption>Plan de charge - <?=$mois['mois'];?> <?=$mois['annee'];?> - <?=$utilisateur_courant;?></caption>
|
|
|
25 |
<thead>
|
|
|
26 |
<tr>
|
|
|
27 |
<th>Projets</th>
|
|
|
28 |
<?php foreach ($elements as $jour) : ?>
|
110 |
jpm |
29 |
<th class="<?=$jour['class']?>"><?=$jour['jour_nom']?> <?=$jour['jour']?></th>
|
90 |
jpm |
30 |
<?php endforeach; ?>
|
110 |
jpm |
31 |
<th>Total</th>
|
90 |
jpm |
32 |
</tr>
|
|
|
33 |
</thead>
|
|
|
34 |
<tbody>
|
|
|
35 |
<?php if (isset($projets)) : ?>
|
|
|
36 |
<?php $ligne = "impair"; ?>
|
110 |
jpm |
37 |
<tr class="total">
|
|
|
38 |
<th>Travail</th>
|
|
|
39 |
<?php foreach ($elements as $jour) : ?>
|
|
|
40 |
<td><?=(!empty($jour['travail'])) ? $jour['travail'] : " ";?></td>
|
|
|
41 |
<?php endforeach; ?>
|
|
|
42 |
<td class="total"><?=$total_w;?></td>
|
|
|
43 |
</tr>
|
90 |
jpm |
44 |
<?foreach ($projets as $categorie => $pr):?>
|
|
|
45 |
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
142 |
jpm |
46 |
<th class="entete categories_titre"><?=$categorie;?> [<?=$categories[$categorie]['abreviation'];?>]</th>
|
90 |
jpm |
47 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
110 |
jpm |
48 |
<td class="categories_total"><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : " ";?></td>
|
90 |
jpm |
49 |
<?php endforeach; ?>
|
110 |
jpm |
50 |
<td class="total"><?=$categories[$categorie]['total'];?></td>
|
90 |
jpm |
51 |
</tr>
|
|
|
52 |
<?foreach ($pr as $id => $projet):?>
|
|
|
53 |
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
110 |
jpm |
54 |
<th id="pr:<?=$id;?>" class="entete projet_nom" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
|
90 |
jpm |
55 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
|
|
56 |
<td class="projet"><?=(isset($projet['duree'][$jour_id])) ? $projet['duree'][$jour_id] : " ";?></td>
|
|
|
57 |
<?php endforeach; ?>
|
110 |
jpm |
58 |
<td class="total"><?=(isset($projet['total'])) ? $projet['total'] : " ";?></td>
|
90 |
jpm |
59 |
</tr>
|
|
|
60 |
<?php endforeach; ?>
|
|
|
61 |
<?php endforeach; ?>
|
|
|
62 |
<?php endif; ?>
|
|
|
63 |
<?php if (isset($absences)) : ?>
|
110 |
jpm |
64 |
<tr class="total">
|
|
|
65 |
<th class="entete absences_titre">Absences</th>
|
|
|
66 |
<?php foreach ($elements as $jour) : ?>
|
|
|
67 |
<td><?=(!empty($jour['absence'])) ? $jour['absence'] : " ";?></td>
|
90 |
jpm |
68 |
<?php endforeach; ?>
|
110 |
jpm |
69 |
<td class="total"><?=$total_a;?></td>
|
90 |
jpm |
70 |
</tr>
|
110 |
jpm |
71 |
<?php $ligne = "impair"; ?>
|
|
|
72 |
<?php foreach ($absences as $ab_id => $absence) : ?>
|
90 |
jpm |
73 |
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
110 |
jpm |
74 |
<th id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$absence['nom'];?></th>
|
90 |
jpm |
75 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
110 |
jpm |
76 |
<td><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : " ";?></td>
|
90 |
jpm |
77 |
<?php endforeach; ?>
|
110 |
jpm |
78 |
<td class="total"><?=(!empty($absence['total'])) ? $absence['total'] : ' ' ;?></td>
|
90 |
jpm |
79 |
</tr>
|
|
|
80 |
<?php endforeach; ?>
|
|
|
81 |
<?php endif; ?>
|
110 |
jpm |
82 |
<tr class="total">
|
|
|
83 |
<th>Total</th>
|
|
|
84 |
<?php foreach ($elements as $jour) : ?>
|
|
|
85 |
<td><?=(!empty($jour['w_et_a'])) ? $jour['w_et_a'] : " ";?></td>
|
|
|
86 |
<?php endforeach; ?>
|
|
|
87 |
<td class="total"><?=$total;?></td>
|
|
|
88 |
</tr>
|
90 |
jpm |
89 |
</tbody>
|
|
|
90 |
</table>
|
|
|
91 |
<?php endif; ?>
|
|
|
92 |
<?php if (isset($messages)) : ?>
|
|
|
93 |
<?php foreach ($messages as $message) : ?>
|
|
|
94 |
<p class="information"><?=$message;?></p>
|
|
|
95 |
<?php endforeach; ?>
|
|
|
96 |
<?php endif; ?>
|