Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 38 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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