Subversion Repositories eFlore/Applications.cel

Rev

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