Subversion Repositories Applications.gtt

Rev

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

Rev 125 Rev 142
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">
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>
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>
6
</div>
7
<?php if ($categories || $absences) : ?>
7
<?php if ($categories || $absences) : ?>
8
<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Ʃ.">
9
	<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
9
	<caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
10
	<thead>
10
	<thead>
11
		<tr>
11
		<tr>
12
			<th>Projets</th>
12
			<th>Projets</th>
13
			<?php foreach ($utilisateurs as $utilisateur) : ?>
13
			<?php foreach ($utilisateurs as $utilisateur) : ?>
14
			<th><?=$utilisateur['prenom_nom']?></th>
14
			<th><?=$utilisateur['prenom_nom']?></th>
15
			<?php endforeach; ?>
15
			<?php endforeach; ?>
16
			<th>Total</th>
16
			<th>Total</th>
17
		</tr>
17
		</tr>
18
	</thead>
18
	</thead>
19
	<tbody>
19
	<tbody>
20
	<?php $ligne = "impair"; ?>
20
	<?php $ligne = "impair"; ?>
21
	<?php if ($categories) : ?>
21
	<?php if ($categories) : ?>
22
		<tr class="total">
22
		<tr class="total">
23
			<th>Travail</th>
23
			<th>Travail</th>
24
			<?php foreach ($utilisateurs as $utilisateur) : ?>
24
			<?php foreach ($utilisateurs as $utilisateur) : ?>
25
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
25
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
26
			<?php endforeach; ?>
26
			<?php endforeach; ?>
27
			<td class="total"><?=$total_projets;?></td>
27
			<td class="total"><?=$total_projets;?></td>
28
		</tr>
28
		</tr>
29
	<?foreach ($categories as $idc => $categorie):?>
29
	<?foreach ($categories as $idc => $categorie):?>
30
		<tr class="categories">
30
		<tr class="categories">
31
			<th class="categories_titre"><?=$categorie['nom'];?></th>
31
			<th class="categories_titre"><?=$categorie['nom'];?> [<?=$categorie['abreviation'];?>]</th>
32
			<?php foreach ($utilisateurs as $utilisateur) : ?>
32
			<?php foreach ($utilisateurs as $utilisateur) : ?>
33
			<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>
34
			<?php endforeach; ?>
34
			<?php endforeach; ?>
35
			<td class="total"><?=$categorie['total'];?></td>
35
			<td class="total"><?=$categorie['total'];?></td>
36
		</tr>
36
		</tr>
37
		<?foreach ($categorie['projets'] as $idp => $projet):?>
37
		<?foreach ($categorie['projets'] as $idp => $projet):?>
38
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
38
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
39
			<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
39
			<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
40
			<?php foreach ($utilisateurs as $utilisateur) : ?>
40
			<?php foreach ($utilisateurs as $utilisateur) : ?>
41
			<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>
42
			<?php endforeach; ?>
42
			<?php endforeach; ?>
43
			<td class="total"><?=$projet['total'];?></td>
43
			<td class="total"><?=$projet['total'];?></td>
44
		</tr>
44
		</tr>
45
		<?php endforeach; ?>
45
		<?php endforeach; ?>
46
	<?php endforeach; ?>
46
	<?php endforeach; ?>
47
	<?php endif; ?>
47
	<?php endif; ?>
48
	<?php if ($absences) : ?>
48
	<?php if ($absences) : ?>
49
		<tr class="total">
49
		<tr class="total">
50
			<th class="absences_titre">Absences</th>
50
			<th class="absences_titre">Absences</th>
51
			<?php foreach ($utilisateurs as $utilisateur) : ?>
51
			<?php foreach ($utilisateurs as $utilisateur) : ?>
52
			<td><?=$utilisateur['total_a'];?></td>
52
			<td><?=$utilisateur['total_a'];?></td>
53
			<?php endforeach; ?>
53
			<?php endforeach; ?>
54
			<td class="total"><?=$total_absences;?></td>
54
			<td class="total"><?=$total_absences;?></td>
55
		</tr>
55
		</tr>
56
		<?php foreach ($absences as $ida => $absence) : ?>
56
		<?php foreach ($absences as $ida => $absence) : ?>
57
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
57
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
58
			<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
58
			<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
59
			<?php foreach ($utilisateurs as $utilisateur) : ?>
59
			<?php foreach ($utilisateurs as $utilisateur) : ?>
60
			<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>
61
			<?php endforeach; ?>
61
			<?php endforeach; ?>
62
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
62
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
63
		</tr>
63
		</tr>
64
		<?php endforeach; ?>
64
		<?php endforeach; ?>
65
	<?php endif; ?>
65
	<?php endif; ?>
66
		<tr class="total">
66
		<tr class="total">
67
			<th>Total</th>
67
			<th>Total</th>
68
			<?php foreach ($utilisateurs as $utilisateur) : ?>
68
			<?php foreach ($utilisateurs as $utilisateur) : ?>
69
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
69
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
70
			<?php endforeach; ?>
70
			<?php endforeach; ?>
71
			<td class="total"><?=$total_absences_projets;?></td>
71
			<td class="total"><?=$total_absences_projets;?></td>
72
		</tr>
72
		</tr>
73
	</tbody>
73
	</tbody>
74
</table>
74
</table>
75
<?php endif; ?>
75
<?php endif; ?>
76
 
76
 
77
<?php if (isset($messages)) : ?>
77
<?php if (isset($messages)) : ?>
78
<?php foreach ($messages as $message) : ?>
78
<?php foreach ($messages as $message) : ?>
79
<p class="information"><?=$message;?></p>
79
<p class="information"><?=$message;?></p>
80
<?php endforeach; ?>
80
<?php endforeach; ?>
81
<?php endif; ?>
81
<?php endif; ?>