Subversion Repositories Sites.obs-saisons.fr

Rev

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

<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
<?php $stades = 0; ?>
<div >
        <table id="saisie_liste_evenements">
                <tr>
                        <th></th> 
                        <?php $classe_evenement = 1 ; ?>
                        <?php foreach($evenements as $evenement) : ?>
                                <th class="stade<?=$classe_evenement ?>" colspan="<?=count($evenement['stades']) ?>">
                                                <div class="evenement"><?= $evenement['nom'] ?></div>
                                </th>
                                <?php $classe_evenement++ ; ?>
                        <?php endforeach; ?>
                        <th></th>
                </tr>
                
                <tr>
                        <th> stades </th> 
                        <?php foreach($evenements as $evenement) : ?>
                                <?php foreach($evenement['stades'] as $stade) : ?>
                                        <th class="stade_evenement"> 
                                                <?= $stade ?> 
                                        </th>
                                        <?php $stades++; ?>
                                <?php endforeach; ?>
                        <?php endforeach; ?>
                </tr>
                

        <?php foreach ($individus as $individu) : ?>
        <tr class="observations_individu" id="observations_individu_<?= $individu['id'] ?>">
                <td>
                        <a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $individu['id']); ?>"><?= $individu['nom'] ?></a>
                </td>
                <?php for( $i = 0; $i < $stades; $i++) : ?>
                <td>
                        <?= array_shift($individu['observations']); ?>
                </td>
                <?php endfor; ?>
                <td><a class="lien_modifier" href="<?= aControleur::getUrlFormulaireModificationObservation($individu['id']); ?>"><img alt="modifier" src="http://162.38.234.9/ODS_redesign/applications/saisie/squelettes/images/modification.png" /></a></td>
        </tr>
        <?php endforeach; ?>
        </table>

<a href="<?= aControleur::getUrlFormulaireAjoutIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
</div>
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->