Rev 38 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!-- ODS_SAISIE - DEBUT MODIFICATION EVENEMENTS -->
<?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>
<td>
<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $individu['id']); ?>"><?= $individu['nom'] ?></a>
</td>
<?php if($individu['id'] == $id_individu_a_modifier_observation) { ?>
<form method="post" action="<?= aControleur::getUrlConsultationEspeceStation($id_station, $id_espece); ?>">
<?php for( $i = 0; $i < $stades; $i++) : ?>
<td>
<input type="text" maxlength="8" size="8" id="observation_<?= $i ?>" value="<?= array_shift($individu['observations']); ?>" />
</td>
<?php endfor; ?>
<td><input type="submit" value="OK" /></td>
</form>
<?php } else { ?>
<?php for( $i = 0; $i < $stades; $i++) : ?>
<td>
<?= array_shift($individu['observations']); ?>
</td>
<?php endfor; ?>
<td></td>
<?php } ?>
</tr>
<?php endforeach; ?>
</table>
<a href="<?= aControleur::getUrlFormulaireAjoutIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
</div>
<!-- ODS_SAISIE - FIN MODIFICATION EVENEMENTS -->