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