Subversion Repositories Applications.gtt

Rev

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

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