Subversion Repositories eFlore/Applications.cel

Rev

Rev 798 | Rev 1436 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 798 Rev 1096
Line 20... Line 20...
20
		<!-- Favicones -->
20
		<!-- Favicones -->
21
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
21
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
22
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
22
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
Line 23... Line 23...
23
		
23
		
-
 
24
		<!-- Javascript : bibliothèques -->
24
		<!-- Javascript : bibliothèques -->
25
		<!-- <script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script> -->
25
		<!-- 	Google Map v3 -->
26
		<!-- 	Google Map v3 -->
26
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.3&amp;sensor=true"></script>
27
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=true&amp;language=fr&amp;region=FR"></script>
27
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/google/map/3/markerclusterer/1.0/markerclusterer-1.0.pack.js"></script>
28
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/google/map/3/markerclusterer/2.0.1/markerclusterer-2.0.1.pack.js"></script>
-
 
29
		<!-- 	Jquery -->
28
		<!-- 	Jquery -->
30
		<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/<?=$jquery_version?>/jquery-<?=$jquery_version?>.min.js"></script>
31
		<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>
30
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
32
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
-
 
33
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
-
 
34
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/pagination/2.2/jquery.pagination.js"></script>
-
 
35
		<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
-
 
36
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
Line 31... Line 37...
31
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
37
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
32
		
38
		
Line 33... Line 39...
33
		<!-- Javascript : données -->
39
		<!-- Javascript : données -->
34
		<script src="<?=$url_json?>" type="text/javascript"></script>
40
		<script src="<?=$url_stations?>" type="text/javascript"></script>
35
		
41
		
36
		<!-- Javascript : appli carto -->
-
 
37
		<script type="text/javascript">
42
		<!-- Javascript : appli carto -->
38
		//<![CDATA[
-
 
39
			var pointImageUrl = 'http://chart.apis.google.com/chart?cht=mm&chs=24x32&chco=FFFFFF,008CFF,000000&ext=.png';
-
 
40
			var pointsOrigine = null;
-
 
41
			var boundsOrigine = null;
43
		<script type="text/javascript">
42
			var markerClusterer = null;
-
 
43
			var map = null;
-
 
44
			var nt = '<?=$num_taxon?>';
-
 
45
			
-
 
46
			var infoBulle = new google.maps.InfoWindow();
-
 
47
			google.maps.event.addListener(infoBulle, 'domready', function() {
-
 
48
				// Onglet Tableau : Jquery => TableSorter
-
 
49
				if ($("#observations table").get() != '') {
-
 
50
					// add parser through the tablesorter addParser method 
-
 
51
					$.tablesorter.addParser({ 
-
 
52
						// Définition d'un id unique pour ce parsseur 
-
 
53
						id: 'date_cel', 
-
 
54
						is: function(s) { 
-
 
55
							// retourne false si le parsseur n'est pas autodétecté 
-
 
56
							return false; 
-
 
57
						}, 
-
 
58
						format: function(s) { 
-
 
59
							// Transformation date jj/mm/aaaa en aaaa/mm/jj
-
 
60
							s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
-
 
61
							// Remplace la date par un nombre de millisecondes pour trier numériquement
-
 
62
							return $.tablesorter.formatFloat(new Date(s).getTime());
-
 
63
						}, 
-
 
64
						// set type, either numeric or text 
-
 
65
						type: 'numeric' 
-
 
66
					});
-
 
67
					$("#observations table").tablesorter({ 
-
 
68
			            headers: { 
-
 
69
			                1: { 
-
 
70
			                    sorter:'date_cel' 
-
 
71
			                } 
-
 
72
			            } 
-
 
73
			        });
-
 
74
				}
-
 
75
				// Onglet Liste : Jquery => FancyBox
-
 
76
				if ($("#observations ol").get() != '') {
-
 
77
					$("a.cel-img").fancybox({
-
 
78
						transitionIn : 'elastic',
-
 
79
						transitionOut : 'elastic',
-
 
80
						speedIn	 : 600, 
-
 
81
						speedOut : 200, 
-
 
82
						overlayShow : true
-
 
83
					}).bind('click', function(e) {
-
 
84
						if (e.stopPropagation) {
-
 
85
							e.stopPropagation();
-
 
86
						}
-
 
87
						return false;
-
 
88
					});
-
 
89
				}
-
 
90
			});
-
 
91
			google.maps.event.addListener(infoBulle, 'closeclick', function() {
-
 
92
				map.panTo(pointClique.position);
-
 
93
			});
-
 
94
			
-
 
95
			var pointClique = null;
44
		//<![CDATA[
96
			
-
 
97
			var carteCentre = new google.maps.LatLng(46.4, 3.10);
-
 
98
			var carteOptions = {
45
			var urlsLimitesCommunales = <?=$url_limites_communales?>;
99
				zoom: 6,
-
 
100
				mapTypeId: google.maps.MapTypeId.ROADMAP,
-
 
101
				mapTypeControlOptions: {
-
 
102
			        style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
-
 
103
			};
-
 
104
			var ctaLayer = null;
-
 
105
			
-
 
106
			function refreshMap() {
-
 
107
				var points = [];
-
 
108
				var bounds = new google.maps.LatLngBounds();
-
 
109
				for (var i = 0; i < obs.nombre; ++i) {
-
 
110
					var maLatLng = new google.maps.LatLng(obs.points[i].coord_x, obs.points[i].coord_y);
-
 
111
					var pointImage = new google.maps.MarkerImage(pointImageUrl, new google.maps.Size(24, 32));
-
 
112
					var point = new google.maps.Marker({
-
 
113
						position: maLatLng,
-
 
114
						map: map,
-
 
115
						icon: pointImage,
-
 
116
						stationId: obs.points[i].id
-
 
117
					});
-
 
118
 
-
 
119
					bounds.extend(maLatLng);
-
 
120
					
-
 
121
					google.maps.event.addListener(point, 'click', function() {
-
 
122
						pointClique =  this;
-
 
123
						
-
 
124
						infoBulle.open(map, this);
-
 
125
						
-
 
126
						var limites = map.getBounds();
-
 
127
						var centre = limites.getCenter();
-
 
128
						var nordEst = limites.getNorthEast();
-
 
129
						var centreSudLatLng = new google.maps.LatLng(nordEst.lat(), centre.lng());
-
 
130
						map.panTo(centreSudLatLng);
-
 
131
						
-
 
132
						afficherMsgChargement();
-
 
133
						chargerFormatObs(this.stationId, '*');
-
 
134
					});
-
 
135
					
-
 
136
					points.push(point);
-
 
137
				}
-
 
138
 
-
 
139
				if (pointsOrigine == null && boundsOrigine == null) {
-
 
140
					pointsOrigine = points;
-
 
141
					boundsOrigine = bounds;
-
 
142
				}
-
 
143
				
-
 
144
				executerMarkerClusterer(points, bounds);
-
 
145
			}
-
 
146
 
-
 
147
			function executerMarkerClusterer(points, bounds) {
-
 
148
				if (markerClusterer) {
-
 
149
					markerClusterer.clearMarkers();
-
 
150
				}
-
 
151
				markerClusterer = new MarkerClusterer(map, points);
-
 
152
				map.fitBounds(bounds);
-
 
153
			}
-
 
154
 
-
 
155
			function afficherMsgChargement() {
-
 
156
				var chargement = document.getElementById('chargement').cloneNode(true);
-
 
157
				chargement.setAttribute('id', 'chargement-copie');
-
 
158
				infoBulle.setContent(chargement);
-
 
159
			}
-
 
160
 
46
			var nt = '<?=$num_taxon?>';
161
			function chargerFormatObs(stationId, format) {
47
			var filtreCommun = 
162
				var url = '<?=$url_base?>carto?carte=observations'+
48
				'&taxon=<?=$taxon?>'+
163
					'&utilisateur=<?=$utilisateur?>'+
49
				'&utilisateur=<?=$utilisateur?>'+
164
					'&projet=<?=$projet?>'+
-
 
165
					'&num_taxon='+nt+
-
 
166
					'&dept=<?=$dept?>'+
-
 
167
					'&format='+format+'&station='+stationId;
-
 
168
				$.get(url, function(observations){
-
 
169
					infoBulle.setContent(observations);
-
 
170
				});
-
 
171
			}
-
 
172
 
50
				'&projet=<?=$projet?>'+
173
			function arreter(event) {
-
 
174
				if (event.stopPropagation) {
-
 
175
					event.stopPropagation();
-
 
176
				}
-
 
177
				return false;
51
				'&tag=<?=$tag?>'+
178
			}
-
 
179
			
-
 
180
			function afficher() {
-
 
181
				document.getElementById('panneau-lateral').style.width = '300px';
-
 
182
				document.getElementById('pl-contenu').style.display = 'block';
-
 
183
				document.getElementById('pl-ouverture').style.display = 'none';
-
 
184
				document.getElementById('pl-fermeture').style.display = 'block';
-
 
185
				document.getElementById('carte').style.left = '300px';
-
 
186
				google.maps.event.trigger(map, 'resize');
-
 
187
			};
-
 
188
			
-
 
189
			function cacher() {
-
 
190
				document.getElementById('panneau-lateral').style.width = '24px';
-
 
191
				document.getElementById('pl-contenu').style.display = 'none';
-
 
192
				document.getElementById('pl-ouverture').style.display = 'block';
-
 
193
				document.getElementById('pl-fermeture').style.display = 'none';
-
 
194
				document.getElementById('carte').style.left = '24px';
-
 
195
				google.maps.event.trigger(map, 'resize');
-
 
196
			};
-
 
197
 
-
 
198
			function ouvrirPopUp(url, nom) {
-
 
199
				window.open(url, nom, 'scrollbars=yes,width=650,height=600,directories=no,location=no,menubar=no,status=no,toolbar=no');
52
				'&date=<?=$date?>'+
200
			};
-
 
201
			
53
				'&dept=<?=$dept?>'+
202
			function filtrerParTaxon(ntAFiltrer) {
-
 
203
				infoBulle.close();
54
				'&commune=<?=$commune?>'+
204
				$('#taxon-'+nt).removeClass('taxon-actif');
-
 
205
				if (nt == ntAFiltrer) {
55
				'&commentaire=<?=$commentaire?>';
206
					nt = '*';
-
 
207
					executerMarkerClusterer(pointsOrigine, boundsOrigine);
56
			var stationsUrl = '<?=$url_cel_carto?>/stations'+'?'+
208
				} else {
-
 
209
					var url = '<?=$url_cel_carto?>/carte-defaut-json/<?=$utilisateur?>/<?=$projet?>/<?=$dept?>/'+ntAFiltrer+'?formatRetour=jsonp&callback=?';
57
				'num_taxon='+nt+
210
					$.getJSON(url, function (observations) {
-
 
211
						obs = observations;
58
				filtreCommun;
212
						nt = ntAFiltrer;
-
 
213
						$('#taxon-'+nt).addClass('taxon-actif');
-
 
214
						refreshMap();
-
 
215
					});
-
 
216
				}
-
 
217
			};
-
 
218
			
-
 
219
			function initialize() {
-
 
220
				map = new google.maps.Map(document.getElementById('carte'), carteOptions);
-
 
221
 
-
 
222
				// Ajout des limites communales sur la carte
59
			var taxonsUrl = '<?=$url_cel_carto?>/taxons'+'?'+
223
				<? if (isset($url_limites_communales)) : ?>
60
				'num_taxon='+nt+
224
					<? foreach ($url_limites_communales as $url) : ?>
-
 
225
						ctaLayer = new google.maps.KmlLayer('<?=$url?>', {preserveViewport: true});
-
 
226
						ctaLayer.setMap(map);
-
 
227
					<? endforeach ?>
61
				filtreCommun;
228
				<? endif ?>
-
 
229
				
-
 
230
				<? if ($num_taxon == '*') : ?>
-
 
231
				var ouvertureDiv = document.getElementById('pl-ouverture');
-
 
232
				google.maps.event.addDomListener(ouvertureDiv, 'click', afficher);
-
 
233
 
-
 
234
				var fermetureDiv = document.getElementById('pl-fermeture');
-
 
235
				google.maps.event.addDomListener(fermetureDiv, 'click', cacher);
62
			var observationsUrl = '<?=$url_cel_carto?>/observations'+'?'+
236
				<? endif ?>
-
 
237
		
-
 
238
				refreshMap();
-
 
239
			}
-
 
240
			
-
 
241
			// Déclenchement d'actions pour JQuery
-
 
242
			$(document).ready(function() {
-
 
243
				// Ajout du nombre de communes où des observations ont eu lieu
63
				'station={stationId}'+
244
				$('#commune-nbre').append(obs.nombre);
64
				'&num_taxon={nt}'+
-
 
65
				filtreCommun;
Line 245... Line 66...
245
			});
66
		//]]>
246
		//]]>
-
 
247
		</script>
67
		</script>
248
		
-
 
249
		<!-- CSS -->
-
 
250
		<link href="<?=$url_base?>modules/carto/squelettes/css/carto.css" rel="stylesheet" type="text/css" media="screen" />
-
 
251
		<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" />
-
 
252
		
-
 
253
		<!--[if lt IE 7]>
-
 
254
			<style type="text/css">
-
 
255
				#carte {
-
 
256
					height:expression(document.body.clientHeight-35); /* 80+20+20=120 */
-
 
257
					width:expression(document.body.clientWidth-24); /* 200+20+20+20=260 */
-
 
258
				}
-
 
259
				#panneau-lateral {
-
 
260
					height:expression(document.body.clientHeight-35); /* 80+20+20=120 */
-
 
261
				}
-
 
262
			</style>
-
 
263
		<![endif]-->
-
 
264
		
-
 
265
		<? if ($num_taxon != '*') : ?>
-
 
266
		<style type="text/css">
-
 
267
			#carte {
-
 
268
				left:0;
-
 
269
			}
-
 
270
		</style>
-
 
271
		<? endif ?>
-
 
272
		
-
 
273
		<!-- Stats : Google Analytics -->
-
 
274
		<script type="text/javascript">
-
 
275
			//<![CDATA[
-
 
276
			var _gaq = _gaq || [];
-
 
277
			_gaq.push(['_setAccount', 'UA-20092557-1']);
-
 
278
			_gaq.push(['_trackPageview']);
68
		<script type="text/javascript" src="<?=$url_base?>modules/carto/squelettes/scripts/carto.js"></script>
279
			
69
		
280
			(function() {
-
 
281
			  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-
 
282
			  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-
 
283
			  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
70
		<!-- CSS -->
Line 284... Line 71...
284
			})();
71
		<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" />
285
			//]]>
72
		<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" />
286
		</script>
73
		<link href="<?=$url_base?>modules/carto/squelettes/css/carto.css" rel="stylesheet" type="text/css" media="screen" />
287
	</head>
74
	</head>
-
 
75
 
-
 
76
	<body>
288
 
77
		<div id="zone-titre">
-
 
78
			<h1 id="carte-titre">
-
 
79
				<span id="logo">
289
	<body onload="initialize()">
80
					<a href="http://www.tela-botanica.org/site:accueil" 
-
 
81
						title="Aller à l'accueil de Tela Botanica" 
-
 
82
						onclick="window.open(this.href); arreter(event); return false;">
290
		<div id="zone-titre">
83
						<img src="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" alt="TB" />
291
			<h1 id="carte-titre">
84
					</a>
292
				<? if ($num_taxon == '*') : ?>
85
				</span>
293
				<span id="commune-nbre">&nbsp;</span> communes contenant des observations du <a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href); arreter(event); return false;">CEL</a> de <a href="http://www.tela-botanica.org/" onclick="window.open(this.href); arreter(event); return false;">Tela Botanica</a>
86
				<span id="obs-nbre">&nbsp;</span> observations  
294
				<? else : ?>
87
				<span class="plante-titre">de <span class="plantes-nbre">&nbsp;</span> plantes</span> sur 
295
				<span id="commune-nbre">&nbsp;</span> communes pour <?=$taxon_nom?> - <a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href); arreter(event); return false;">CEL</a> de <a href="http://www.tela-botanica.org/" onclick="window.open(this.href); arreter(event); return false;">Tela Botanica</a>
88
				<span id="commune-nbre">&nbsp;</span> communes
296
				<? endif ?>
89
				 - <a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href); arreter(event); return false;">CEL</a> (<a href="http://www.tela-botanica.org/" onclick="window.open(this.href); arreter(event); return false;">Tela Botanica</a>)
Line 306... Line 99...
306
		<div id="panneau-lateral">
99
		<div id="panneau-lateral">
307
			<div id="pl-ouverture" title="Ouvrir le panneau latéral"><span>Panneau >></span></div>
100
			<div id="pl-ouverture" title="Ouvrir le panneau latéral"><span>Panneau >></span></div>
308
			<div id="pl-fermeture" title="Fermer le panneau latéral"><span><< Fermer [x]</span></div>
101
			<div id="pl-fermeture" title="Fermer le panneau latéral"><span><< Fermer [x]</span></div>
309
			<div id="pl-contenu">
102
			<div id="pl-contenu">
310
				<div id="pl-entete">
103
				<div id="pl-entete">
311
					<h2>Filtre sur <?=count($taxons)?> plantes</h2>	
104
					<h2>Filtre sur <span class="plantes-nbre">&nbsp;</span> plantes</h2>	
312
					<p>
105
					<p>
313
						Cliquez sur un nom de plante pour filtrer les observations sur la carte.<br /> 
106
						Cliquez sur un nom de plante pour filtrer les observations sur la carte.<br /> 
314
						Pour revenir à l'état initial, cliquez à nouveau sur le nom sélectionné.
107
						Pour revenir à l'état initial, cliquez à nouveau sur le nom sélectionné.
315
					</p>
108
					</p>
316
				</div>
109
				</div>
317
				<div id="pl-corps" onMouseOver="map.setOptions({'scrollwheel':false});" onMouseOut="map.setOptions({'scrollwheel':true});">
110
				<div id="pl-corps" onMouseOver="map.setOptions({'scrollwheel':false});" onMouseOut="map.setOptions({'scrollwheel':true});">
318
					<ol id="taxons">
-
 
319
					<? foreach ($taxons as $taxon) : ?>
-
 
320
						<li id="taxon-<?=$taxon['nt']?>">
-
 
321
							<a href="#" onclick="filtrerParTaxon(<?=$taxon['nt']?>);" title="<?=$taxon['famille']?>">
111
					<!-- Insertion des lignes à partir du squelette tpl-taxons-liste -->
322
								<?=$taxon['nom']?> 
-
 
323
							</a>
-
 
324
						</li>
-
 
325
					<? endforeach; ?>
-
 
326
					</ol>
-
 
327
				</div>
112
				</div>
328
			</div>
113
			</div>
329
		</div>
114
		</div>
330
		<? endif ?>
115
		<? endif ?>
331
		<div id="carte"></div>
116
		<div id="carte"></div>
Line -... Line 117...
-
 
117
		
332
		
118
		<!-- +-------------------------------------------------------------------------------------------+ -->
-
 
119
		<!-- Blocs chargés à la demande : par défaut avec un style display à none -->
-
 
120
		
-
 
121
		<!-- Squelette du message de chargement des observations -->
333
		<!-- Blocs chargés à la demande : par défaut avec un style display à none -->
122
		<script id="tpl-chargement" type="text/x-jquery-tmpl">
334
		<div id="chargement">
123
			<div id="chargement" style="height:500px;">			
335
			<img src="<?=$url_base?>modules/carto/squelettes/images/chargement.gif" alt="Chargement en cours..." />
124
				<img src="<?=$url_base?>modules/carto/squelettes/images/chargement.gif" alt="Chargement en cours..." />
-
 
125
				<p>Chargement des observations en cours...</p>
-
 
126
			</div>
-
 
127
		</script>
-
 
128
		
-
 
129
		<!-- Squelette du contenu d'une info-bulle observation -->
-
 
130
		<script id="tpl-obs" type="text/x-jquery-tmpl">
-
 
131
			<div id="info-bulle" style="width:{largeur}px;">	
-
 
132
				<div id="obs">				
-
 
133
					<h2><span id="obs-total">&nbsp;</span> observations pour <span id="obs-commune">&nbsp;</span></h2>
-
 
134
					<div class="navigation">&nbsp;</div>					
-
 
135
					<div>
-
 
136
						<ul>
-
 
137
							<li><a href="#obs-vue-tableau">Tableau</a></li>
-
 
138
							<li><a href="#obs-vue-liste">Liste</a></li>
-
 
139
						</ul>
-
 
140
					</div>
-
 
141
					<div id="observations">
-
 
142
						<div id="obs-vue-tableau" style="display:none;">
-
 
143
							<table id="obs-tableau">
-
 
144
								<thead>
-
 
145
									<tr>
-
 
146
										<th title="Nom scientifique défini par l'utilisateur.">Nom</th>
-
 
147
										<th title="Date de l'observation">Date</th>
-
 
148
										<th title="Lieu d'observation">Lieu</th>
-
 
149
										<th title="Auteur de l'observation">Observateur</th>
-
 
150
									</tr>
-
 
151
								</thead>
-
 
152
								<tbody id="obs-tableau-lignes" class="obs-conteneur">
-
 
153
									<!-- Insertion des lignes à partir du squelette tpl-obs-tableau -->
-
 
154
								</tbody>
-
 
155
							</table>
-
 
156
						</div>
-
 
157
						<div id="obs-vue-liste" style="display:none;">
-
 
158
							<ol id="obs-liste-lignes" class="obs-conteneur">
-
 
159
								<!-- Insertion des lignes à partir du squelette tpl-obs-liste -->
-
 
160
							</ol>
-
 
161
						</div>
-
 
162
					</div>
-
 
163
					<div class="navigation">&nbsp;</div>
-
 
164
					<div id="obs-pieds-page">
-
 
165
						<p id="obs-msg-info">Les observations de cette carte sont regroupées par commune.</p>
-
 
166
						<p>Id : <span id="obs-station-id">&nbsp;</span></p>
-
 
167
					</div>
-
 
168
				</div>
-
 
169
			</div>
-
 
170
		</script>
-
 
171
		
-
 
172
		<!-- Squelette du contenu du tableau des observation -->
-
 
173
		<script id="tpl-obs-tableau" type="text/x-jquery-tmpl">
-
 
174
			<tr class="cel-obs-${idObs}">
-
 
175
				<td>
-
 
176
					<span class="nom-sci">&nbsp;
-
 
177
					{{if nn != 0}}
-
 
178
						<a href="http://www.tela-botanica.org/nn${nn}" 
-
 
179
							onclick="window.open(this.href); arreter(event); return false; ">
-
 
180
							${nomSci}
-
 
181
						</a>
-
 
182
					{{else}}
-
 
183
						${nomSci}
-
 
184
					{{/if}}
-
 
185
					</span>
-
 
186
				</td>
-
 
187
				<td class="date">{{if date}}${date}{{else}}&nbsp;{{/if}}</td>
-
 
188
				<td class="lieu">{{if lieu}}${lieu}{{else}}&nbsp;{{/if}}</td>
-
 
189
				<td>
-
 
190
				{{if observateur}}
-
 
191
					{{if observateurId}}					
-
 
192
						<a class="contact obs-${idObs} contributeur-${observateurId}" 
-
 
193
						href="#form-contact" 
-
 
194
						title="Contactez ce contributeur">
-
 
195
							${observateur}
-
 
196
						</a>
-
 
197
					{{else}}
-
 
198
						${observateur}
-
 
199
					{{/if}}
-
 
200
				{{else}}
-
 
201
					&nbsp;
-
 
202
				{{/if}}
-
 
203
				</td>
-
 
204
			</tr>
-
 
205
		</script>
-
 
206
		
-
 
207
		<!-- Squelette du contenu de la liste des observations -->
-
 
208
		<script id="tpl-obs-liste" type="text/x-jquery-tmpl">
-
 
209
			<li>
-
 
210
				<div class="cel-obs-${idObs}">
-
 
211
					{{if images}}
-
 
212
					{{each(index, img) images}}
-
 
213
					<div{{if index == 0}} class="cel-img-principale" {{else}} class="cel-img-secondaire"{{/if}}>
-
 
214
						<a class="cel-img" 
-
 
215
							href="${img.normale}" 
-
 
216
							title="${nomSci} {{if nn}} [${nn}] {{/if}} par ${observateur} - Publiée le ${datePubli} - GUID : ${img.guid}" 
-
 
217
							rel="cel-obs-${idObs}">
-
 
218
							<img src="${img.miniature}" alt="Image #${img.idImg} de l'osbervation #${nn}" />
-
 
219
						</a>
-
 
220
						<p id="cel-info-${img.idImg}" class="cel-infos">
-
 
221
							<a class="cel-img-titre" href="${urlEflore}"
-
 
222
								onclick="window.open(this.href);return false;"  
-
 
223
								title="Cliquez pour accéder à la fiche eFlore">
-
 
224
								<strong>${nomSci} {{if nn}} [nn${nn}] {{/if}}</strong> par <em>${observateur}</em>
-
 
225
							</a>
-
 
226
							<br />
-
 
227
							<span class="cel-img-date">Publiée le ${datePubli}</span>
-
 
228
 						</p>
-
 
229
					</div>
-
 
230
					{{/each}}
-
 
231
					{{/if}}
-
 
232
					<dl>
-
 
233
						<dt class="champ-nom-sci">Nom</dt>
-
 
234
						<dd title="Nom défini par l'utilisateur{{if nn != 0}}. Cliquez pour accéder à la fiche d'eFlore.{{/if}}">
-
 
235
							<span class="nom-sci">&nbsp;
-
 
236
							{{if nn != 0}}
-
 
237
								<a href="http://www.tela-botanica.org/nn${nn}" 
-
 
238
									onclick="window.open(this.href); arreter(event); return false; ">
-
 
239
									${nomSci}
-
 
240
								</a>
-
 
241
							{{else}}
-
 
242
								${nomSci}
-
 
243
							{{/if}}
-
 
244
							</span>
-
 
245
						</dd>
-
 
246
						<dt title="Lieu d'observation">Lieu</dt><dd class="lieu">&nbsp;${lieu}</dd>
-
 
247
						<dt title="Date d'observation">Le</dt><dd class="date">&nbsp;${date}</dd>
-
 
248
						<dt title="Auteur de l'observation">Publié par</dt>
-
 
249
						<dd>
-
 
250
						{{if observateur}}
-
 
251
							{{if observateurId}}					
-
 
252
								<a class="contact obs-${idObs} contributeur-${observateurId}" 
-
 
253
									href="#form-contact" 
-
 
254
									title="Contactez ce contributeur">
-
 
255
									${observateur}
-
 
256
								</a>
-
 
257
							{{else}}
-
 
258
								${observateur}
-
 
259
							{{/if}}
-
 
260
						{{else}}
-
 
261
							&nbsp;
-
 
262
						{{/if}}
-
 
263
						</dd>
-
 
264
					</dl>
-
 
265
					<hr class="nettoyage"/>
-
 
266
				</div>
-
 
267
			</li>
-
 
268
		</script>
-
 
269
		
-
 
270
		<!-- Squelette de la liste des taxons -->
-
 
271
		<script id="tpl-taxons-liste" type="text/x-jquery-tmpl">
-
 
272
			<ol id="taxons">
-
 
273
				{{each(index, taxon) taxons}}
-
 
274
					<li id="taxon-${taxon.nt}">
-
 
275
						<span class="taxon" title="Numéro taxonomique : ${taxon.nt} - Famille : ${taxon.famille}">
-
 
276
							${taxon.nom} <span class="nt" title="Numéro taxonomique">${taxon.nt}</span> 
-
 
277
						</span>
-
 
278
					</li>
-
 
279
				{{/each}}
-
 
280
			</ol>
-
 
281
		</script>
-
 
282
		
-
 
283
		<!-- Squelette du formulaire de contact -->
-
 
284
		<div id="tpl-form-contact" style="display:none;">
-
 
285
			<form id="form-contact" method="post" action="">
-
 
286
	    		<div id="fc-zone-dialogue"></div>
-
 
287
	    		<dl>
-
 
288
	    			<dt><label for="fc_sujet">Sujet</label></dt>
-
 
289
					<dd><input id="fc_sujet" name="fc_sujet"/></dd>
-
 
290
					<dt><label for="fc_message">Message</label></dt>
-
 
291
					<dd><textarea id="fc_message" name="fc_message"></textarea></dd>
-
 
292
					<dt><label for="fc_utilisateur_courriel" title="Utilisez le courriel avec lequel vous êtes inscrit à Tela Botanica">Votre courriel</label></dt>
-
 
293
					<dd><input id="fc_utilisateur_courriel" name="fc_utilisateur_courriel"/></dd>
-
 
294
				</dl>
-
 
295
				<p>
-
 
296
					<input id="fc_destinataire_id" name="fc_destinataire_id" type="hidden" value="" />
-
 
297
					<input id="fc_copies" name="fc_copies" type="hidden" value="eflore_remarques@tela-botanica.org" />
-
 
298
					
-
 
299
					<button id="fc_annuler" type="button">Annuler</button>
-
 
300
					&nbsp;
-
 
301
					<button id="fc_effacer" type="reset">Effacer</button>
-
 
302
					&nbsp;
-
 
303
					<input id="fc_envoyer" type="submit" value="Envoyer" />
-
 
304
				</p>
336
			<p>Chargement des observations en cours...</p>
305
			</form>
-
 
306
		</div>
-
 
307
		
-
 
308
		<!-- Stats : Google Analytics -->
-
 
309
		<script type="text/javascript">
-
 
310
			//<![CDATA[
-
 
311
			var _gaq = _gaq || [];
-
 
312
			_gaq.push(['_setAccount', 'UA-20092557-1']);
-
 
313
			_gaq.push(['_trackPageview']);
-
 
314
			
-
 
315
			(function() {
-
 
316
			  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-
 
317
			  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-
 
318
			  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-
 
319
			})();
-
 
320
			//]]>
337
		</div>
321
		</script>
338
	</body>
-
 
339
</html>
322
	</body>
-
 
323
</html>