Subversion Repositories Applications.gtt

Rev

Rev 167 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div id="navigation">
        <p>Navigation : <a href="<?=$url_mois_precedent;?>">&lt;&lt;</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">&gt;&gt;</a></p>
</div>
<div id="export">
        <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>
</div>
<?php if ($categories || $absences) : ?>
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ.">
        <caption>Tableaux global - <?=$mois['mois'];?> <?=$mois['annee'];?></caption>
        <thead>
                <tr>
                        <th>Projets</th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <th><?=$utilisateur['prenom_nom']?></th>
                        <?php endforeach; ?>
                        <th>Total</th>
                </tr>
        </thead>
        <tbody>
        <?php $ligne = "impair"; ?>
        <?php if ($categories) : ?>
                <tr class="total">
                        <th>Travail</th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td><?=(isset($utilisateur['total_w'])) ? $utilisateur['total_w'] : "&nbsp;";?></td>
                        <?php endforeach; ?>
                        <td class="total"><?=$total_projets;?></td>
                </tr>
        <?php foreach ($categories as $idc => $categorie):?>
                <tr class="categories">
                        <th class="categories_titre"><?=$categorie['nom'];?> [<?=$categorie['abreviation'];?>]</th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td class="categories_total"><?=(isset($utilisateur['projets'][$idc]['total'])) ? $utilisateur['projets'][$idc]['total'] : "&nbsp;";?></td>
                        <?php endforeach; ?>
                        <td class="total"><?=$categorie['total'];?></td>
                </tr>
                <?php foreach ($categorie['projets'] as $idp => $projet):?>
                <tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
                        <th id="pr:<?=$idp;?>" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td class="projet"><?=(isset($utilisateur['projets'][$idc][$idp])) ? $utilisateur['projets'][$idc][$idp]['duree'] : "&nbsp;";?></td>
                        <?php endforeach; ?>
                        <td class="total"><?=$projet['total'];?></td>
                </tr>
                <?php endforeach; ?>
        <?php endforeach; ?>
        <?php endif; ?>
        <?php if ($absences) : ?>
                <tr class="total">
                        <th class="absences_titre">Absences</th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td><?=$utilisateur['total_a'];?></td>
                        <?php endforeach; ?>
                        <td class="total"><?=$total_absences;?></td>
                </tr>
                <?php foreach ($absences as $ida => $absence) : ?>
                <tr class="utilisateur <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
                        <th id="ab:<?=$ida;?>" class="absence_nom"><?=$absence['nom'];?></th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td class="absence"><?= (isset($utilisateur['ab'][$ida])) ? $utilisateur['ab'][$ida] : "&nbsp;";?></td>
                        <?php endforeach; ?>
                        <td class="total"><?= (isset($absence['total'])) ? $absence['total'] : "&nbsp;";?></td>
                </tr>
                <?php endforeach; ?>
        <?php endif; ?>
                <tr class="total">
                        <th>Total</th>
                        <?php foreach ($utilisateurs as $utilisateur) : ?>
                        <td><?=(isset($utilisateur['total'])) ? $utilisateur['total'] : "&nbsp;";?></td>
                        <?php endforeach; ?>
                        <td class="total"><?=$total_absences_projets;?></td>
                </tr>
        </tbody>
</table>
<?php endif; ?>

<?php if (isset($messages)) : ?>
<?php foreach ($messages as $message) : ?>
<p class="information"><?=$message;?></p>
<?php endforeach; ?>
<?php endif; ?>