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 107
Line 1... Line 1...
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
<?php if ($projets || $absences) : ?>
4
<?php if ($categories || $absences) : ?>
5
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ.">
5
<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>
6
	<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
7
	<thead>
7
	<thead>
8
		<tr>
8
		<tr>
9
			<th>Projets</th>
9
			<th>Projets</th>
10
			<?php foreach ($utilisateurs as $utilisateur) : ?>
10
			<?php foreach ($utilisateurs as $utilisateur) : ?>
11
			<th>
-
 
12
				<?=$utilisateur['prenom_nom']?>
11
			<th><?=$utilisateur['prenom_nom']?></th>
13
			</th>
-
 
14
			<?php endforeach; ?>
12
			<?php endforeach; ?>
-
 
13
			<th>Total</th>
15
		</tr>
14
		</tr>
16
	</thead>
15
	</thead>
17
	<tbody>
16
	<tbody>
18
	<?php $ligne = "impair"; ?>
17
	<?php $ligne = "impair"; ?>
19
	<?php if ($projets) : ?>
18
	<?php if ($categories) : ?>
20
	<?foreach ($projets as $categorie => $pr):?>
19
	<?foreach ($categories as $idc => $categorie):?>
21
		<tr class="categories">
20
		<tr class="categories">
22
			<td class="categories_titre"><?=$categorie;?></td>
21
			<td class="categories_titre"><?=$categorie['nom'];?></td>
23
			<?php foreach ($utilisateurs as $utilisateur) : ?>
22
			<?php foreach ($utilisateurs as $utilisateur) : ?>
24
			<td class="categories_total"><?=(isset($utilisateur['categorie_totaux'][$categorie])) ? $utilisateur['categorie_totaux'][$categorie] : "&nbsp;";?></td>
23
			<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
25
			<?php endforeach; ?>
24
			<?php endforeach; ?>
-
 
25
			<td><?=$categorie['total'];?></td>
26
		</tr>
26
		</tr>
27
		<?foreach ($pr as $id => $nom):?>
27
		<?foreach ($categorie['projets'] as $idp => $projet):?>
28
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
28
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
29
			<td id="pr:<?=$id;?>" class="projet_nom"><?=$nom;?></td>
29
			<td id="pr:<?=$idp;?>" class="projet_nom"><?=$projet['nom'];?></td>
30
			<?php foreach ($utilisateurs as $utilisateur) : ?>
30
			<?php foreach ($utilisateurs as $utilisateur) : ?>
31
			<td class="projet"><?=(isset($utilisateur['projets'][$categorie][$id])) ? $utilisateur['projets'][$categorie][$id]['duree'] : "&nbsp;";?></td>
31
			<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
32
			<?php endforeach; ?>
32
			<?php endforeach; ?>
-
 
33
			<td class="total"><?=$projet['total'];?></td>
33
		</tr>
34
		</tr>
34
		<?php endforeach; ?>
35
		<?php endforeach; ?>
35
	<?php endforeach; ?>
36
	<?php endforeach; ?>
-
 
37
		<tr class="total">
-
 
38
			<td>Total travail</td>
-
 
39
			<?php foreach ($utilisateurs as $utilisateur) : ?>
-
 
40
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
-
 
41
			<?php endforeach; ?>
-
 
42
			<td><?=$total_projets;?></td>
-
 
43
		</tr>
36
	<?php endif; ?>
44
	<?php endif; ?>
37
	<?php if ($absences) : ?>
45
	<?php if ($absences) : ?>
38
		<tr class="absences">
46
		<tr class="absences">
39
			<td class="absences_titre">Absences</td>
47
			<td class="absences_titre">Absences</td>
40
			<?php foreach ($utilisateurs as $utilisateur) : ?>
48
			<?php foreach ($utilisateurs as $utilisateur) : ?>
41
			<td class="absences_total"><?=$utilisateur['ab_total'];?></td>
49
			<td class="absences_total"><?=$utilisateur['total_a'];?></td>
42
			<?php endforeach; ?>
50
			<?php endforeach; ?>
-
 
51
			<td><?=$total_absences;?></td>
43
		</tr>
52
		</tr>
44
		<?php foreach ($absences as $ab_id => $ab_libelle) : ?>
53
		<?php foreach ($absences as $ida => $absence) : ?>
45
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
54
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
46
			<td id="ab:<?=$ab_id;?>" class="absence_nom"><?=$ab_libelle;?></td>
55
			<td id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></td>
47
			<?php foreach ($utilisateurs as $utilisateur) : ?>
56
			<?php foreach ($utilisateurs as $utilisateur) : ?>
48
			<td class="absence"><?= (isset($utilisateur['ab'][$ab_id])) ? $utilisateur['ab'][$ab_id] : "&nbsp;";?></td>
57
			<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
49
			<?php endforeach; ?>
58
			<?php endforeach; ?>
-
 
59
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
50
		</tr>
60
		</tr>
51
		<?php endforeach; ?>
61
		<?php endforeach; ?>
52
	<?php endif; ?>
62
	<?php endif; ?>
-
 
63
		<tr class="total">
-
 
64
			<td>Total</td>
-
 
65
			<?php foreach ($utilisateurs as $utilisateur) : ?>
-
 
66
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
-
 
67
			<?php endforeach; ?>
-
 
68
			<td><?=$total_absences_projets;?></td>
-
 
69
		</tr>
53
	</tbody>
70
	</tbody>
54
</table>
71
</table>
55
<?php endif; ?>
72
<?php endif; ?>
Line 56... Line 73...
56
 
73