Subversion Repositories Applications.gtt

Rev

Rev 67 | Rev 89 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 67 Rev 73
1
<dl class="ajout_2_points">
1
<div id="info">
2
	<dt>Vous devez travailler</dt>
-
 
3
	<dd><?=$tps_w;?> heures par jour</dd>
-
 
4
	<dt>Congés payés restants</dt>
-
 
5
	<dd><?=$conges_payes;?> jours</dd>
-
 
6
	<dt>Heures supp restantes</dt>
-
 
7
	<dd><?=$rtt;?> heures</dd>
-
 
8
</dl>
-
 
9
<p>Aujourd'hui, nous sommes le <a href="<?=$jc_url;?>"><?=$jc['jour'];?> <?=$jc['mois_nom'];?> <?=$jc['annee'];?></a></p>
2
	<p id="info_aujourdhui">Aujourd'hui, nous sommes le <a href="<?=$jc_url;?>"><?=$jc['jour'];?> <?=$jc['mois_nom'];?> <?=$jc['annee'];?></a></p>
10
<p>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>
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>
11
<div id="calendrier">
-
 
12
<table>
-
 
13
	<caption><a href="<?=$url_mois_precedent;?>">&lt;&lt;</a> <?=$mois['mois'];?>
-
 
14
	<?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">&gt;&gt;</a></caption>
-
 
15
	<thead>
-
 
16
		<tr>
-
 
17
			<th>Lun</th>
-
 
18
			<th>Mar</th>
-
 
19
			<th>Mer</th>
-
 
20
			<th>Jeu</th>
-
 
21
			<th>Ven</th>
-
 
22
			<th>Sam</th>
-
 
23
			<th>Dim</th>
-
 
24
		</tr>
4
</div>
25
	</thead>
-
 
26
	<tbody>
-
 
27
		<?php foreach ($elements as $semaine) : ?>
5
<div id="calendrier_gestion" class="calendrier">
28
		<tr>
-
 
29
			<?php foreach ($semaine as $jour) : ?>
-
 
30
			<td class="<?=$jour['class'];?>"> <? if ($jour['class'] == 'jour_vide') :?>
-
 
31
			<?=$jour['jour'];?> <? else :?> <a href="<?=$jour['url'];?>"><?=$jour['jour'];?></a>
-
 
32
			<? endif;?></td>
-
 
33
			<?php endforeach; ?>
-
 
34
		</tr>
-
 
35
		<?php endforeach; ?>
-
 
36
	</tbody>
-
 
37
</table>
-
 
38
<?php if ($bool_projets) : ?>
6
<?php if ($bool_projets) : ?>
39
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
7
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
40
<table>
8
<table id="tab_gestion">
41
	<caption>
9
	<caption>
42
	<a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
10
	<a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
43
 	<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?>
11
 	<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?>
44
 	<a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
12
 	<a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
45
 	</caption>
13
 	</caption>
46
	<thead>
14
	<thead>
47
	<tr>
15
	<tr>
48
		<th>Projets</th>
16
		<th>Projets</th>
49
<?php foreach ($elements[$s] as $jour) : ?>
17
<?php foreach ($elements[$s] as $jour) : ?>
50
		<th class="<?=$jour['class'];?>">
18
		<th class="<?=$jour['class'];?>">
51
			<? if ($jour['class'] == 'jour_vide') :?>
19
			<? if ($jour['class'] == 'jour_vide') :?>
52
				<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
20
				<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
53
			<? else :?>
21
			<? else :?>
54
				<a href="<?=$jour['url'];?>"><?=$jour['jour_nom'];?> <?=$jour['jour'];?></a>
22
				<a href="<?=$jour['url'];?>"><?=$jour['jour_nom'];?> <?=$jour['jour'];?></a>
55
			<? endif;?>
23
			<? endif;?>
56
		</th>
24
		</th>
57
<?php endforeach; ?>
25
<?php endforeach; ?>
58
	</tr>
26
	</tr>
59
	</thead>
27
	</thead>
60
	<tbody>
28
	<tbody>
61
<?php if ($bool_projets) : ?>
29
<?php if ($bool_projets) : ?>
62
<?foreach ($preferences as $categorie => $projets):?>
30
<?foreach ($preferences as $categorie => $projets):?>
63
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
31
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
64
	<?foreach ($projets as $projet):?>
32
	<?foreach ($projets as $projet):?>
65
	<tr>
33
	<tr>
66
		<td class="projet"><?=$projet['nom'];?></td>
34
		<td class="projet"><?=$projet['nom'];?></td>
67
		<?php foreach ($elements[$s] as $num => $jour) : ?>
35
		<?php foreach ($elements[$s] as $num => $jour) : ?>
68
		<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
36
		<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
69
		<?php endforeach; ?>
37
		<?php endforeach; ?>
70
	</tr>
38
	</tr>
71
	<?php endforeach; ?>
39
	<?php endforeach; ?>
72
	<tr><td class="total_titre">Totaux</td>
40
	<tr><td class="total_titre">Totaux</td>
73
	<?php foreach ($elements[$s] as $num => $jour) : ?>
41
	<?php foreach ($elements[$s] as $num => $jour) : ?>
74
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
42
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
75
	<?php endforeach; ?>
43
	<?php endforeach; ?>
76
	</tr>
44
	</tr>
77
<?php endforeach; ?>
45
<?php endforeach; ?>
78
<? endif;?>
46
<? endif;?>
79
	<tr><td colspan="8" class="categorie">Absences</td></tr>
47
	<tr><td colspan="8" class="categorie">Absences</td></tr>
80
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
48
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
81
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
49
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
82
	<?php foreach ($tab_ab_jours as $num => $ab_duree) : ?>
50
	<?php foreach ($tab_ab_jours as $num => $ab_duree) : ?>
83
		<td class="ab"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$ab_duree;?>" type="text"/></td>
51
		<td class="ab"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$ab_duree;?>" type="text"/></td>
84
	<?php endforeach; ?>
52
	<?php endforeach; ?>
85
	</tr>
53
	</tr>
86
<?php endforeach; ?>
54
<?php endforeach; ?>
87
	<tr><td class="total_titre">Totaux</td>
55
	<tr><td class="total_titre">Totaux</td>
88
	<?php foreach ($elements[$s] as $num => $jour) : ?>
56
	<?php foreach ($elements[$s] as $num => $jour) : ?>
89
		<td class="categorie_total"><?=$ab_total[$num];?></td>
57
		<td class="categorie_total"><?=$ab_total[$num];?></td>
90
	<?php endforeach; ?>
58
	<?php endforeach; ?>
91
	</tr>
59
	</tr>
92
	<tr><td class="totaux_titre">Totaux journée</td>
60
	<tr><td class="totaux_titre">Totaux journée</td>
93
<?php foreach ($elements[$s] as $num => $jour) : ?>
61
<?php foreach ($elements[$s] as $num => $jour) : ?>
94
		<td class="totaux"><?=$totaux[$num];?></td>
62
		<td class="totaux"><?=$totaux[$num];?></td>
95
<?php endforeach; ?>
63
<?php endforeach; ?>
96
	</tr>
64
	</tr>
97
	</tbody>
65
	</tbody>
98
</table>
66
</table>
99
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
67
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
100
</form>
68
</form>
101
<?php else : ?>
69
<?php else : ?>
102
<p>Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
70
<p>Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
103
<? endif;?>
71
<? endif;?>
104
</div>
72
</div>