739 |
delphine |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Observations publiques du CEL - Tela Botanica</title>
|
|
|
5 |
|
|
|
6 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
|
7 |
<meta http-equiv="Content-style-type" content="text/css" />
|
|
|
8 |
<meta http-equiv="Content-script-type" content="text/javascript" />
|
|
|
9 |
<meta http-equiv="Content-language" content="fr" />
|
|
|
10 |
|
|
|
11 |
<meta name="revisit-after" content="15 days" />
|
|
|
12 |
<meta name="robots" content="index,follow" />
|
|
|
13 |
<meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
|
|
|
14 |
<meta name="keywords" content="Tela Botanica, observation, CEL" />
|
|
|
15 |
<meta name="description" content="Widget de présentation des dernières observations publiées sur le Carnet en Ligne de Tela Botanica" />
|
|
|
16 |
|
|
|
17 |
<!-- Spécial mobile -->
|
|
|
18 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
|
19 |
|
|
|
20 |
<!-- Favicones -->
|
|
|
21 |
<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
|
|
|
22 |
<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
|
|
|
23 |
|
|
|
24 |
<!-- Feuilles de styles -->
|
|
|
25 |
<link rel="stylesheet" type="text/css" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" media="screen" />
|
|
|
26 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>observation.css" media="screen" />
|
|
|
27 |
|
|
|
28 |
<!-- Javascript : bibliothèques -->
|
|
|
29 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.4.4/jquery-1.4.4.min.js"></script>
|
|
|
30 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
|
|
|
31 |
</head>
|
|
|
32 |
<body>
|
|
|
33 |
<!-- WIDGET:CEL:OBSERVATION - DEBUT -->
|
|
|
34 |
<div id="cel-observation-contenu">
|
|
|
35 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
36 |
<h1>Erreur & informations</h1>
|
|
|
37 |
<p>Impossible d'afficher le flux.</p>
|
|
|
38 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
39 |
<?php if ($erreurs) : ?>
|
|
|
40 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
41 |
<p class="erreur"><?=$erreur;?></p>
|
|
|
42 |
<?php endforeach; ?>
|
|
|
43 |
<?php endif; ?>
|
|
|
44 |
|
|
|
45 |
<?php if ($informations) : ?>
|
|
|
46 |
<?php foreach ($informations as $information) : ?>
|
|
|
47 |
<p class="info"><?=$information;?></p>
|
|
|
48 |
<?php endforeach; ?>
|
|
|
49 |
<?php endif; ?>
|
|
|
50 |
<?php else : ?>
|
|
|
51 |
<h1>
|
1479 |
aurelien |
52 |
<? if (!empty($titre)) : ?>
|
|
|
53 |
<?=$titre?>
|
|
|
54 |
<? endif ; ?>
|
|
|
55 |
<? if($icone_rss) : ?>
|
739 |
delphine |
56 |
<a href="<?=$flux_rss_url?>" id="cel-observation-flux" title="Suivre les observations"
|
|
|
57 |
onclick="window.open(this.href);return false;">
|
|
|
58 |
<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
|
|
|
59 |
</a>
|
1479 |
aurelien |
60 |
<? endif; ?>
|
739 |
delphine |
61 |
</h1>
|
|
|
62 |
<div id="cel-liste-observation">
|
|
|
63 |
<?php foreach ($items as $item) : ?>
|
|
|
64 |
<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
|
|
|
65 |
<img id="imPlus-<?=$item['guid']?>" width="10" height="10"
|
|
|
66 |
name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+"
|
|
|
67 |
src="http://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
|
|
|
68 |
<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
|
|
|
69 |
name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+"
|
|
|
70 |
src="http://www.tela-botanica.org/sites/commun/generique/images/moins.png" />
|
|
|
71 |
<strong>
|
1460 |
aurelien |
72 |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '' && $item['eflore_url'] != 'http://www.tela-botanica.org/bdtfx-nn-0') { ?>
|
1451 |
aurelien |
73 |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
|
|
|
74 |
onclick="window.open(this.href);return false;"
|
|
|
75 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
76 |
<?=$item['titre']?>
|
|
|
77 |
</a>
|
|
|
78 |
<?php } else { ?>
|
|
|
79 |
<?=$item['titre']?>
|
|
|
80 |
<?php } ?>
|
739 |
delphine |
81 |
</strong><br />
|
|
|
82 |
<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
|
|
|
83 |
|
|
|
84 |
<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
|
|
|
85 |
<?=$item['description']?>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
|
|
88 |
|
|
|
89 |
<?php endforeach; ?>
|
|
|
90 |
</div>
|
1479 |
aurelien |
91 |
<p id="cel-observation-pieds" class="cel-observation-pieds discretion nettoyage">
|
|
|
92 |
<span class="cel-observation-source">
|
|
|
93 |
Source :
|
|
|
94 |
<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
95 |
CEL
|
|
|
96 |
</a>
|
|
|
97 |
</span>
|
|
|
98 |
<span class="cel-observation-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
|
|
|
99 |
</p>
|
739 |
delphine |
100 |
<script type="text/Javascript">
|
|
|
101 |
// Function pour cacher / afficher le détail des observations
|
|
|
102 |
$(document).ready(function() {
|
|
|
103 |
|
|
|
104 |
$('.cel-infos').hide();
|
|
|
105 |
$('.imMoins').hide();
|
|
|
106 |
$('.cel-observation').hover(function() {
|
|
|
107 |
var id_obs = $(this).attr("rel");
|
|
|
108 |
$('#cel-info-'+id_obs).show();
|
|
|
109 |
$('#imPlus-'+id_obs).hide();
|
|
|
110 |
$('#imMoins-'+id_obs).show();
|
|
|
111 |
},
|
|
|
112 |
function() {
|
|
|
113 |
var id_obs = $(this).attr("rel");
|
|
|
114 |
$('#cel-info-'+id_obs).hide();
|
|
|
115 |
$('#imPlus-'+id_obs).show();
|
|
|
116 |
$('#imMoins-'+id_obs).hide();
|
|
|
117 |
|
|
|
118 |
});
|
|
|
119 |
|
|
|
120 |
});
|
|
|
121 |
</script>
|
|
|
122 |
<?php endif; ?>
|
|
|
123 |
</div>
|
|
|
124 |
<!-- WIDGET:CEL:OBSERVATION - FIN -->
|
|
|
125 |
</body>
|
|
|
126 |
</html>
|