Subversion Repositories Applications.gtt

Rev

Rev 104 | Rev 110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 104 Rev 106
Line 2... Line 2...
2
	<p id="info_aujourdhui">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>
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>
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>
4
</div>
5
<div id="calendrier_gestion" class="calendrier">
5
<div id="calendrier_gestion" class="calendrier">
6
<?php if ($bool_projets) : ?>
6
<?php if ($bool_projets) : ?>
7
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
7
	<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
8
<table id="tab_gestion">
8
	<table id="tab_gestion">
9
	<caption>
9
		<caption>
10
	<a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
10
			<a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
11
 	<?=$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'];?>
12
 	<a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
12
		 	<a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
13
 	</caption>
13
	 	</caption>
14
	<thead>
14
		<thead>
15
	<tr>
15
			<tr>
16
		<th>Projets</th>
16
				<th>Projets</th>
17
<?php foreach ($elements[$s] as $jour) : ?>
17
		<?php foreach ($elements[$s] as $jour) : ?>
18
		<th class="<?=$jour['class'];?>">
18
				<th class="<?=$jour['class'];?>">
19
			<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
19
					<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
20
		</th>
20
				</th>
21
<?php endforeach; ?>
-
 
22
	</tr>
-
 
23
	</thead>
-
 
24
	<tbody>
-
 
25
<?php if ($bool_projets) : ?>
-
 
26
<?foreach ($preferences as $categorie => $projets):?>
-
 
27
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
-
 
28
	<?foreach ($projets as $projet):?>
-
 
29
	<tr>
-
 
30
		<td class="projet"><?=$projet['nom'];?></td>
-
 
31
		<?php foreach ($elements[$s] as $num => $jour) : ?>
-
 
32
		<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
-
 
33
		<?php endforeach; ?>
21
		<?php endforeach; ?>
34
	</tr>
22
			</tr>
-
 
23
		</thead>
-
 
24
		<tbody>
35
	<?php endforeach; ?>
25
		<?php if ($bool_projets) : ?>
-
 
26
			<?foreach ($preferences as $categorie => $projets):?>
-
 
27
			<tr>
36
	<tr><td class="total_titre">Totaux</td>
28
				<td class="categorie"><?=$categorie;?></td>
37
	<?php foreach ($elements[$s] as $num => $jour) : ?>
29
				<?php foreach ($elements[$s] as $num => $jour) : ?>
38
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
30
				<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
39
	<?php endforeach; ?>
31
				<?php endforeach; ?>
40
	</tr>
32
			</tr>
41
<?php endforeach; ?>
33
			<?foreach ($projets as $projet):?>
42
<? endif;?>
34
			<tr>
43
	<tr><td colspan="8" class="categorie">Absences</td></tr>
-
 
44
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
-
 
45
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
35
				<td class="projet"><?=$projet['nom'];?></td>
46
	<?php foreach ($elements[$s] as $num => $jour) : ?>
36
				<?php foreach ($elements[$s] as $num => $jour) : ?>
47
		<td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td>
37
				<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
48
	<?php endforeach; ?>
38
				<?php endforeach; ?>
49
	</tr>
39
			</tr>
50
<?php endforeach; ?>
40
			<?php endforeach; ?>
-
 
41
			<?php endforeach; ?>
-
 
42
		<? endif;?>
-
 
43
			<tr>
51
	<tr><td class="total_titre">Totaux</td>
44
				<td class="categorie">Absences</td>
52
	<?php foreach ($elements[$s] as $num => $jour) : ?>
45
				<?php foreach ($elements[$s] as $num => $jour) : ?>
53
		<td class="categorie_total"><?=$ab_total[$num];?></td>
46
				<td class="categorie_total"><?=$ab_total[$num];?></td>
-
 
47
				<?php endforeach; ?>
-
 
48
			</tr>
-
 
49
			<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
-
 
50
			<tr>
-
 
51
				<td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
-
 
52
				<?php foreach ($elements[$s] as $num => $jour) : ?>
-
 
53
				<td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td>
54
	<?php endforeach; ?>
54
				<?php endforeach; ?>
55
	</tr>
55
			</tr>
-
 
56
			<?php endforeach; ?>
-
 
57
		
-
 
58
			<tr>
56
	<tr><td class="totaux_titre">Totaux journée</td>
59
				<td class="totaux_titre">Totaux journée</td>
57
<?php foreach ($elements[$s] as $num => $jour) : ?>
60
				<?php foreach ($elements[$s] as $num => $jour) : ?>
58
		<td class="totaux"><?=$totaux[$num];?></td>
61
				<td class="totaux"><?=$totaux[$num];?></td>
59
<?php endforeach; ?>
62
				<?php endforeach; ?>
60
	</tr>
63
			</tr>
61
	</tbody>
64
		</tbody>
62
</table>
65
	</table>
63
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
66
	<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
64
</form>
67
	</form>
65
<?php else : ?>
68
<?php else : ?>
66
<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
69
	<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
67
<? endif;?>
70
<? endif;?>
68
</div>
71
</div>