Subversion Repositories Applications.gtt

Rev

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

Rev 73 Rev 89
1
<div id="info">
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>
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
			<? if ($jour['class'] == 'jour_vide') :?>
-
 
20
				<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
19
			<?=$jour['jour_nom'];?> <?=$jour['jour'];?>
21
			<? else :?>
-
 
22
				<a href="<?=$jour['url'];?>"><?=$jour['jour_nom'];?> <?=$jour['jour'];?></a>
-
 
23
			<? endif;?>
-
 
24
		</th>
20
		</th>
25
<?php endforeach; ?>
21
<?php endforeach; ?>
26
	</tr>
22
	</tr>
27
	</thead>
23
	</thead>
28
	<tbody>
24
	<tbody>
29
<?php if ($bool_projets) : ?>
25
<?php if ($bool_projets) : ?>
30
<?foreach ($preferences as $categorie => $projets):?>
26
<?foreach ($preferences as $categorie => $projets):?>
31
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
27
	<tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
32
	<?foreach ($projets as $projet):?>
28
	<?foreach ($projets as $projet):?>
33
	<tr>
29
	<tr>
34
		<td class="projet"><?=$projet['nom'];?></td>
30
		<td class="projet"><?=$projet['nom'];?></td>
35
		<?php foreach ($elements[$s] as $num => $jour) : ?>
31
		<?php foreach ($elements[$s] as $num => $jour) : ?>
36
		<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
32
		<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
37
		<?php endforeach; ?>
33
		<?php endforeach; ?>
38
	</tr>
34
	</tr>
39
	<?php endforeach; ?>
35
	<?php endforeach; ?>
40
	<tr><td class="total_titre">Totaux</td>
36
	<tr><td class="total_titre">Totaux</td>
41
	<?php foreach ($elements[$s] as $num => $jour) : ?>
37
	<?php foreach ($elements[$s] as $num => $jour) : ?>
42
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
38
		<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
43
	<?php endforeach; ?>
39
	<?php endforeach; ?>
44
	</tr>
40
	</tr>
45
<?php endforeach; ?>
41
<?php endforeach; ?>
46
<? endif;?>
42
<? endif;?>
47
	<tr><td colspan="8" class="categorie">Absences</td></tr>
43
	<tr><td colspan="8" class="categorie">Absences</td></tr>
48
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
44
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
49
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
45
	<tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
50
	<?php foreach ($tab_ab_jours as $num => $ab_duree) : ?>
46
	<?php foreach ($elements[$s] as $num => $jour) : ?>
51
		<td class="ab"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$ab_duree;?>" type="text"/></td>
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>
52
	<?php endforeach; ?>
48
	<?php endforeach; ?>
53
	</tr>
49
	</tr>
54
<?php endforeach; ?>
50
<?php endforeach; ?>
55
	<tr><td class="total_titre">Totaux</td>
51
	<tr><td class="total_titre">Totaux</td>
56
	<?php foreach ($elements[$s] as $num => $jour) : ?>
52
	<?php foreach ($elements[$s] as $num => $jour) : ?>
57
		<td class="categorie_total"><?=$ab_total[$num];?></td>
53
		<td class="categorie_total"><?=$ab_total[$num];?></td>
58
	<?php endforeach; ?>
54
	<?php endforeach; ?>
59
	</tr>
55
	</tr>
60
	<tr><td class="totaux_titre">Totaux journée</td>
56
	<tr><td class="totaux_titre">Totaux journée</td>
61
<?php foreach ($elements[$s] as $num => $jour) : ?>
57
<?php foreach ($elements[$s] as $num => $jour) : ?>
62
		<td class="totaux"><?=$totaux[$num];?></td>
58
		<td class="totaux"><?=$totaux[$num];?></td>
63
<?php endforeach; ?>
59
<?php endforeach; ?>
64
	</tr>
60
	</tr>
65
	</tbody>
61
	</tbody>
66
</table>
62
</table>
67
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
63
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
68
</form>
64
</form>
69
<?php else : ?>
65
<?php else : ?>
70
<p>Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
66
<p>Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
71
<? endif;?>
67
<? endif;?>
72
</div>
68
</div>