73 |
jpm |
1 |
<div id="info">
|
|
|
2 |
<p id="info_aujourdhui">Aujourd'hui, nous sommes le <a href="<?=$jc_url;?>"><?=$jc['jour'];?> <?=$jc['mois_nom'];?> <?=$jc['annee'];?></a></p>
|
|
|
3 |
<p id="info_semaine">Semaine du <a href="<?=$jc_url;?>"><?=$sjc_1['jour'];?> <?=$sjc_1['mois'];?> <?=$sjc_1['annee'];?> au <?=$sjc_7['jour'];?> <?=$sjc_7['mois'];?> <?=$sjc_7['annee'];?></a></p>
|
|
|
4 |
</div>
|
|
|
5 |
<div id="calendrier_gestion" class="calendrier">
|
67 |
jpm |
6 |
<?php if ($bool_projets) : ?>
|
110 |
jpm |
7 |
<form class="centre" id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
|
106 |
jpm |
8 |
<table id="tab_gestion">
|
|
|
9 |
<caption>
|
|
|
10 |
<a href="<?=$url_semaine_precedente;?>"><<</a>
|
|
|
11 |
<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?>
|
|
|
12 |
<a href="<?=$url_semaine_suivante;?>">>></a>
|
|
|
13 |
</caption>
|
|
|
14 |
<thead>
|
|
|
15 |
<tr>
|
|
|
16 |
<th>Projets</th>
|
|
|
17 |
<?php foreach ($elements[$s] as $jour) : ?>
|
|
|
18 |
<th class="<?=$jour['class'];?>">
|
|
|
19 |
<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
|
|
|
20 |
</th>
|
11 |
jpm |
21 |
<?php endforeach; ?>
|
106 |
jpm |
22 |
</tr>
|
|
|
23 |
</thead>
|
|
|
24 |
<tbody>
|
|
|
25 |
<?php if ($bool_projets) : ?>
|
167 |
mathias |
26 |
<?php foreach ($preferences as $categorie => $projets):?>
|
106 |
jpm |
27 |
<tr>
|
|
|
28 |
<td class="categorie"><?=$categorie;?></td>
|
|
|
29 |
<?php foreach ($elements[$s] as $num => $jour) : ?>
|
159 |
jpm |
30 |
<td class="categorie_total pr" data-num-jour="<?=$num;?>"><?=$categorie_totaux[$categorie][$num];?></td>
|
106 |
jpm |
31 |
<?php endforeach; ?>
|
|
|
32 |
</tr>
|
167 |
mathias |
33 |
<?php foreach ($projets as $projet):?>
|
106 |
jpm |
34 |
<tr>
|
110 |
jpm |
35 |
<td class="projet" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></td>
|
106 |
jpm |
36 |
<?php foreach ($elements[$s] as $num => $jour) : ?>
|
159 |
jpm |
37 |
<td class="<?=$jour['class'];?>">
|
|
|
38 |
<input id="pr:<?=$projet['id'];?>:<?=$num;?>" class="pr" name="pr:<?=$projet['id'];?>:<?=$num;?>"
|
|
|
39 |
value="<?=$projet['date'][$num];?>" type="text" data-num-jour="<?=$num;?>"/>
|
|
|
40 |
</td>
|
106 |
jpm |
41 |
<?php endforeach; ?>
|
|
|
42 |
</tr>
|
|
|
43 |
<?php endforeach; ?>
|
|
|
44 |
<?php endforeach; ?>
|
|
|
45 |
<? endif;?>
|
|
|
46 |
<tr>
|
159 |
jpm |
47 |
<td class="categorie">Journées d'absences</td>
|
106 |
jpm |
48 |
<?php foreach ($elements[$s] as $num => $jour) : ?>
|
|
|
49 |
<td class="categorie_total"><?=$ab_total[$num];?></td>
|
|
|
50 |
<?php endforeach; ?>
|
|
|
51 |
</tr>
|
|
|
52 |
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
|
|
|
53 |
<tr>
|
|
|
54 |
<td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
|
|
|
55 |
<?php foreach ($elements[$s] as $num => $jour) : ?>
|
159 |
jpm |
56 |
<td class="ab <?=$jour['class'];?>">
|
|
|
57 |
<?php if ($tab_ab_jours[$num]['duree_defaut'] != 0) : ?>
|
|
|
58 |
<input id="ab:<?=$ab_id;?>:<?=$num;?>" class="ab" name="ab:<?=$num;?>"
|
|
|
59 |
value="<?=$ab_id;?>:<?=($tab_ab_jours[$num]['duree'] != '') ? $tab_ab_jours[$num]['duree'] : $tab_ab_jours[$num]['duree_defaut'];?>" type="checkbox"
|
|
|
60 |
<?=(!empty($tab_ab_jours[$num]['duree'])) ? 'checked="checked"' : '' ?>
|
|
|
61 |
data-num-jour="<?=$num;?>"
|
|
|
62 |
data-ab-id="<?=$ab_id;?>"
|
|
|
63 |
data-duree-defaut="<?=$tab_ab_jours[$num]['duree_defaut'];?>"/>
|
|
|
64 |
<?php endif; ?>
|
|
|
65 |
</td>
|
106 |
jpm |
66 |
<?php endforeach; ?>
|
|
|
67 |
</tr>
|
|
|
68 |
<?php endforeach; ?>
|
|
|
69 |
|
|
|
70 |
<tr>
|
|
|
71 |
<td class="totaux_titre">Totaux journée</td>
|
|
|
72 |
<?php foreach ($elements[$s] as $num => $jour) : ?>
|
|
|
73 |
<td class="totaux"><?=$totaux[$num];?></td>
|
|
|
74 |
<?php endforeach; ?>
|
|
|
75 |
</tr>
|
|
|
76 |
</tbody>
|
|
|
77 |
</table>
|
110 |
jpm |
78 |
<input class="btn_large" id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
|
106 |
jpm |
79 |
</form>
|
67 |
jpm |
80 |
<?php else : ?>
|
106 |
jpm |
81 |
<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
|
67 |
jpm |
82 |
<? endif;?>
|
167 |
mathias |
83 |
</div>
|