Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 37 | Rev 48 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37 Rev 39
1
<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
1
<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
2
<?php $stades = 0; ?>
2
<?php $stades = 0; ?>
3
<div >
3
<div >
4
   	<table id="saisie_liste_evenements">
4
   	<table id="saisie_liste_evenements">
5
		<tr>
5
		<tr>
6
			<th></th> 
6
			<th></th> 
7
			<?php $classe_evenement = 1 ; ?>
7
			<?php $classe_evenement = 1 ; ?>
8
			<?php foreach($evenements as $evenement) : ?>
8
			<?php foreach($evenements as $evenement) : ?>
9
				<th class="stade<?=$classe_evenement ?>" colspan="<?=count($evenement['stades']) ?>">
9
				<th class="stade<?=$classe_evenement ?>" colspan="<?=count($evenement['stades']) ?>">
10
						<div class="evenement"><?= $evenement['nom'] ?></div>
10
						<div class="evenement"><?= $evenement['nom'] ?></div>
11
				</th>
11
				</th>
12
				<?php $classe_evenement++ ; ?>
12
				<?php $classe_evenement++ ; ?>
13
			<?php endforeach; ?>
13
			<?php endforeach; ?>
14
			<th></th>
14
			<th></th>
15
		</tr>
15
		</tr>
16
		
16
		
17
		<tr>
17
		<tr>
18
			<th> stades </th> 
18
			<th> stades </th> 
19
			<?php foreach($evenements as $evenement) : ?>
19
			<?php foreach($evenements as $evenement) : ?>
20
				<?php foreach($evenement['stades'] as $stade) : ?>
20
				<?php foreach($evenement['stades'] as $stade) : ?>
21
					<th class="stade_evenement"> 
21
					<th class="stade_evenement"> 
22
						<?= $stade ?> 
22
						<?= $stade ?> 
23
					</th>
23
					</th>
24
					<?php $stades++; ?>
24
					<?php $stades++; ?>
25
				<?php endforeach; ?>
25
				<?php endforeach; ?>
26
			<?php endforeach; ?>
26
			<?php endforeach; ?>
27
		</tr>
27
		</tr>
28
		
28
		
29
 
29
 
30
	<?php foreach ($individus as $individu) : ?>
30
	<?php foreach ($individus as $individu) : ?>
31
        <tr class="observations_individu" id="observations_individu_<?= $individu['id'] ?>">
31
        <tr class="observations_individu" id="observations_individu_<?= $individu['id_individu'] ?>">
32
        	<td>
32
        	<td>
33
        		<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
33
        		<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station,$id_espece, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
34
        	</td>
34
        	</td>
35
        	<?php for( $i = 0; $i < $stades; $i++) : ?>
35
        	<?php for( $i = 0; $i < $stades; $i++) : ?>
36
        	<td>
36
        	<td>
37
        		<?php if (isset($individu['observations'][$stades])) { ?>
37
        		<?php if (isset($individu['observations'][$stades])) { ?>
38
        			<?= $individu['observations'][$stades]; ?>
38
        			<?= $individu['observations'][$stades]; ?>
39
            	<?php } else { ?>
39
            	<?php } else { ?>
40
            		- 
40
            		- 
41
            	<?php } ?>
41
            	<?php } ?>
42
        	</td>
42
        	</td>
43
        	<?php endfor; ?>
43
        	<?php endfor; ?>
44
        	<td><a class="lien_modifier" href="<?= aControleur::getUrlFormulaireModificationObservation($individu['id']); ?>"><img alt="modifier" src="<?= aControleur::getUrlImage(); ?>modification.png" /></a></td>
44
        	<td><a class="lien_modifier" href="<?= aControleur::getUrlFormulaireModificationObservation($id_station,$id_espece, $individu['id_individu']); ?>"><img alt="modifier" src="<?= aControleur::getUrlImage(); ?>modification.png" /></a></td>
45
        </tr>
45
        </tr>
46
	<?php endforeach; ?>
46
	<?php endforeach; ?>
47
	</table>
47
	</table>
48
 
48
 
49
<a href="<?= aControleur::getUrlFormulaireSaisieIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
49
<a href="<?= aControleur::getUrlFormulaireSaisieIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
50
</div>
50
</div>
51
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->
51
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->