Subversion Repositories Sites.obs-saisons.fr

Rev

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

<!-- ODS_SAISIE - DEBUT MODIFICATION EVENEMENTS -->
<link href="<?= aControleur::getUrlScript(); ?>jquery_ui/jquery-ui-1.8.5.custom.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?= aControleur::getUrlScript(); ?>jquery_ui/jquery-ui-1.8.5.custom.js"></script>
<script type="text/javascript" src="<?= aControleur::getUrlScript(); ?>jquery_ui/jquery.ui.datepicker-fr.js"></script>
<script type="text/javascript" src="<?= aControleur::getUrlScript(); ?>saisie_observation.js"></script>
<?php $stades = 0; ?>
<div >
        <table id="saisie_modif_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="modification_observations_individu" id="modification_observations_individu_<?= $individu['id_individu'] ?>">
                <td>
                        <a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $id_espece, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
                </td>
                <?php for( $i = 0; $i < $stades; $i++) : ?>
                <td>
                        <div class="calendrier">
                                <?php if ($individu['id_individu'] == $id_individu_a_modifier_observation) { ?>
                                        <input type="text" maxlength="10" size="10" id="observation_<?= $i ?>" value="<?= array_shift($individu['observations']); ?>" />
                        <?php } else { ?>
                                        <?= array_shift($individu['observations']); ?>
                                <?php } ?>
                        </div>
                    </td>
                <?php endfor; ?>
                <td>
                        <?php if ($individu['id_individu'] == $id_individu_a_modifier_observation) { ?>
                                <a class="lien_modifier" href="<?= aControleur::getUrlValidationFormulaireModificationObservation($id_station,$id_espece, $individu['id_individu']); ?>"><img class="icone_s" alt="OK" src="<?= aControleur::getUrlImage(); ?>valider.png" /></a>
                         <?php } ?>
                        </td>
        </tr>
        <?php endforeach; ?>
        </table>
</div>
<!-- ODS_SAISIE - FIN MODIFICATION EVENEMENTS -->