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>
|
31 |
aurelien |
6 |
<?php $stades = 0; ?>
|
|
|
7 |
<div >
|
|
|
8 |
<table id="saisie_modif_evenements">
|
|
|
9 |
<tr>
|
|
|
10 |
<th></th>
|
|
|
11 |
<?php $classe_evenement = 1 ; ?>
|
|
|
12 |
<?php foreach($evenements as $evenement) : ?>
|
|
|
13 |
<th class="stade<?=$classe_evenement ?>" colspan="<?=count($evenement['stades']) ?>">
|
|
|
14 |
<div class="evenement"><?= $evenement['nom'] ?></div>
|
|
|
15 |
</th>
|
|
|
16 |
<?php $classe_evenement++ ; ?>
|
|
|
17 |
<?php endforeach; ?>
|
|
|
18 |
<th></th>
|
|
|
19 |
</tr>
|
|
|
20 |
|
|
|
21 |
<tr>
|
|
|
22 |
<th> stades </th>
|
|
|
23 |
<?php foreach($evenements as $evenement) : ?>
|
|
|
24 |
<?php foreach($evenement['stades'] as $stade) : ?>
|
|
|
25 |
<th class="stade_evenement">
|
|
|
26 |
<?= $stade ?>
|
|
|
27 |
</th>
|
|
|
28 |
<?php $stades++; ?>
|
|
|
29 |
<?php endforeach; ?>
|
|
|
30 |
<?php endforeach; ?>
|
|
|
31 |
</tr>
|
|
|
32 |
|
|
|
33 |
<?php foreach ($individus as $individu) : ?>
|
38 |
aurelien |
34 |
<tr class="modification_observations_individu" id="modification_observations_individu_<?= $individu['id_individu'] ?>">
|
31 |
aurelien |
35 |
<td>
|
38 |
aurelien |
36 |
<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $id_espece, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
|
31 |
aurelien |
37 |
</td>
|
38 |
aurelien |
38 |
<?php for( $i = 0; $i < $stades; $i++) : ?>
|
|
|
39 |
<td>
|
|
|
40 |
<div class="calendrier">
|
|
|
41 |
<?php if ($individu['id_individu'] == $id_individu_a_modifier_observation) { ?>
|
|
|
42 |
<input type="text" maxlength="10" size="10" id="observation_<?= $i ?>" value="<?= array_shift($individu['observations']); ?>" />
|
|
|
43 |
<?php } else { ?>
|
|
|
44 |
<?= array_shift($individu['observations']); ?>
|
|
|
45 |
<?php } ?>
|
|
|
46 |
</div>
|
|
|
47 |
</td>
|
|
|
48 |
<?php endfor; ?>
|
|
|
49 |
<td>
|
|
|
50 |
<?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>
|
|
|
52 |
<?php } ?>
|
|
|
53 |
</td>
|
31 |
aurelien |
54 |
</tr>
|
|
|
55 |
<?php endforeach; ?>
|
|
|
56 |
</table>
|
|
|
57 |
</div>
|
|
|
58 |
<!-- ODS_SAISIE - FIN MODIFICATION EVENEMENTS -->
|