10 |
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 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
|
5 |
<meta http-equiv="Content-style-type" content="text/css" />
|
|
|
6 |
<meta http-equiv="Content-script-type" content="text/javascript" />
|
|
|
7 |
<meta http-equiv="Content-language" content="fr" />
|
|
|
8 |
|
|
|
9 |
<title>Carte des observations E-flore : Nouvelle version</title>
|
|
|
10 |
|
49 |
mathias |
11 |
<link rel="icon" type="image/png" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
|
|
|
12 |
<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
|
10 |
delphine |
13 |
|
|
|
14 |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
|
|
|
15 |
<link rel="stylesheet" href="<?=$url_base?>modules/carto/squelettes/css/L.Control.Zoomslider.css" />
|
37 |
alex |
16 |
<link rel="stylesheet" href="<?=$url_base?>modules/carto/squelettes/css/MarkerCluster.Default.css" />
|
10 |
delphine |
17 |
<!--[if lte IE 8]>
|
|
|
18 |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
|
|
|
19 |
<link rel="stylesheet" href="<?=$url_base?>modules/carto/squelettes/css/L.Control.Zoomslider.ie.css" />
|
37 |
alex |
20 |
<link rel="stylesheet" href="<?=$url_base?>modules/carto/squelettes/css/MarkerCluster.Default.ie.css" />
|
10 |
delphine |
21 |
<![endif]-->
|
|
|
22 |
<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
|
|
23 |
<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.15/css/smoothness/jquery-ui-1.8.15.custom.css" type="text/css" media="screen" />
|
|
|
24 |
<link href="<?=$url_base?>modules/carto/squelettes/css/carto.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
25 |
|
|
|
26 |
<!-- Javascript : bibliothèques -->
|
|
|
27 |
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
|
|
|
28 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6.2/jquery-1.6.2.min.js"></script>
|
|
|
29 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
|
|
|
30 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.15/js/jquery-ui-1.8.15.custom.min.js"></script>
|
37 |
alex |
31 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/pagination/2.2/jquery.pagination.js"></script>
|
10 |
delphine |
32 |
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
|
28 |
alex |
33 |
<script type="text/javascript">
|
10 |
delphine |
34 |
//<![CDATA[
|
31 |
alex |
35 |
var source = '<?= $source ?>'.split(',');
|
|
|
36 |
var logo = '<?=$logo ?>';
|
|
|
37 |
var titreCarte = '<?= ($titre != null) ? addslashes($titre) : null; ?>';
|
|
|
38 |
var urlLogo = '<?= ($logo != null) ? "$logo" : null; ?>';
|
|
|
39 |
var urlSite = '<?= ($url_site != null) ? "$url_site" : null; ?>';
|
|
|
40 |
var nn = '<?= $nn ?>';
|
|
|
41 |
var numTaxon = '<?= $num_taxon ?>';
|
|
|
42 |
var dept = '<?= $departement ?>';
|
|
|
43 |
var auteur = '<?= $auteur ?>';
|
|
|
44 |
var referentiel = '<?= $referentiel ?>';
|
|
|
45 |
var dateDebut = '<?= $date_debut ?>';
|
|
|
46 |
var dateFin = '<?= $date_fin ?>';
|
|
|
47 |
var nbJours = '<?=$nb_jours ?>';
|
|
|
48 |
|
45 |
mathias |
49 |
var urlBase = '<?= $url_serivce_carto ?>/';
|
31 |
alex |
50 |
var urlsLimitesCommunales = <?= $urlLimitesCommunales ?>;
|
37 |
alex |
51 |
var communeImageUrl = '<?= $communeImageUrl ?>';
|
|
|
52 |
var pointImageUrl = '<?= $pointImageUrl ?>';
|
|
|
53 |
var clusterImageUrl = '<?= $clusterImageUrl ?>';
|
31 |
alex |
54 |
var liensVersSources = '<?= $liensVersSources ?>'.split(',');
|
|
|
55 |
var titreLegende = '<?= $titreLegende ?>';
|
|
|
56 |
var listeSources = '<?= $listeSources ?>'.split(',');
|
|
|
57 |
var nomListeSources = '<?= $nomListeSources ?>'.split(',');
|
|
|
58 |
const ZOOM_MAXIMUM_MAILLAGE = <?= $zoomMaximumMaillage ?>;
|
|
|
59 |
const SEUIL_MAILLAGE = <?= $seuilMaillage ?>;
|
10 |
delphine |
60 |
//]]>
|
|
|
61 |
</script>
|
|
|
62 |
<script src="http://maps.google.com/maps/api/js?v=3.5&sensor=true&language=fr®ion=FR" type="text/javascript"></script>
|
28 |
alex |
63 |
<script src="<?=$url_base?>modules/carto/squelettes/scripts/L.KML.js" type="text/javascript"></script>
|
10 |
delphine |
64 |
<script src="<?=$url_base?>modules/carto/squelettes/scripts/carto.js"></script>
|
|
|
65 |
<script src="<?=$url_base?>modules/carto/squelettes/scripts/L.Control.Zoomslider.js" ></script>
|
37 |
alex |
66 |
<script src="<?=$url_base?>modules/carto/squelettes/scripts/cluster.js" ></script>
|
10 |
delphine |
67 |
</head>
|
|
|
68 |
|
|
|
69 |
<body>
|
|
|
70 |
<div id="zone-chargement"></div>
|
|
|
71 |
<div id="map"></div>
|
|
|
72 |
|
|
|
73 |
<!-- +-------------------------------------------------------------------------------------------+ -->
|
|
|
74 |
<!-- Blocs chargés à la demande : par défaut avec un style display à none -->
|
|
|
75 |
|
31 |
alex |
76 |
<!-- Squelette du message de chargement des stations et observations -->
|
10 |
delphine |
77 |
<script id="tpl-chargement-stations" type="text/x-jquery-tmpl">
|
|
|
78 |
<div id="chargement-stations">
|
|
|
79 |
<img src="<?=$url_base?>modules/carto/squelettes/images/chargement.gif" alt="Chargement en cours..." />
|
|
|
80 |
<p>Chargement des stations en cours...</p>
|
|
|
81 |
</div>
|
|
|
82 |
</script>
|
|
|
83 |
<script id="tpl-chargement-observations" type="text/x-jquery-tmpl">
|
|
|
84 |
<div id="chargement-observations">
|
|
|
85 |
<img src="<?=$url_base?>modules/carto/squelettes/images/chargement.gif" alt="Chargement en cours..." />
|
|
|
86 |
<p>Chargement des observations en cours...</p>
|
|
|
87 |
</div>
|
|
|
88 |
</script>
|
|
|
89 |
|
31 |
alex |
90 |
<?php if($logo != null) : ?>
|
|
|
91 |
<div id="logo">
|
|
|
92 |
<?php if($url_site != null) : ?>
|
|
|
93 |
<a href="<?= $url_site; ?>"
|
|
|
94 |
title="<?= $url_site; ?>"
|
|
|
95 |
onclick="ouvrirNouvelleFenetre(this, event)">
|
|
|
96 |
<img height="60px" class="image-logo" src="<?= $logo ?>" alt="logo" />
|
|
|
97 |
</a>
|
|
|
98 |
<?php else : ?>
|
|
|
99 |
<img class="image-logo" src="<?= $logo ?>" alt="logo" />
|
|
|
100 |
<?php endif; ?>
|
|
|
101 |
</div>
|
|
|
102 |
<?php endif; ?>
|
|
|
103 |
<?php if($titre !== "0" && $titre != null) : ?>
|
|
|
104 |
<div id="zone-titre" class="element-overlay">
|
|
|
105 |
<h1 id="carte-titre">
|
|
|
106 |
<span id="carte-titre-infos"><?= htmlspecialchars($titre); ?></span>
|
|
|
107 |
</h1>
|
|
|
108 |
</div>
|
|
|
109 |
<?php endif; ?>
|
|
|
110 |
|
10 |
delphine |
111 |
<!-- Squelette du contenu d'une info-bulle observation -->
|
|
|
112 |
<script id="tpl-obs" type="text/x-jquery-tmpl">
|
|
|
113 |
<div id="info-bulle" style="width:{largeur}px;">
|
|
|
114 |
<div id="obs">
|
|
|
115 |
<h2 id="obs-station-titre">Station</h2>
|
37 |
alex |
116 |
<div class="navigation"> </div>
|
10 |
delphine |
117 |
<div id="observations">
|
37 |
alex |
118 |
<div id="obs-vue-tableau">
|
10 |
delphine |
119 |
<table id="obs-tableau">
|
|
|
120 |
<thead>
|
|
|
121 |
<tr>
|
|
|
122 |
<th title="Nom scientifique défini par l'utilisateur.">Nom</th>
|
|
|
123 |
<th title="Date de l'observation">Date</th>
|
|
|
124 |
<th title="Lieu d'observation">Lieu</th>
|
|
|
125 |
<th title="Auteur de l'observation">Observateur</th>
|
37 |
alex |
126 |
<th title="Nom du projet référent">Projet</th>
|
10 |
delphine |
127 |
</tr>
|
|
|
128 |
</thead>
|
|
|
129 |
<tbody id="obs-tableau-lignes" class="obs-conteneur">
|
|
|
130 |
<!-- Insertion des lignes à partir du squelette tpl-obs-tableau -->
|
|
|
131 |
</tbody>
|
|
|
132 |
</table>
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
|
|
135 |
<div id="obs-pieds-page">
|
|
|
136 |
<p>Id : <span id="obs-station-id"> </span></p>
|
|
|
137 |
</div>
|
|
|
138 |
</div>
|
|
|
139 |
</div>
|
|
|
140 |
</script>
|
|
|
141 |
|
|
|
142 |
<!-- Squelette du contenu du tableau des observation -->
|
|
|
143 |
<script id="tpl-obs-tableau" type="text/x-jquery-tmpl">
|
|
|
144 |
<tr class="cel-obs-${idObs}">
|
|
|
145 |
<td>
|
|
|
146 |
<span class="nom-sci">
|
|
|
147 |
{{if nn != 0}}
|
|
|
148 |
<a href="http://www.tela-botanica.org/nn${nn}"
|
|
|
149 |
target="_blank">
|
|
|
150 |
${nomSci}
|
|
|
151 |
</a>
|
|
|
152 |
{{else}}
|
|
|
153 |
${nomSci}
|
|
|
154 |
{{/if}}
|
|
|
155 |
</span>
|
|
|
156 |
</td>
|
|
|
157 |
<td class="date">{{if date}}${date}{{else}} {{/if}}</td>
|
|
|
158 |
<td class="lieu">{{if lieu}}${lieu}{{else}} {{/if}}</td>
|
|
|
159 |
<td>
|
|
|
160 |
{{if observateur}}
|
|
|
161 |
{{if observateurId}}
|
|
|
162 |
<a class="contact obs-${idObs} contributeur-${observateurId}"
|
|
|
163 |
href="#form-contact"
|
|
|
164 |
title="Contactez ce contributeur">
|
|
|
165 |
${observateur}
|
|
|
166 |
</a>
|
|
|
167 |
{{else}}
|
|
|
168 |
${observateur}
|
|
|
169 |
{{/if}}
|
|
|
170 |
{{else}}
|
|
|
171 |
|
|
|
172 |
{{/if}}
|
|
|
173 |
</td>
|
37 |
alex |
174 |
<td><span>${projet}</span></td>
|
10 |
delphine |
175 |
</tr>
|
|
|
176 |
</script>
|
|
|
177 |
|
|
|
178 |
<!-- Squelette de la liste des taxons -->
|
|
|
179 |
<script id="tpl-taxons-liste" type="text/x-jquery-tmpl">
|
|
|
180 |
<ol id="taxons">
|
|
|
181 |
{{each(index, taxon) taxons}}
|
|
|
182 |
<li id="taxon-${taxon.nt}">
|
|
|
183 |
<span class="taxon" title="Numéro taxonomique : ${taxon.nt} - Famille : ${taxon.famille}">
|
|
|
184 |
${taxon.nom} <span class="nt" title="Numéro taxonomique">${taxon.nt}</span>
|
|
|
185 |
</span>
|
|
|
186 |
</li>
|
|
|
187 |
{{/each}}
|
|
|
188 |
</ol>
|
|
|
189 |
</script>
|
37 |
alex |
190 |
<div id="tooltip" style="display:none;"></div>
|
10 |
delphine |
191 |
</body>
|
|
|
192 |
</html>
|