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