Subversion Repositories Applications.gtt

Rev

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

Rev 107 Rev 110
Line 14... Line 14...
14
		</tr>
14
		</tr>
15
	</thead>
15
	</thead>
16
	<tbody>
16
	<tbody>
17
	<?php $ligne = "impair"; ?>
17
	<?php $ligne = "impair"; ?>
18
	<?php if ($categories) : ?>
18
	<?php if ($categories) : ?>
-
 
19
		<tr class="total">
-
 
20
			<th>Travail</th>
-
 
21
			<?php foreach ($utilisateurs as $utilisateur) : ?>
-
 
22
			<td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
-
 
23
			<?php endforeach; ?>
-
 
24
			<td class="total"><?=$total_projets;?></td>
-
 
25
		</tr>
19
	<?foreach ($categories as $idc => $categorie):?>
26
	<?foreach ($categories as $idc => $categorie):?>
20
		<tr class="categories">
27
		<tr class="categories">
21
			<td class="categories_titre"><?=$categorie['nom'];?></td>
28
			<th class="categories_titre"><?=$categorie['nom'];?></th>
22
			<?php foreach ($utilisateurs as $utilisateur) : ?>
29
			<?php foreach ($utilisateurs as $utilisateur) : ?>
23
			<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
30
			<td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
24
			<?php endforeach; ?>
31
			<?php endforeach; ?>
25
			<td><?=$categorie['total'];?></td>
32
			<td class="total"><?=$categorie['total'];?></td>
26
		</tr>
33
		</tr>
27
		<?foreach ($categorie['projets'] as $idp => $projet):?>
34
		<?foreach ($categorie['projets'] as $idp => $projet):?>
28
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
35
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
29
			<td id="pr:<?=$idp;?>" class="projet_nom"><?=$projet['nom'];?></td>
36
			<th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
30
			<?php foreach ($utilisateurs as $utilisateur) : ?>
37
			<?php foreach ($utilisateurs as $utilisateur) : ?>
31
			<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
38
			<td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
32
			<?php endforeach; ?>
39
			<?php endforeach; ?>
33
			<td class="total"><?=$projet['total'];?></td>
40
			<td class="total"><?=$projet['total'];?></td>
34
		</tr>
41
		</tr>
35
		<?php endforeach; ?>
42
		<?php endforeach; ?>
36
	<?php endforeach; ?>
43
	<?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>
-
 
44
	<?php endif; ?>
44
	<?php endif; ?>
45
	<?php if ($absences) : ?>
45
	<?php if ($absences) : ?>
46
		<tr class="absences">
46
		<tr class="total">
47
			<td class="absences_titre">Absences</td>
47
			<th class="absences_titre">Absences</th>
48
			<?php foreach ($utilisateurs as $utilisateur) : ?>
48
			<?php foreach ($utilisateurs as $utilisateur) : ?>
49
			<td class="absences_total"><?=$utilisateur['total_a'];?></td>
49
			<td><?=$utilisateur['total_a'];?></td>
50
			<?php endforeach; ?>
50
			<?php endforeach; ?>
51
			<td><?=$total_absences;?></td>
51
			<td class="total"><?=$total_absences;?></td>
52
		</tr>
52
		</tr>
53
		<?php foreach ($absences as $ida => $absence) : ?>
53
		<?php foreach ($absences as $ida => $absence) : ?>
54
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
54
		<tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
55
			<td id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></td>
55
			<th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
56
			<?php foreach ($utilisateurs as $utilisateur) : ?>
56
			<?php foreach ($utilisateurs as $utilisateur) : ?>
57
			<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
57
			<td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
58
			<?php endforeach; ?>
58
			<?php endforeach; ?>
59
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
59
			<td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
60
		</tr>
60
		</tr>
61
		<?php endforeach; ?>
61
		<?php endforeach; ?>
62
	<?php endif; ?>
62
	<?php endif; ?>
63
		<tr class="total">
63
		<tr class="total">
64
			<td>Total</td>
64
			<th>Total</th>
65
			<?php foreach ($utilisateurs as $utilisateur) : ?>
65
			<?php foreach ($utilisateurs as $utilisateur) : ?>
66
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
66
			<td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
67
			<?php endforeach; ?>
67
			<?php endforeach; ?>
68
			<td><?=$total_absences_projets;?></td>
68
			<td class="total"><?=$total_absences_projets;?></td>
69
		</tr>
69
		</tr>
70
	</tbody>
70
	</tbody>
71
</table>
71
</table>
72
<?php endif; ?>
72
<?php endif; ?>