Subversion Repositories eFlore/Applications.cel

Rev

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