Subversion Repositories Applications.gtt

Rev

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

Rev 110 Rev 125
1
<div id="navigation">
1
<div id="navigation">
2
	<p>Navigation : <a href="<?=$url_mois_precedent;?>">&lt;&lt;</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">&gt;&gt;</a></p>
2
	<p>Navigation : <a href="<?=$url_mois_precedent;?>">&lt;&lt;</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">&gt;&gt;</a></p>
3
</div>
3
</div>
-
 
4
<div id="export">
-
 
5
	<p><a href="<?=$url_mois_courant;?>&amp;format=csv">Affichage au format CSV</a> - <a href="<?=$url_mois_courant;?>&amp;format=csv&amp;sortie=csvt">Export au format CSV</a></p>
-
 
6
</div>
4
<?php if ($categories || $absences) : ?>
7
<?php if ($categories || $absences) : ?>
5
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ.">
8
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ.">
6
	<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
9
	<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
7
	<thead>
10
	<thead>
8
		<tr>
11
		<tr>
9
			<th>Projets</th>
12
			<th>Projets</th>
10
			<?php foreach ($utilisateurs as $utilisateur) : ?>
13
			<?php foreach ($utilisateurs as $utilisateur) : ?>
11
			<th><?=$utilisateur['prenom_nom']?></th>
14
			<th><?=$utilisateur['prenom_nom']?></th>
12
			<?php endforeach; ?>
15
			<?php endforeach; ?>
13
			<th>Total</th>
16
			<th>Total</th>
14
		</tr>
17
		</tr>
15
	</thead>
18
	</thead>
16
	<tbody>
19
	<tbody>
17
	<?php $ligne = "impair"; ?>
20
	<?php $ligne = "impair"; ?>
18
	<?php if ($categories) : ?>
21
	<?php if ($categories) : ?>
19
		<tr class="total">
22
		<tr class="total">
20
			<th>Travail</th>
23
			<th>Travail</th>
21
			<?php foreach ($utilisateurs as $utilisateur) : ?>
24
			<?php foreach ($utilisateurs as $utilisateur) : ?>
22
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
25
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
23
			<?php endforeach; ?>
26
			<?php endforeach; ?>
24
			<td class="total"><?=$total_projets;?></td>
27
			<td class="total"><?=$total_projets;?></td>
25
		</tr>
28
		</tr>
26
	<?foreach ($categories as $idc => $categorie):?>
29
	<?foreach ($categories as $idc => $categorie):?>
27
		<tr class="categories">
30
		<tr class="categories">
28
			<th class="categories_titre"><?=$categorie['nom'];?></th>
31
			<th class="categories_titre"><?=$categorie['nom'];?></th>
29
			<?php foreach ($utilisateurs as $utilisateur) : ?>
32
			<?php foreach ($utilisateurs as $utilisateur) : ?>
30
			<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
33
			<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
31
			<?php endforeach; ?>
34
			<?php endforeach; ?>
32
			<td class="total"><?=$categorie['total'];?></td>
35
			<td class="total"><?=$categorie['total'];?></td>
33
		</tr>
36
		</tr>
34
		<?foreach ($categorie['projets'] as $idp => $projet):?>
37
		<?foreach ($categorie['projets'] as $idp => $projet):?>
35
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
38
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
36
			<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
39
			<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
37
			<?php foreach ($utilisateurs as $utilisateur) : ?>
40
			<?php foreach ($utilisateurs as $utilisateur) : ?>
38
			<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
41
			<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
39
			<?php endforeach; ?>
42
			<?php endforeach; ?>
40
			<td class="total"><?=$projet['total'];?></td>
43
			<td class="total"><?=$projet['total'];?></td>
41
		</tr>
44
		</tr>
42
		<?php endforeach; ?>
45
		<?php endforeach; ?>
43
	<?php endforeach; ?>
46
	<?php endforeach; ?>
44
	<?php endif; ?>
47
	<?php endif; ?>
45
	<?php if ($absences) : ?>
48
	<?php if ($absences) : ?>
46
		<tr class="total">
49
		<tr class="total">
47
			<th class="absences_titre">Absences</th>
50
			<th class="absences_titre">Absences</th>
48
			<?php foreach ($utilisateurs as $utilisateur) : ?>
51
			<?php foreach ($utilisateurs as $utilisateur) : ?>
49
			<td><?=$utilisateur['total_a'];?></td>
52
			<td><?=$utilisateur['total_a'];?></td>
50
			<?php endforeach; ?>
53
			<?php endforeach; ?>
51
			<td class="total"><?=$total_absences;?></td>
54
			<td class="total"><?=$total_absences;?></td>
52
		</tr>
55
		</tr>
53
		<?php foreach ($absences as $ida => $absence) : ?>
56
		<?php foreach ($absences as $ida => $absence) : ?>
54
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
57
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
55
			<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
58
			<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
56
			<?php foreach ($utilisateurs as $utilisateur) : ?>
59
			<?php foreach ($utilisateurs as $utilisateur) : ?>
57
			<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
60
			<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
58
			<?php endforeach; ?>
61
			<?php endforeach; ?>
59
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
62
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
60
		</tr>
63
		</tr>
61
		<?php endforeach; ?>
64
		<?php endforeach; ?>
62
	<?php endif; ?>
65
	<?php endif; ?>
63
		<tr class="total">
66
		<tr class="total">
64
			<th>Total</th>
67
			<th>Total</th>
65
			<?php foreach ($utilisateurs as $utilisateur) : ?>
68
			<?php foreach ($utilisateurs as $utilisateur) : ?>
66
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
69
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
67
			<?php endforeach; ?>
70
			<?php endforeach; ?>
68
			<td class="total"><?=$total_absences_projets;?></td>
71
			<td class="total"><?=$total_absences_projets;?></td>
69
		</tr>
72
		</tr>
70
	</tbody>
73
	</tbody>
71
</table>
74
</table>
72
<?php endif; ?>
75
<?php endif; ?>
73
 
76
 
74
<?php if (isset($messages)) : ?>
77
<?php if (isset($messages)) : ?>
75
<?php foreach ($messages as $message) : ?>
78
<?php foreach ($messages as $message) : ?>
76
<p class="information"><?=$message;?></p>
79
<p class="information"><?=$message;?></p>
77
<?php endforeach; ?>
80
<?php endforeach; ?>
78
<?php endif; ?>
81
<?php endif; ?>