Subversion Repositories Applications.gtt

Rev

Rev 137 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
125 jpm 1
<?php if (isset($projets) || isset($absences)) : ?>
2
Projets	<?php foreach ($elements as $jour) : ?><?=$jour['jour_nom']?> <?=$jour['jour']?>	<?php endforeach; ?>Total
3
<?php if (isset($projets)) : ?>
4
Travail	<?php foreach ($elements as $jour) : ?><?=(!empty($jour['travail'])) ? $jour['travail'] : ' ';?>	<?php endforeach; ?><?=$total_w;?>
5
<?foreach ($projets as $categorie => $pr):?>
6
 
142 jpm 7
<?=$categorie;?> [<?=$categories[$categorie]['abreviation'];?>]	<?php foreach ($elements as $jour_id => $jour) : ?><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : ' ';?>	<?php endforeach; ?><?=$categories[$categorie]['total'];?>
125 jpm 8
 
9
<?foreach ($pr as $id => $projet):?>
137 jpm 10
<?=$projet['nom'];?>	<?php foreach ($elements as $jour_id => $jour) : ?><?=(isset($projet['duree'][$jour_id])) ? $projet['duree'][$jour_id] : ' ';?>	<?php endforeach; ?><?=(isset($projet['total'])) ? $projet['total'] : ' ';?>
125 jpm 11
 
137 jpm 12
<?php endforeach; ?><?php endforeach; ?><?php endif; ?>
13
 
125 jpm 14
<?php if (isset($absences)) : ?>
15
Absences	<?php foreach ($elements as $jour) : ?><?=(!empty($jour['absence'])) ? $jour['absence'] : ' ';?>	<?php endforeach; ?><?=$total_a;?>
16
 
17
<?php foreach ($absences as $ab_id => $absence) : ?>
18
<?=$absence['nom'];?>	<?php foreach ($elements as $jour_id => $jour) : ?><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : ' ';?>	<?php endforeach; ?><?=(!empty($absence['total'])) ? $absence['total'] : '' ;?>
19
 
20
<?php endforeach; ?><?php endif; ?>
21
Total	<?php foreach ($elements as $jour) : ?><?=(!empty($jour['w_et_a'])) ? $jour['w_et_a'] : ' ';?>	<?php endforeach; ?><?=$total;?>
22
<?php endif; ?>