Subversion Repositories eFlore/Applications.cel

Rev

Rev 3039 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3038 mathias 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>Public observations of the 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="Tela Botanica" />
14
        <meta name="keywords" content="Tela Botanica, CEL map" />
15
        <meta name="description" content="Map widget for public plants observations submitted to the Carnet en Ligne (CEL)" />
16
 
17
		<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
18
		<meta property="og:type" content="website" />
19
		<meta property="og:title" content="CEL public observations map" />
20
		<meta property="og:site_name" content="Tela Botanica" />
21
		<meta property="og:description" content="Map representation of Carnet en Ligne public observations" />
22
		<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
23
		<meta property="og:image:type" content="image/png" />
24
		<meta property="og:image:width" content="256" />
25
		<meta property="og:image:height" content="256" />
26
		<meta property="og:locale" content="fr_FR" />
27
 
28
		<!-- Spécial mobile -->
29
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
30
 
31
		<!-- Favicones -->
32
		<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
33
		<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
34
 
35
		<!-- Javascript : bibliothèques -->
36
		<!-- 	Google Map v3 -->
37
		<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=<?php echo $cleGoogleMaps; ?>&v=3.5&amp;sensor=true&amp;language=fr&amp;region=FR"></script>
38
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/google/map/3/markermanager/1.0/markermanager-1.0.pack.js"></script>
39
		<!-- 	Jquery -->
40
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.6.2/jquery-1.6.2.min.js"></script>
41
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.15/js/jquery-ui-1.8.15.custom.min.js"></script>
42
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
43
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
44
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/pagination/2.2/jquery.pagination.js"></script>
45
		<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
46
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
47
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
48
 
49
		<!-- Javascript : appli carto -->
50
		<script type="text/javascript">
51
		//<![CDATA[
52
			var urlWidgetSaisie = '<?= $url_widget_saisie; ?>',
53
				urlsLimitesCommunales = '<?= $url_limites_communales; ?>',
54
				nt = '<?=$num_taxon?>',
55
				filtreCommun =
56
					'&taxon=<?=rawurlencode($taxon)?>'+
57
					'&utilisateur=<?=$utilisateur?>'+
58
					'&projet=<?=rawurlencode($projet)?>'+
59
					'&tag=<?=rawurlencode($tag)?>'+
60
					'&date=<?=$date?>'+
61
					'&dept=<?=$dept?>'+
62
					'&commune=<?=rawurlencode($commune)?>'+
63
					'&pays=<?=rawurlencode($pays)?>'+
64
					'&commentaire=<?=rawurlencode($commentaire)?>'+
65
					'&groupe_zones_geo=<?=rawurlencode($groupe_zones_geo)?>',
66
				utilisateur = '<?=$utilisateur?>',
67
				photos = '<?= ($photos != null) ? $photos : "null"; ?>';
68
				groupe_zones_geo = '<?= ($groupe_zones_geo != null) ? $groupe_zones_geo : "null"; ?>';
69
			if (photos != null) {
70
				filtreCommun += '&photos=<?=rawurlencode($photos)?>';
71
			}
72
			var nbJours = '<?= ($nbjours != null) ? $nbjours : "null"; ?>';
73
			if (nbJours != null) {
74
				filtreCommun += '&nbjours=<?=rawurlencode($nbjours)?>';
75
			}
76
			var annee = '<?= ($annee != null) ? $annee : "null"; ?>';
77
			if (annee != null) {
78
				filtreCommun += '&annee=<?=rawurlencode($annee)?>';
79
			}
80
			var referentiel = '<?= ($referentiel != null) ? $referentiel : "null"; ?>';
81
			if (referentiel != null) {
82
				filtreCommun += '&referentiel=<?=rawurlencode($referentiel)?>';
83
			}
84
			var titreCarte = '<?= ($titre != null) ? addslashes($titre) : "null"; ?>',
85
				urlLogo = '<?= ($logo != null) ? $logo : "null"; ?>',
86
				urlSite = '<?= ($url_site != null) ? $url_site : "null"; ?>',
87
				urlImage = '<?= ($image != null) ? $image : "null"; ?>',
88
				stationsUrl = '<?=$url_cel_carto?>/tout'+'?' + 'num_taxon=' + nt + filtreCommun,
89
				taxonsUrl = '<?=$url_cel_carto?>/taxons'+'?' + 'num_taxon=' + nt + filtreCommun,
90
				observationsUrl = '<?=$url_cel_carto?>/observations' + '?' +
91
					'station={stationId}'+
92
					'&num_taxon={nt}'+
93
					filtreCommun,
94
				communeImageUrl = '<?= $communeImageUrl; ?>',
95
				pointImageUrl = '<?= $pointImageUrl; ?>',
96
				groupeImageUrlTpl = '<?= $groupeImageUrlTpl; ?>';
97
		//]]>
98
		</script>
99
		<script type="text/javascript" src="<?=$url_base?>modules/cartopoint/squelettes/scripts/carto.js"></script>
100
 
101
		<!-- CSS -->
102
		<link rel="stylesheet" href="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
103
		<link rel="stylesheet" href="https://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" />
104
		<link href="<?=$url_base?>modules/cartopoint/squelettes/css/<?=isset($_GET['style']) ? $_GET['style'] : 'carto'?>.css" rel="stylesheet" type="text/css" media="screen" />
105
 
106
		<!--  Google Analytics -->
107
		<?php if($prod): ?>
108
			<?php include "analytics.html"; ?>
109
		<?php endif; ?>
110
	</head>
111
 
112
	<body>
113
		<div id="zone-chargement-point" class="element-overlay">
114
			<img id="img-chargement" src="<?=$url_base?>modules/cartopoint/squelettes/images/chargement_transparent.gif" alt="Chargement en cours..." />
115
			<div id="legende-chargement">Loading points...</div>
116
		</div>
117
		<?php if($logo != null) { ?>
118
			<div id="logo">
119
				<?php if($url_site != null) { ?>
120
				<a href="<?= $url_site; ?>"
121
					title="<?= $url_site; ?>"
122
					onclick="ouvrirNouvelleFenetre(this, event)">
123
					<img height="60px" class="image-logo" src="<?= $logo ?>" alt="logo" />
124
				</a>
125
				<?php } else { ?>
126
					<img class="image-logo" src="<?= $logo ?>" alt="logo" />
127
				<?php } ?>
128
			</div>
129
		<?php } else { ?>
130
			<div id="logo">
131
				<a href="http://www.tela-botanica.org/site:accueil"
132
					title="Aller à l'accueil de Tela Botanica"
133
					onclick="ouvrirNouvelleFenetre(this, event)">
134
					<img height="60px" class="image-logo" src="https://resources.tela-botanica.org/tb/img/128x128/logo_carre_officiel.png" alt="TB" />
135
				</a>
136
			</div>
137
		<?php } ?>
138
		<?php if($titre !== "0" && $titre != null) : ?>
139
			<div id="zone-titre" class="element-overlay">
140
				<h1 id="carte-titre">
141
					<span id="carte-titre-infos"><?= htmlspecialchars($titre); ?></span>
142
				</h1>
143
			</div>
144
		<?php endif; ?>
145
		<? if ($num_taxon == '*') : ?>
146
		<div id="panneau-lateral" class="element-overlay <?= ($titre != 0) ? 'carte_titree"': 'carte_non_titree"'; ?>>
147
			<div id="pl-ouverture" title="Filter observations by species">
148
				<span>Panel >></span>
149
				<div id="pl-indication-filtre"> Filter
150
				</div>
151
			</div>
152
			<div id="pl-fermeture" title="Close side panel"><span><< Close [x]</span></div>
153
			<div id="pl-contenu">
154
				<div id="pl-entete">
155
					<h2>Filter on <span class="plantes-nbre">&nbsp;</span> plants</h2>
156
					<p>
157
						Click a plant name to filter map observations.<br />
158
						To go back to initial state, click the selected name again.
159
					</p>
160
				</div>
161
				<hr class="nettoyage" />
162
				<div id="pl-corps" onMouseOver="map.setOptions({'scrollwheel':false});" onMouseOut="map.setOptions({'scrollwheel':true});">
163
					<hr class="nettoyage" />
164
					<!-- Insertion des lignes à partir du squelette tpl-taxons-liste -->
165
					<span class="raz-filtre-taxons taxon-actif" title="Show all taxa">
166
						Show all taxa
167
					</span>
168
					<ol id="taxons">
169
					</ol>
170
				</div>
171
			</div>
172
		</div>
173
		<? endif ?>
174
		<div id="carte" <?= ($titre != 0) ? 'class="carte_titree"': 'class="carte_non_titree"'; ?>></div>
175
		<div id="lien_plein_ecran" class="element-overlay">
176
			<a href="#" title="Fullscreen (opens a new window)">
177
				<img class="icone" src="<?=$url_base?>modules/cartopoint/squelettes/images/plein_ecran.png" alt="Fullscreen" />
178
			</a>
179
		</div>
180
		<div id="zone-stats" style="display:none" class="element-overlay">
181
				<h1>
182
				</h1>
183
		</div>
184
		<div id="conteneur-filtre-utilisateur" class="ferme element-overlay">
185
			<div id="lien-affichage-filtre-utilisateur">My map</div>
186
			<div id="formulaire-filtre-utilisateur">
187
				<span class="indication-filtre-utilisateur">Display a map of your observations</span>
188
				<input type="text" id="filtre-utilisateur" placeholder="type your email" value="<?= ($utilisateur != '*') ? $utilisateur : '' ?>" title="type another user's email to see his⋅her data" />
189
				<input id="valider-filtre-utilisateur" type="button" value="ok" />
190
				<a href="#" id="raz-filtre-utilisateur">Show global map</a>
191
			</div>
192
		</div>
193
		<?php if($image != null) { ?>
194
			<div id="image-utilisateur">
195
				<img width="155px" src="<?= $image ?>" alt="image" />
196
			</div>
197
		<?php } ?>
198
		<div id="origine-donnees">
199
			Network observations <a href="http://www.tela-botanica.org/site:botanique"
200
				onClick="ouvrirNouvelleFenetre(this, event)">
201
				Tela Botanica
202
			</a>
203
			- Map : <a href="http://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>
204
			- Tiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a>
205
		</div>
206
		<div id="lien-voir-cc" class="element-overlay">
207
			<a href="<?=$url_base?>cartoPoint?carte=avertissement" title="Show this widget's information and terms of use">
208
				?
209
			</a>
210
		</div>
211
 
212
		<!-- Blocs chargés à la demande : par défaut avec un style display à none -->
213
 
214
		<!-- Squelette du message de chargement des observations -->
215
		<script id="tpl-chargement" type="text/x-jquery-tmpl">
216
			<div id="chargement" style="height:300px;">
217
				<img src="<?=$url_base?>modules/cartopoint/squelettes/images/chargement.gif" alt="Loading..." />
218
				<p>Loading observations...</p>
219
			</div>
220
		</script>
221
 
222
		<!-- Squelette du contenu d'une info-bulle observation -->
223
		<script id="tpl-obs" type="text/x-jquery-tmpl">
224
			<div id="info-bulle" style="width:{largeur}px;">
225
				<div id="obs">
226
					<h2 id="obs-station-titre">Station</h2>
227
					<div class="navigation">&nbsp;</div>
228
					<div>
229
						<ul>
230
							<li><a href="#obs-vue-tableau">Table</a></li>
231
							<li><a href="#obs-vue-liste">List</a></li>
232
						</ul>
233
					</div>
234
					<div id="observations">
235
						<div id="obs-vue-tableau" style="display:none;">
236
							<table id="obs-tableau">
237
								<thead>
238
									<tr>
239
										<th title="User defined scientific name">Name</th>
240
										<th title="Observation date">Date</th>
241
										<th title="Observation location">Location</th>
242
										<th title="Observation author">Author</th>
243
									</tr>
244
								</thead>
245
								<tbody id="obs-tableau-lignes" class="obs-conteneur">
246
									<!-- Insertion des lignes à partir du squelette tpl-obs-tableau -->
247
								</tbody>
248
							</table>
249
						</div>
250
						<div id="obs-vue-liste" style="display:none;">
251
							<ol id="obs-liste-lignes" class="obs-conteneur">
252
								<!-- Insertion des lignes à partir du squelette tpl-obs-liste -->
253
							</ol>
254
						</div>
255
					</div>
256
					<div id="obs-pieds-page">
257
						<p>Id : <span id="obs-station-id">&nbsp;</span></p>
258
					</div>
259
					<div class="navigation">&nbsp;</div>
260
					<div class="conteneur-lien-saisie" style="display:none;">
261
						<a href="#" class="lien-widget-saisie">
262
							Add an observation on this site
263
						</a>
264
					</div>
265
				</div>
266
			</div>
267
		</script>
268
 
269
		<!-- Squelette du contenu du tableau des observations -->
270
		<script id="tpl-obs-tableau" type="text/x-jquery-tmpl">
271
			<tr class="cel-obs-${idObs}">
272
				<td>
273
					<span class="nom-sci">&nbsp;
274
					{{if nn != null && nn != 0 && nn != ''}}
275
						<a href="${urlEflore}"
276
							onclick="ouvrirNouvelleFenetre(this, event)">
277
							${nomSci}
278
						</a>
279
					{{else}}
280
						${nomSci}
281
					{{/if}}
282
					</span>
283
				</td>
284
				<td class="date">{{if date}}${date}{{else}}&nbsp;{{/if}}</td>
285
				<td class="lieu">{{if lieu}}${lieu}{{else}}&nbsp;{{/if}}</td>
286
				<td>
287
				{{if observateur}}
288
					{{if observateurId}}
289
						<a class="contact obs-${idObs} contributeur-${observateurId}"
290
						href="#form-contact"
291
						title="Write to this contributor">
292
							${observateur}
293
						</a>
294
					{{else}}
295
						<a class="contact obs-${idObs}"
296
						href="#form-contact"
297
						title="Write to this contributor">
298
							${observateur}
299
						</a>
300
					{{/if}}
301
				{{else}}
302
					&nbsp;
303
				{{/if}}
304
				</td>
305
			</tr>
306
		</script>
307
 
308
		<!-- Squelette du contenu de la liste des observations -->
309
		<script id="tpl-obs-liste" type="text/x-jquery-tmpl">
310
			<li>
311
				<div class="cel-obs-${idObs}">
312
					{{if images}}
313
					{{each(index, img) images}}
314
					<div{{if index == 0}} class="cel-img-principale" {{else}} class="cel-img-secondaire"{{/if}}>
315
						<a class="cel-img"
316
							href="${img.normale}"
317
							title="${nomSci} {{if nn != null && nn != 0 && nn != ''}} [${nn}] {{/if}} by ${observateur} - Published on ${datePubli} - GUID : ${img.guid}"
318
							rel="cel-obs-${idObs}">
319
							<img src="${img.miniature}" alt="Image #${img.idImg} for observation #${nn}" />
320
						</a>
321
						<p id="cel-info-${img.idImg}" class="cel-infos">
322
							<a class="cel-img-titre" href="${urlEflore}"
323
								onclick="window.open(this.href);return false;"
324
								title="Click to show eFlore page">
325
								<strong>${nomSci} {{if nn}} [nn${nn}] {{/if}}</strong> by <em>${observateur}</em>
326
							</a>
327
							<br />
328
							<span class="cel-img-date">Published on ${datePubli}</span>
329
 						</p>
330
					</div>
331
					{{/each}}
332
					{{/if}}
333
					<dl>
334
						<dt class="champ-nom-sci">Nom</dt>
335
						<dd title="User defined name{{if nn != 0}}. Click to show eFlore page.{{/if}}">
336
							<span class="nom-sci">&nbsp;
337
							{{if nn != null && nn != 0 && nn != ''}}
338
								<a href="${urlEflore}"
339
									onclick="ouvrirNouvelleFenetre(this, event)">
340
									${nomSci}
341
								</a>
342
							{{else}}
343
								${nomSci}
344
							{{/if}}
345
							</span>
346
						</dd>
347
						<dt title="Observation location">Location</dt><dd class="lieu">&nbsp;${lieu}</dd>
348
						<dt title="Observation date">Date</dt><dd class="date">&nbsp;${date}</dd>
349
						<dt title="Observation author">Published by</dt>
350
						<dd>
351
						{{if observateur}}
352
							{{if observateurId}}
353
								<a class="contact obs-${idObs} contributeur-${observateurId}"
354
									href="#form-contact"
355
									title="Write to this contributor">
356
									${observateur}
357
								</a>
358
							{{else}}
359
								<a class="contact obs-${idObs}"
360
									href="#form-contact"
361
									title="Write to this contributor">
362
									${observateur}
363
								</a>
364
							{{/if}}
365
						{{else}}
366
							&nbsp;
367
						{{/if}}
368
						</dd>
369
					</dl>
370
					<hr class="nettoyage"/>
371
				</div>
372
			</li>
373
		</script>
374
 
375
		<!-- Squelette de la liste des taxons -->
376
		<script id="tpl-taxons-liste" type="text/x-jquery-tmpl">
377
				{{each(index, taxon) taxons}}
378
					<li id="taxon-${taxon.nt}">
379
						<span class="taxon" title="Taxinomic number : ${taxon.nt} - Family : ${taxon.famille}">
380
							${taxon.nom} <span class="nt" title="Taxinomic number">${taxon.nt}</span>
381
						</span>
382
					</li>
383
				{{/each}}
384
			</ol>
385
		</script>
386
 
387
		<!-- Squelette du formulaire de contact -->
388
		<div id="tpl-form-contact" style="display:none;">
389
			<form id="form-contact" method="post" action="">
390
	    		<div id="fc-zone-dialogue"></div>
391
	    		<dl>
392
	    			<dt><label for="fc_sujet">Subject</label></dt>
393
					<dd><input id="fc_sujet" name="fc_sujet"/></dd>
394
					<dt><label for="fc_message">Message</label></dt>
395
					<dd><textarea id="fc_message" name="fc_message"></textarea></dd>
396
					<dt><label for="fc_utilisateur_courriel" title="Use the email address you provided when subscribing to Tela Botanica">Your email address</label></dt>
397
					<dd><input id="fc_utilisateur_courriel" name="fc_utilisateur_courriel"/></dd>
398
				</dl>
399
				<p>
400
					<input id="fc_destinataire_id" name="fc_destinataire_id" type="hidden" value="" />
401
					<input id="fc_copies" name="fc_copies" type="hidden" value="eflore_remarques@tela-botanica.org" />
402
					<input type="hidden" name="fc_type_envoi" id="fc_type_envoi" value="inscrit" />
403
					<button id="fc_annuler" type="button">Cancel</button>
404
					&nbsp;
405
					<button id="fc_effacer" type="reset">Clear</button>
406
					&nbsp;
407
					<input id="fc_envoyer" type="submit" value="Send" />
408
				</p>
409
			</form>
410
		</div>
411
	</body>
412
</html>