Line 24... |
Line 24... |
24 |
</colgroup>
|
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']?>">
|
- |
|
30 |
<?=$jour['jour_nom']?> <?=$jour['jour']?>
|
29 |
<th class="<?=$jour['class']?>"><?=$jour['jour_nom']?> <?=$jour['jour']?></th>
|
31 |
</th>
|
- |
|
32 |
<?php endforeach; ?>
|
30 |
<?php endforeach; ?>
|
- |
|
31 |
<th>Total</th>
|
33 |
</tr>
|
32 |
</tr>
|
34 |
</thead>
|
33 |
</thead>
|
35 |
<tbody>
|
34 |
<tbody>
|
36 |
<?php if (isset($projets)) : ?>
|
35 |
<?php if (isset($projets)) : ?>
|
37 |
<?php $ligne = "impair"; ?>
|
36 |
<?php $ligne = "impair"; ?>
|
- |
|
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>
|
38 |
<?foreach ($projets as $categorie => $pr):?>
|
44 |
<?foreach ($projets as $categorie => $pr):?>
|
39 |
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
45 |
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
40 |
<td class="entete categories_titre"><?=$categorie;?></td>
|
46 |
<th class="entete categories_titre"><?=$categorie;?></th>
|
41 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
47 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
42 |
<td class="categories_total"><?=(isset($categorie_totaux[$categorie][$jour_id])) ? $categorie_totaux[$categorie][$jour_id] : " ";?></td>
|
48 |
<td class="categories_total"><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : " ";?></td>
|
43 |
<?php endforeach; ?>
|
49 |
<?php endforeach; ?>
|
- |
|
50 |
<td class="total"><?=$categories[$categorie]['total'];?></td>
|
44 |
</tr>
|
51 |
</tr>
|
45 |
<?foreach ($pr as $id => $projet):?>
|
52 |
<?foreach ($pr as $id => $projet):?>
|
46 |
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
53 |
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
47 |
<td id="pr:<?=$id;?>" class="entete projet_nom"><?=$projet['nom'];?></td>
|
54 |
<th id="pr:<?=$id;?>" class="entete projet_nom" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
|
48 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
55 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
49 |
<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>
|
50 |
<?php endforeach; ?>
|
57 |
<?php endforeach; ?>
|
- |
|
58 |
<td class="total"><?=(isset($projet['total'])) ? $projet['total'] : " ";?></td>
|
51 |
</tr>
|
59 |
</tr>
|
52 |
<?php endforeach; ?>
|
60 |
<?php endforeach; ?>
|
53 |
<?php endforeach; ?>
|
61 |
<?php endforeach; ?>
|
54 |
<?php endif; ?>
|
62 |
<?php endif; ?>
|
55 |
<?php if (isset($absences)) : ?>
|
63 |
<?php if (isset($absences)) : ?>
|
56 |
<?php $ligne = "impair"; ?>
|
- |
|
57 |
<tr class="absences">
|
64 |
<tr class="total">
|
58 |
<td class="entete absences_titre">Absences</td>
|
65 |
<th class="entete absences_titre">Absences</th>
|
59 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
66 |
<?php foreach ($elements as $jour) : ?>
|
60 |
<td class="absences_total"><?=(isset($ab_total[$jour_id])) ? $ab_total[$jour_id] : " ";?></td>
|
67 |
<td><?=(!empty($jour['absence'])) ? $jour['absence'] : " ";?></td>
|
61 |
<?php endforeach; ?>
|
68 |
<?php endforeach; ?>
|
- |
|
69 |
<td class="total"><?=$total_a;?></td>
|
62 |
</tr>
|
70 |
</tr>
|
- |
|
71 |
<?php $ligne = "impair"; ?>
|
63 |
<?php foreach ($absences as $ab_id => $ab_libelle) : ?>
|
72 |
<?php foreach ($absences as $ab_id => $absence) : ?>
|
64 |
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
73 |
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
|
65 |
<td id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$ab_libelle;?></td>
|
74 |
<th id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$absence['nom'];?></th>
|
66 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
75 |
<?php foreach ($elements as $jour_id => $jour) : ?>
|
67 |
<td class="absence"><?= (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>
|
68 |
<?php endforeach; ?>
|
77 |
<?php endforeach; ?>
|
- |
|
78 |
<td class="total"><?=(!empty($absence['total'])) ? $absence['total'] : ' ' ;?></td>
|
69 |
</tr>
|
79 |
</tr>
|
70 |
<?php endforeach; ?>
|
80 |
<?php endforeach; ?>
|
71 |
<?php endif; ?>
|
81 |
<?php endif; ?>
|
- |
|
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>
|
72 |
</tbody>
|
89 |
</tbody>
|
73 |
</table>
|
90 |
</table>
|
74 |
<?php endif; ?>
|
91 |
<?php endif; ?>
|
75 |
<?php if (isset($messages)) : ?>
|
92 |
<?php if (isset($messages)) : ?>
|
76 |
<?php foreach ($messages as $message) : ?>
|
93 |
<?php foreach ($messages as $message) : ?>
|