Subversion Repositories Applications.gtt

Rev

Rev 48 | Rev 73 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18 jpm 1
<dl class="ajout_2_points">
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>
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">
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>
25
	</thead>
26
	<tbody>
27
		<?php foreach ($elements as $semaine) : ?>
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>
67 jpm 38
<?php if ($bool_projets) : ?>
48 jpm 39
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
10 jpm 40
<table>
11 jpm 41
	<caption>
42
	<a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
18 jpm 43
 	<?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?>
11 jpm 44
 	<a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
45
 	</caption>
46
	<thead>
47
	<tr>
48
		<th>Projets</th>
49
<?php foreach ($elements[$s] as $jour) : ?>
50
		<th class="<?=$jour['class'];?>">
51
			<? if ($jour['class'] == 'jour_vide') :?>
52
				<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
53
			<? else :?>
54
				<a href="<?=$jour['url'];?>"><?=$jour['jour_nom'];?> <?=$jour['jour'];?></a>
18 jpm 55
			<? endif;?>
11 jpm 56
		</th>
57
<?php endforeach; ?>
58
	</tr>
59
	</thead>
60
	<tbody>
67 jpm 61
<?php if ($bool_projets) : ?>
18 jpm 62
<?foreach ($preferences as $categorie => $projets):?>
63
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
64
	<?foreach ($projets as $projet):?>
65
	<tr>
11 jpm 66
		<td class="projet"><?=$projet['nom'];?></td>
67
		<?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>
69
		<?php endforeach; ?>
70
	</tr>
18 jpm 71
	<?php endforeach; ?>
72
	<tr><td class="total_titre">Totaux</td>
73
	<?php foreach ($elements[$s] as $num => $jour) : ?>
74
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
75
	<?php endforeach; ?>
76
	</tr>
77
<?php endforeach; ?>
67 jpm 78
<? endif;?>
18 jpm 79
	<tr><td colspan="8" class="categorie">Absences</td></tr>
30 jpm 80
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
81
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
82
	<?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>
84
	<?php endforeach; ?>
18 jpm 85
	</tr>
86
<?php endforeach; ?>
30 jpm 87
	<tr><td class="total_titre">Totaux</td>
88
	<?php foreach ($elements[$s] as $num => $jour) : ?>
89
		<td class="categorie_total"><?=$ab_total[$num];?></td>
90
	<?php endforeach; ?>
18 jpm 91
	</tr>
92
	<tr><td class="totaux_titre">Totaux journée</td>
93
<?php foreach ($elements[$s] as $num => $jour) : ?>
94
		<td class="totaux"><?=$totaux[$num];?></td>
95
<?php endforeach; ?>
96
	</tr>
11 jpm 97
	</tbody>
98
</table>
99
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
18 jpm 100
</form>
67 jpm 101
<?php else : ?>
102
<p>Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
103
<? endif;?>
18 jpm 104
</div>