Subversion Repositories Applications.gtt

Rev

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

<div id="info">
        <p id="info_aujourdhui">Aujourd'hui, nous sommes le <a href="<?=$jc_url;?>"><?=$jc['jour'];?> <?=$jc['mois_nom'];?> <?=$jc['annee'];?></a></p>
        <p id="info_semaine">Semaine du <a href="<?=$jc_url;?>"><?=$sjc_1['jour'];?> <?=$sjc_1['mois'];?> <?=$sjc_1['annee'];?> au <?=$sjc_7['jour'];?> <?=$sjc_7['mois'];?> <?=$sjc_7['annee'];?></a></p>
</div>
<div id="calendrier_gestion" class="calendrier">
<?php if ($bool_projets) : ?>
<form id="gestion" name="gestion" action="<?=$url_gestion_valider;?>" method="post">
<table id="tab_gestion">
        <caption>
        <a href="<?=$url_semaine_precedente;?>">&lt;&lt;</a>
        <?=$sj_1['jour'];?> <?=$sj_1['mois'];?> <?=$sj_1['annee'];?> au <?=$sj_7['jour'];?> <?=$sj_7['mois'];?> <?=$sj_7['annee'];?>
        <a href="<?=$url_semaine_suivante;?>">&gt;&gt;</a>
        </caption>
        <thead>
        <tr>
                <th>Projets</th>
<?php foreach ($elements[$s] as $jour) : ?>
                <th class="<?=$jour['class'];?>">
                        <?=$jour['jour_nom'];?> <?=$jour['jour'];?>
                </th>
<?php endforeach; ?>
        </tr>
        </thead>
        <tbody>
<?php if ($bool_projets) : ?>
<?foreach ($preferences as $categorie => $projets):?>
        <tr><td colspan="8" class="categorie"><?=$categorie;?></td></tr>
        <?foreach ($projets as $projet):?>
        <tr>
                <td class="projet"><?=$projet['nom'];?></td>
                <?php foreach ($elements[$s] as $num => $jour) : ?>
                <td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
                <?php endforeach; ?>
        </tr>
        <?php endforeach; ?>
        <tr><td class="total_titre">Totaux</td>
        <?php foreach ($elements[$s] as $num => $jour) : ?>
                <td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
        <?php endforeach; ?>
        </tr>
<?php endforeach; ?>
<? endif;?>
        <tr><td colspan="8" class="categorie">Absences</td></tr>
<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
        <tr><td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
        <?php foreach ($elements[$s] as $num => $jour) : ?>
                <td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td>
        <?php endforeach; ?>
        </tr>
<?php endforeach; ?>
        <tr><td class="total_titre">Totaux</td>
        <?php foreach ($elements[$s] as $num => $jour) : ?>
                <td class="categorie_total"><?=$ab_total[$num];?></td>
        <?php endforeach; ?>
        </tr>
        <tr><td class="totaux_titre">Totaux journée</td>
<?php foreach ($elements[$s] as $num => $jour) : ?>
                <td class="totaux"><?=$totaux[$num];?></td>
<?php endforeach; ?>
        </tr>
        </tbody>
</table>
<input id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
</form>
<?php else : ?>
<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
<? endif;?>
</div>