Subversion Repositories Applications.gtt

Rev

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

<?php if (isset($projets) || isset($absences)) : ?>
Projets <?php foreach ($elements as $jour) : ?><?=$jour['jour_nom']?> <?=$jour['jour']?>        <?php endforeach; ?>Total
<?php if (isset($projets)) : ?>
Travail <?php foreach ($elements as $jour) : ?><?=(!empty($jour['travail'])) ? $jour['travail'] : ' ';?>        <?php endforeach; ?><?=$total_w;?>
<?foreach ($projets as $categorie => $pr):?>

<?=$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'];?>

<?foreach ($pr as $id => $projet):?>
<?=$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'] : ' ';?>

<?php endforeach; ?><?php endforeach; ?><?php endif; ?>

<?php if (isset($absences)) : ?>
Absences        <?php foreach ($elements as $jour) : ?><?=(!empty($jour['absence'])) ? $jour['absence'] : ' ';?>        <?php endforeach; ?><?=$total_a;?>

<?php foreach ($absences as $ab_id => $absence) : ?>
<?=$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'] : '' ;?>

<?php endforeach; ?><?php endif; ?>
Total   <?php foreach ($elements as $jour) : ?><?=(!empty($jour['w_et_a'])) ? $jour['w_et_a'] : ' ';?>  <?php endforeach; ?><?=$total;?>
<?php endif; ?>