Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 39 Rev 48
1
<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
1
<!-- ODS_SAISIE - DEBUT LISTE EVENEMENTS -->
2
<?php $stades = 0; ?>
-
 
3
<div >
2
<div>
-
 
3
	<h2> Observations pour l'année <?= $annee ?> </h2>
-
 
4
		<a href="<?= aControleur::getUrlConsultationEspeceStation($id_station, $id_espece,2009);?>"> 2009 </a>
-
 
5
   				<a href="<?= aControleur::getUrlConsultationEspeceStation($id_station, $id_espece,2008);?>"> 2008 </a>
4
   	<table id="saisie_liste_evenements">
6
   	<table id="saisie_liste_evenements">
5
		<tr>
7
		<tr>
6
			<th></th> 
8
			<th></th> 
7
			<?php $classe_evenement = 1 ; ?>
-
 
8
			<?php foreach($evenements as $evenement) : ?>
9
			<?php foreach($evenements as $evenement) : ?>
9
				<th class="stade<?=$classe_evenement ?>" colspan="<?=count($evenement['stades']) ?>">
10
				<th class="stade_<?= $evenement['abreviation']; ?>" colspan="<?=count($evenement['stades']) ?>">
10
						<div class="evenement"><?= $evenement['nom'] ?></div>
11
						<div class="evenement"><?= $evenement['nom'] ?></div>
11
				</th>
12
				</th>
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_individu'] ?>">
31
        <tr class="liste_observations_individu" id="observations_individu_<?= $individu['id_individu'] ?>">
32
        	<td>
32
        	<td>
33
        		<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station,$id_espece, $individu['id_individu']); ?>"><?= $individu['nom'] ?></a>
33
        		<a href="<?= aControleur::getUrlConsultationFicheIndividu($id_station,$id_espece, $individu['id_individu']); ?>">
-
 
34
        			<?= $individu['nom'] ?>
-
 
35
        		</a>
34
        	</td>
36
        	</td>
-
 
37
        	<?php foreach($evenements as $nom_evenement => $evenement) : ?>
35
        	<?php for( $i = 0; $i < $stades; $i++) : ?>
38
				<?php foreach($evenement['stades'] as $stade) : ?>
-
 
39
        			<td class="date_observation_individu">
-
 
40
	        		<?php if (isset($individu['observations'][$annee][$nom_evenement][$stade])) { ?>
-
 
41
	        			<?= $individu['observations'][$annee][$nom_evenement][$stade]; ?>
-
 
42
	            	<?php } else { ?>
-
 
43
	            		- 
-
 
44
	            	<?php } ?>
-
 
45
        			</td>
-
 
46
        		<?php endforeach; ?>
-
 
47
			<?php endforeach; ?>
36
        	<td>
48
        	<td>
37
        		<?php if (isset($individu['observations'][$stades])) { ?>
49
	        	<a class="lien_modifier" href="<?= aControleur::getUrlFormulaireModificationObservation($id_station,$id_espece, $individu['id_individu'], $annee); ?>">
38
        			<?= $individu['observations'][$stades]; ?>
50
	        		<img alt="modifier" src="<?= aControleur::getUrlImage(); ?>modification.png" />
39
            	<?php } else { ?>
-
 
40
            		- 
51
	        	</a>
41
            	<?php } ?>
-
 
42
        	</td>
52
        	</td>
43
        	<?php endfor; ?>
-
 
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>
53
        </tr>
46
	<?php endforeach; ?>
54
	<?php endforeach; ?>
47
	</table>
55
	</table>
48
 
56
 
49
<a href="<?= aControleur::getUrlFormulaireSaisieIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
57
<a href="<?= aControleur::getUrlFormulaireSaisieIndividu($id_station,$id_espece); ?>"> Nouvel individu </a>
50
</div>
58
</div>
51
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->
59
<!-- ODS_SAISIE - FIN LISTE EVENEMENTS -->