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