Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 745 Rev 1451
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
			Dernières observations du 
19
			Dernières observations du 
20
			<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
20
			<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
21
				CEL
21
				CEL
22
			</a>
22
			</a>
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="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
26
			</a>
26
			</a>
27
		</h1>
27
		</h1>
28
		<div id="cel-liste-observation">
28
		<div id="cel-liste-observation">
29
			<?php foreach ($items as $item) : ?>
29
			<?php foreach ($items as $item) : ?>
30
				<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
30
				<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
31
					<img id="imPlus-<?=$item['guid']?>" width="10" height="10" 
31
					<img id="imPlus-<?=$item['guid']?>" width="10" height="10" 
32
							name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+" 
32
							name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+" 
33
							src="http://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
33
							src="http://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
34
					<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
34
					<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
35
							name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+" 
35
							name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+" 
36
							src="http://www.tela-botanica.org/sites/commun/generique/images/moins.png" />	
36
							src="http://www.tela-botanica.org/sites/commun/generique/images/moins.png" />	
37
					<strong>
37
					<strong>
-
 
38
						<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
-
 
39
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
38
						<a  href="<?=$item['eflore_url']?>"	onclick="window.open(this.href);return false;"  
40
								onclick="window.open(this.href);return false;"  
39
							title="Cliquez pour accéder à la fiche eFlore">
41
								title="Cliquez pour accéder à la fiche eFlore">
40
								<?=$item['titre']?>
42
								<?=$item['titre']?>
41
						</a>
43
							</a>
-
 
44
						<?php } else { ?>
-
 
45
							<?=$item['titre']?>
-
 
46
						<?php } ?>
42
					</strong><br />
47
					</strong><br />
43
					<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
48
					<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
44
					
49
					
45
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
50
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
46
						<?=$item['description']?>
51
						<?=$item['description']?>
47
					</div>
52
					</div>
48
				</div>
53
				</div>
49
			<?php endforeach; ?>
54
			<?php endforeach; ?>
50
		</div>
55
		</div>
51
		<p id="cel-observation-date-generation" class="discretion nettoyage">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
56
		<p id="cel-observation-date-generation" class="discretion nettoyage">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
52
		<script type="text/Javascript">
57
		<script type="text/Javascript">
53
				// Function pour cacher / afficher le détail des observations
58
				// Function pour cacher / afficher le détail des observations
54
				$(document).ready(function() {
59
				$(document).ready(function() {
55
 
60
 
56
					$('.cel-infos').hide();
61
					$('.cel-infos').hide();
57
					$('.imMoins').hide();
62
					$('.imMoins').hide();
58
					$('.cel-observation').hover(function() {
63
					$('.cel-observation').hover(function() {
59
						var id_obs = $(this).attr("rel");
64
						var id_obs = $(this).attr("rel");
60
						$('#cel-info-'+id_obs).show();
65
						$('#cel-info-'+id_obs).show();
61
						$('#imPlus-'+id_obs).hide();
66
						$('#imPlus-'+id_obs).hide();
62
						$('#imMoins-'+id_obs).show();
67
						$('#imMoins-'+id_obs).show();
63
					},
68
					},
64
					function() {
69
					function() {
65
						var id_obs = $(this).attr("rel");
70
						var id_obs = $(this).attr("rel");
66
						$('#cel-info-'+id_obs).hide();
71
						$('#cel-info-'+id_obs).hide();
67
						$('#imPlus-'+id_obs).show();
72
						$('#imPlus-'+id_obs).show();
68
						$('#imMoins-'+id_obs).hide();
73
						$('#imMoins-'+id_obs).hide();
69
						
74
						
70
					});
75
					});
71
 
76
 
72
				});
77
				});
73
		</script>
78
		</script>
74
	<?php endif; ?>
79
	<?php endif; ?>
75
</div>
80
</div>