Subversion Repositories eFlore/Applications.cel

Rev

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