31 |
aurelien |
1 |
<!-- ODS_SAISIE - DEBUT MODIFICATION EVENEMENTS -->
|
52 |
aurelien |
2 |
<div>
|
|
|
3 |
<h2> Observations pour l'année <?= $annee ?></h2>
|
59 |
aurelien |
4 |
<form id="form_modif_observation" name="form_modif_observation" method="post" action="<?= Liens::getUrlValidationFormulaireModificationObservation($id_station,$id_espece, $id_individu_a_modifier_observation, $annee) ?>" >
|
31 |
aurelien |
5 |
<table id="saisie_modif_evenements">
|
|
|
6 |
<tr>
|
|
|
7 |
<th></th>
|
|
|
8 |
<?php foreach($evenements as $evenement) : ?>
|
52 |
aurelien |
9 |
<th class="stade_<?=$evenement['abreviation'] ?>" colspan="<?=count($evenement['stades']) ?>">
|
31 |
aurelien |
10 |
<div class="evenement"><?= $evenement['nom'] ?></div>
|
|
|
11 |
</th>
|
|
|
12 |
<?php endforeach; ?>
|
|
|
13 |
<th></th>
|
|
|
14 |
</tr>
|
|
|
15 |
|
|
|
16 |
<tr>
|
|
|
17 |
<th> stades </th>
|
|
|
18 |
<?php foreach($evenements as $evenement) : ?>
|
|
|
19 |
<?php foreach($evenement['stades'] as $stade) : ?>
|
|
|
20 |
<th class="stade_evenement">
|
|
|
21 |
<?= $stade ?>
|
|
|
22 |
</th>
|
|
|
23 |
<?php endforeach; ?>
|
|
|
24 |
<?php endforeach; ?>
|
|
|
25 |
</tr>
|
52 |
aurelien |
26 |
|
31 |
aurelien |
27 |
<?php foreach ($individus as $individu) : ?>
|
38 |
aurelien |
28 |
<tr class="modification_observations_individu" id="modification_observations_individu_<?= $individu['id_individu'] ?>">
|
31 |
aurelien |
29 |
<td>
|
59 |
aurelien |
30 |
<a href="<?= Liens::getUrlConsultationFicheIndividu($id_station, $id_espece, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
|
31 |
aurelien |
31 |
</td>
|
52 |
aurelien |
32 |
<?php foreach($evenements as $nom_evenement => $evenement) : ?>
|
|
|
33 |
<?php foreach($evenement['stades'] as $id_stade => $stade) : ?>
|
|
|
34 |
<td>
|
|
|
35 |
<div class="calendrier">
|
|
|
36 |
<?php if ($individu['id_individu'] == $id_individu_a_modifier_observation) { ?>
|
|
|
37 |
<?php $valeur_stade_individu = Observation::renvoyerObservationStadePourIndividu($individu, $annee, $nom_evenement, $stade); ?>
|
|
|
38 |
<input type="text" maxlength="10" size="10" name="observation_<?= $id_stade ?>" id="observation_<?= $id_stade ?>" value="<?= $valeur_stade_individu ?>" />
|
|
|
39 |
<?php } else { ?>
|
|
|
40 |
<?php if (isset($individu['observations'][$annee][$nom_evenement][$stade])) { ?>
|
|
|
41 |
<?= $individu['observations'][$annee][$nom_evenement][$stade]; ?>
|
|
|
42 |
<?php } else { ?>
|
|
|
43 |
-
|
|
|
44 |
<?php } ?>
|
|
|
45 |
<?php }?>
|
|
|
46 |
</div>
|
|
|
47 |
</td>
|
|
|
48 |
<?php endforeach; ?>
|
|
|
49 |
<?php endforeach; ?>
|
38 |
aurelien |
50 |
<td>
|
|
|
51 |
<?php if ($individu['id_individu'] == $id_individu_a_modifier_observation) { ?>
|
52 |
aurelien |
52 |
<input type="submit" class="valider_formulaire icone_s" value="OK" title="valider" />
|
38 |
aurelien |
53 |
<?php } ?>
|
|
|
54 |
</td>
|
31 |
aurelien |
55 |
</tr>
|
|
|
56 |
<?php endforeach; ?>
|
|
|
57 |
</table>
|
52 |
aurelien |
58 |
<input type="hidden" id="id_individu" name="id_individu" value="<?= $id_individu_a_modifier_observation ?>" />
|
|
|
59 |
<input type="hidden" id="annee_en_cours" name="annee_en_cours" value="<?= $annee ?>" />
|
|
|
60 |
</form>
|
31 |
aurelien |
61 |
</div>
|
|
|
62 |
<!-- ODS_SAISIE - FIN MODIFICATION EVENEMENTS -->
|