Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev Author Line No. Line
31 aurelien 1
<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
2
<?php $stades = 0; ?>
3
<div >
4
   	<table id="saisie_liste_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 class="observations_individu" id="observations_individu_<?= $individu['id'] ?>">
32
        	<td>
33
        		<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $individu['id']); ?>"><?= $individu['nom'] ?></a>
34
        	</td>
35
        	<?php for( $i = 0; $i < $stades; $i++) : ?>
36
        	<td>
37
        		<?= array_shift($individu['observations']); ?>
38
        	</td>
39
        	<?php endfor; ?>
40
        	<td><a class="lien_modifier" href="<?= aControleur::getUrlFormulaireModificationObservation($individu['id']); ?>"><img alt="modifier" src="http://162.38.234.9/ODS_redesign/applications/saisie/squelettes/images/modification.png" /></a></td>
41
        </tr>
42
	<?php endforeach; ?>
43
	</table>
44
 
45
<a href="<?= aControleur::getUrlFormulaireAjoutIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
46
</div>
47
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->