Subversion Repositories eFlore/Applications.cel

Rev

Rev 1479 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1479 Rev 2993
1
<div id="cel-observation-contenu">
1
<div id="cel-observation-contenu">
2
 <?php if (isset($erreurs) || isset($informations)) : ?>
2
 <?php if (isset($erreurs) || isset($informations)) : ?>
3
	<h1>Erreur &amp; informations</h1>
3
	<h1>Erreur &amp; informations</h1>
4
	<p>Impossible d'afficher le flux.</p>
4
	<p>Impossible d'afficher le flux.</p>
5
	<!-- Affichage des erreurs et messages d'information : -->
5
	<!-- Affichage des erreurs et messages d'information : -->
6
	<?php if ($erreurs) : ?>
6
	<?php if ($erreurs) : ?>
7
		<?php foreach ($erreurs as $erreur) : ?>
7
		<?php foreach ($erreurs as $erreur) : ?>
8
			<p class="erreur"><?=$erreur;?></p>
8
			<p class="erreur"><?=$erreur;?></p>
9
		<?php endforeach; ?>
9
		<?php endforeach; ?>
10
	<?php endif; ?>
10
	<?php endif; ?>
11
	
11
	
12
	<?php if ($informations) : ?>
12
	<?php if ($informations) : ?>
13
		<?php foreach ($informations as $information) : ?>
13
		<?php foreach ($informations as $information) : ?>
14
			<p class="info"><?=$information;?></p>
14
			<p class="info"><?=$information;?></p>
15
		<?php endforeach; ?>
15
		<?php endforeach; ?>
16
	<?php endif; ?>
16
	<?php endif; ?>
17
	<?php else : ?>
17
	<?php else : ?>
18
		<h1>
18
		<h1>
19
			<? if (!empty($titre)) : ?>
19
			<? if (!empty($titre)) : ?>
20
		 		<?=$titre?>
20
		 		<?=$titre?>
21
		 	<? endif ; ?>
21
		 	<? endif ; ?>
22
			<? if($icone_rss) : ?>
22
			<? if($icone_rss) : ?>
23
			<a href="<?=$flux_rss_url?>" id="cel-observation-flux" title="Suivre les observations" 
23
			<a href="<?=$flux_rss_url?>" id="cel-observation-flux" title="Suivre les observations" 
24
				onclick="window.open(this.href);return false;">
24
				onclick="window.open(this.href);return false;">
25
				<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
25
				<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
26
			</a>
26
			</a>
27
			<? endif; ?>
27
			<? endif; ?>
28
		</h1>
28
		</h1>
29
		<div id="cel-liste-observation">
29
		<div id="cel-liste-observation">
30
			<?php foreach ($items as $item) : ?>
30
			<?php foreach ($items as $item) : ?>
31
				<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
31
				<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
32
					<img id="imPlus-<?=$item['guid']?>" width="10" height="10" 
32
					<img id="imPlus-<?=$item['guid']?>" width="10" height="10" 
33
							name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+" 
33
							name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+" 
34
							src="http://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
34
							src="https://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
35
					<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
35
					<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
36
							name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+" 
36
							name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+" 
37
							src="http://www.tela-botanica.org/sites/commun/generique/images/moins.png" />	
37
							src="https://www.tela-botanica.org/sites/commun/generique/images/moins.png" />	
38
					<strong>
38
					<strong>
39
						<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '' && $item['eflore_url'] != 'http://www.tela-botanica.org/bdtfx-nn-0') { ?>
39
						<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '' && $item['eflore_url'] != 'http://www.tela-botanica.org/bdtfx-nn-0') { ?>
40
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
40
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
41
								onclick="window.open(this.href);return false;"  
41
								onclick="window.open(this.href);return false;"  
42
								title="Cliquez pour accéder à la fiche eFlore">
42
								title="Cliquez pour accéder à la fiche eFlore">
43
								<?=$item['titre']?>
43
								<?=$item['titre']?>
44
							</a>
44
							</a>
45
						<?php } else { ?>
45
						<?php } else { ?>
46
							<?=$item['titre']?>
46
							<?=$item['titre']?>
47
						<?php } ?>
47
						<?php } ?>
48
					</strong><br />
48
					</strong><br />
49
					<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
49
					<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
50
					
50
					
51
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
51
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
52
						<?=$item['description']?>
52
						<?=$item['description']?>
53
					</div>
53
					</div>
54
				</div>
54
				</div>
55
			<?php endforeach; ?>
55
			<?php endforeach; ?>
56
		</div>
56
		</div>
57
		<p id="cel-observation-pieds" class="cel-observation-pieds discretion nettoyage">
57
		<p id="cel-observation-pieds" class="cel-observation-pieds discretion nettoyage">
58
			<span class="cel-observation-source">
58
			<span class="cel-observation-source">
59
				Source : 
59
				Source : 
60
				<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
60
				<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
61
			 		CEL
61
			 		CEL
62
			 	</a>
62
			 	</a>
63
		 	</span>
63
		 	</span>
64
		 	<span class="cel-observation-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
64
		 	<span class="cel-observation-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
65
		</p>
65
		</p>
66
		<script type="text/Javascript">
66
		<script type="text/Javascript">
67
				// Function pour cacher / afficher le détail des observations
67
				// Function pour cacher / afficher le détail des observations
68
				$(document).ready(function() {
68
				$(document).ready(function() {
69
 
69
 
70
					$('.cel-infos').hide();
70
					$('.cel-infos').hide();
71
					$('.imMoins').hide();
71
					$('.imMoins').hide();
72
					$('.cel-observation').hover(function() {
72
					$('.cel-observation').hover(function() {
73
						var id_obs = $(this).attr("rel");
73
						var id_obs = $(this).attr("rel");
74
						$('#cel-info-'+id_obs).show();
74
						$('#cel-info-'+id_obs).show();
75
						$('#imPlus-'+id_obs).hide();
75
						$('#imPlus-'+id_obs).hide();
76
						$('#imMoins-'+id_obs).show();
76
						$('#imMoins-'+id_obs).show();
77
					},
77
					},
78
					function() {
78
					function() {
79
						var id_obs = $(this).attr("rel");
79
						var id_obs = $(this).attr("rel");
80
						$('#cel-info-'+id_obs).hide();
80
						$('#cel-info-'+id_obs).hide();
81
						$('#imPlus-'+id_obs).show();
81
						$('#imPlus-'+id_obs).show();
82
						$('#imMoins-'+id_obs).hide();
82
						$('#imMoins-'+id_obs).hide();
83
						
83
						
84
					});
84
					});
85
 
85
 
86
				});
86
				});
87
		</script>
87
		</script>
88
	<?php endif; ?>
88
	<?php endif; ?>
89
</div>
89
</div>