Subversion Repositories eFlore/Applications.cel

Rev

Rev 3402 | Rev 3412 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3402 delphine 1
<form id="form-observation" role="form" autocomplete="on">
2
	<h2><?php echo $observation['titre-obs']; ?></h2>
3
	<div id="zone-observation" class="row">
4
		<div class="col-md-6">
5
 
6
			<div class="mb-3">
7
				<label class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observateur['geoloc-title']; ?>">
8
					<i class="fa fa-map" aria-hidden="true"></i>
9
					<?php echo $observation['lieu-releve']; ?>
10
				</label>
11
				<div class="control-group">
12
					<span id="geoloc-error" class="error hidden"><?php echo $observation['geoloc-erreur']; ?></span>
13
					<div id="geoloc" class="col-sm-8 geoloc">
14
						<tb-geolocation-element
15
							id="tb-geolocation"
16
							layer='osm'
17
							zoom_init="4"
18
							lat_init="46.5"
19
							lng_init="2.9"
20
							marker="true"
21
							polyline="false"
22
							polygon="false"
23
							show_lat_lng_elevation_inputs="true"
24
							osm_class_filter=""
25
							elevation_provider="mapquest"
26
							map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
27
						>
28
						</tb-geolocation-element>
29
					</div>
30
					<div id="geoloc-datas" class="hidden">
31
						<div class="mt-3">
32
							<label class="col-sm-8" for="rue"><?php echo $observation['rue']; ?></label>
33
							<div class="col-sm-8">
34
								<!-- <input type="text" class="form-control rue" disabled id="rue" name="rue" value="1 Place Georges Frêche"> -->
35
								<input type="text" class="form-control rue" disabled id="rue" name="rue" value="">
36
							</div>
37
						</div>
38
						<div class="mt-3">
39
							<label class="col-sm-8" for="commune-nom"><?php echo $observation['nom-commune']; ?></label>
40
							<div class="col-sm-8">
41
								<!-- <input type="text" class="form-control commune-nom" disabled id="commune-nom" name="commune-nom" value="Montpellier">
42
								<input type="hidden" class="commune-insee" disabled id="commune-insee" name="commune-insee" value="34172"> -->
43
								<input type="text" class="form-control commune-nom" disabled id="commune-nom" name="commune-nom" value="">
44
								<input type="hidden" class="commune-insee" disabled id="commune-insee" name="commune-insee" value="">
45
							</div>
46
						</div>
47
						<!-- <input type="hidden" class="form-control latitude" disabled id="latitude" name="latitude" value="43.5984" style="display:none">
48
						<input type="hidden" class="form-control longitude" disabled id="longitude" name="longitude" value="3.896799" style="display:none"> -->
49
						<!-- <input type="text" class="form-control altitude" disabled id="altitude" name="altitude" value="23"> -->
50
						<input type="hidden" class="form-control latitude" disabled id="latitude" name="latitude" value="" style="display:none">
51
						<input type="hidden" class="form-control longitude" disabled id="longitude" name="longitude" value="" style="display:none">
52
						<input type="hidden" class="form-control altitude" disabled id="altitude" name="altitude" value="" style="display:none">
53
						<div class="row pl-3 pr-3 mt-3">
54
							<div class="d-flex flex-column col-sm-4">
55
								<label for="pays"><?php echo $observation['pays']; ?></label>
56
								<div>
57
									<!-- <input type="text" class="form-control pays" disabled id="pays" name="pays" value="France"> -->
58
									<input type="text" class="form-control pays" disabled id="pays" name="pays" value="">
59
								</div>
60
							</div>
61
						</div>
62
					</div>
63
				</div>
64
			</div>
65
		</div>
66
 
67
		<div class="col-md-6">
68
			<h3 class="mb-3"><?php echo $observation['titre-info-obs']; ?></h3>
69
			<div id="obs-info" class="text-justify col-sm-8">
70
				<?php echo $observation['obs-info']; ?>
71
			</div>
72
 
73
			<div class="control-group">
74
				<label for="releve-date" class="col-sm-8 obligatoire" title="">
75
					<i class="fa fa-calendar" aria-hidden="true"></i>
76
					<?php echo $observation['date']; ?>
77
				</label>
78
				<div class="col-sm-8 mb-3 has-tooltip" data-toggle="tooltip" title="<?php echo $observation['date-title']; ?>">
79
					<input type="date" id="releve-date" name="releve-date" class="form-control" max="" placeholder="jj/mm/aaaa" required>
80
				</div>
81
			</div>
82
 
83
			<div class="control-group">
84
				<div class="col-sm-8 mb-2 list-label obligatoire">
85
					<i class="fa fa-walking" aria-hidden="true"></i>
86
					<?php echo $observation['zone-pietonne']; ?>
87
				</div>
88
				<div id="zone-pietonne" class="col-sm-8 mb-3 list">
89
					<div class="form-check form-check-inline">
90
						<input type="radio" id="pietonne" name="zone-pietonne" class="pietonne form-check-input" value="true">
91
						<label for="pietonne" class="pietonne form-check-label"><?php echo $general['oui']; ?></label>
92
					</div>
93
					<div class="form-check form-check-inline">
94
						<input type="radio" id="non-pietonne" name="zone-pietonne" class="non-pietonne form-check-input" value="false">
95
						<label for="non-pietonne" class="non-pietonne form-check-label"><?php echo $general['non']; ?></label>
96
					</div>
97
				</div>
98
			</div>
99
 
100
			<div class="">
101
				<div class="col-sm-8 mb-2 list-label">
102
					<i class="fa fa-lightbulb" aria-hidden="true"></i>
103
					<?php echo $observation['pres-lampadaires']; ?>
104
				</div>
105
				<div id="pres-lampadaires" class="col-sm-8 mb-3 list">
106
					<div class="form-check form-check-inline">
107
						<input type="radio" id="lampadaires" name="pres-lampadaires" class="lampadaires form-check-input" value="true">
108
						<label for="lampadaires" class="lampadaires form-check-label"><?php echo $general['oui']; ?></label>
109
					</div>
110
					<div class="form-check form-check-inline">
111
						<input type="radio" id="sans-lapadaires" name="pres-lampadaires" class="sans-lampadaires form-check-input" value="false">
112
						<label for="sans-lampadaires" class="sans-lampadaires form-check-label"><?php echo $general['non']; ?></label>
113
					</div>
114
				</div>
115
			</div>
116
 
117
			<div class="">
118
				<label for="commentaires" class="col-sm-8">
119
					<i class="fa fa-pen" aria-hidden="true"></i>
120
					<?php echo $general['commentaires']; ?>
121
				</label>
122
				<div class="col-sm-8 mb-3">
123
					<textarea id="commentaires" class="col-md-12" rows="7" name="commentaires"></textarea>
124
				</div>
125
			</div>
126
			<!-- Bouton création d'une obs -->
127
			<div class="col-sm-8 mb-3">
128
				<div title="<?php echo $resume['creer-title']; ?>">
129
					<a href="" id="soumettre-releve" class="charger-carto btn btn-primary"><?php echo $general['enregistrer']; ?></a href="">
130
				</div>
131
			</div>
132
		</div>
133
	</div>
134
</form><!-- fin zone relevé -->
135
 
136
<!-- Messages d'erreur du formulaire observateur -->
137
<div class="zone-alerte">
138
	<div id="dialogue-geoloc-ko" class="alert alert-warning alert-block hidden">
139
		<a class="close">×</a>
140
		<h4 class="alert-heading"><?php echo $observation['alertgk-title']; ?></h4>
141
		<p><?php echo $observation['alertgk']; ?></p>
142
	</div>
143
	<div id="dialogue-date-rue-ko" class="alert alert-warning alert-block hidden">
144
		<a class="close">×</a>
145
		<h4 class="alert-heading"><?php echo $observation['alertdr-title']; ?></h4>
146
		<p><?php echo $observation['alertdr']; ?></p>
147
	</div>
148
</div>
149
 
150
<div id="zone-arbres" class="bloc-top hidden">
151
	<h2 class="mb-3"><?php echo $arbres['titre']; ?></h2>
152
	<div id="bouton-saisir-plantes" class="btn btn-info hidden m-3" data-load="plantes">
153
		<i class="fas fa-seedling"></i> <?php echo $resume['saisir-plantes']; ?>
154
	</div>
155
	<div class="row">
156
		<div id="bloc-arbres-gauche" class="col-md-6">
157
			<div id="bloc-info-arbres"></div>
158
			<div id="bloc-form-arbres" class="">
159
				<div id="arbres-info" class="text-justify">
160
					<?php echo $arbres['arbres-info']; ?>
161
				</div>
162
				<form id="form-arbre" role="form" autocomplete="off">
163
					<h3 class="mb-3"><?php echo $general['arbre'];?>&nbsp;<span id="arbre-nb">1</span>&nbsp;:</h3>
164
					<input id="referentiel" name="referentiel" value="bdtfx" type="hidden">
165
					<div id="bloc-taxon" class="control-group">
166
						<label for="taxon" class="col-sm-8 obligatoire" title="">
167
							<i class="fa fa-leaf" aria-hidden="true"></i>
168
							<?php echo $general['espece']; ?> (bdtfx)
169
						</label>
170
						<div class="col-sm-8 mb-3">
171
							<input id="taxon" name="taxon" class="form-control taxon-validation has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $general['espece-title']; ?>" required autocomplete="off">
172
						</div>
173
					</div>
174
 
175
					<div class="control-group">
176
						<label for="certitude" class="col-sm-8 obligatoire">
177
							<i class="fa fa-question" aria-hidden="true"></i>
178
							<?php echo $general['certitude']; ?>
179
						</label>
180
						<div class="col-sm-8 mb-3">
181
							<select id="certitude" name="certitude" class="form-control custom-select" required>
182
								<option class="choisir" hidden value="" selected><?php echo $general['choisir']; ?></option>
183
								<option class="aDeterminer" value="à determiner"><?php echo $general['certADet']; ?></option>
184
								<option class="douteuse" value="douteuse"><?php echo $general['certDout']; ?></option>
185
								<option class="certaine" value="certaine"><?php echo $general['certCert']; ?></option>
186
							</select>
187
						</div>
188
					</div>
189
					<div class="">
190
						<label class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observateur['geoloc-title']; ?>">
191
							<i class="fa fa-map-marked-alt " aria-hidden="true"></i>
192
							<?php echo $arbres['localiser']; ?>
193
						</label>
194
						<div class="control-group">
195
							<div id="geoloc-datas-arbres" class="hidden">
196
								<div class="mt-3">
197
									<label class="col-sm-8" for="rue-arbres"><?php echo $observation['rue']; ?></label>
198
									<div class="col-sm-8">
199
										<input type="text" class="form-control rue-arbres" disabled id="rue-arbres" name="rue-arbres" value="">
200
									</div>
201
								</div>
202
								<div class="row pl-3 pr-3 mt-3">
203
									<div class="d-flex flex-column col-sm-4">
204
										<label class="" for="latitude-arbres"><?php echo $observation['latitude']; ?></label>
205
										<div class="">
206
											<input type="text" class="form-control latitude-arbres" disabled id="latitude-arbres" name="latitude-arbres" value="">
207
										</div>
208
									</div>
209
									<div class="d-flex flex-column col-sm-4">
210
										<label class="" for="longitude-arbres"><?php echo $observation['longitude']; ?></label>
211
										<div class="">
212
											<input type="text" class="form-control longitude-arbres" disabled id="longitude-arbres" name="longitude-arbres" value="">
213
										</div>
214
									</div>
215
								</div>
216
								<input type="hidden" id="altitude-arbres" name="altitude-arbres" class=""  value="" style="display:none">
217
							</div>
218
							<div id="geoloc-arbres" class="col-sm-8"></div>
219
						</div>
220
					</div>
221
				</form>
222
				<form id="form-upload" class="form-horizontal" action="<?php echo $url_ws_upload ?>" method="post" enctype="multipart/form-data">
223
					<div class="col-sm-8 mb-2 list-label and-help">
224
						<i class="fa fa-images" aria-hidden="true"></i>
225
						<?php echo $arbres['titre-photos']; ?>
226
					</div>
227
					<p id="miniature-arbres-info" class="col-sm-8">
228
						<?php echo $image['aide']; ?>
229
					</p>
230
					<div id ="photos-conteneur" class="control-group col-sm-8">
231
						<div id="bouton-fichier">
232
							<label for="fichier" class="label-file btn btn-large btn-info mb-3" title="<?php echo $image['photos-title']; ?>">
233
								<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
234
								<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
235
								<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
236
							</label>
237
						</div>
238
 
239
						<div id="miniatures"></div>
240
						<p class="miniature-msg" class="span12">&nbsp;</p>
241
					</div>
242
				</form>
243
				<form id="form-arbre-fs" role="form" autocomplete="off">
244
					<div class="control-group">
245
						<label for="circonference" class="col-sm-8 obligatoire">
246
							<i class="fa fa-circle-notch" aria-hidden="true"></i>
247
							<?php echo $arbres['circonference'] ;?>
248
						</label>
249
						<div class="col-sm-8 mb-3">
250
							<input id="circonference" type="number" name="circonference" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $arbres['circonference-title'] ;?>" placeholder="<?php echo $arbres['circonference-ph'] ;?>" step="1" min="1" required>
251
						</div>
252
					</div>
253
					<div class="control-group">
254
						<label for="surface-pied" class="col-sm-8 obligatoire">
255
							<i class="fa fa-arrows-alt" aria-hidden="true"></i>
256
							<?php echo $arbres['surf-pied'] ;?>
257
						</label>
258
						<div class="col-sm-8 mb-3">
259
							<input id="surface-pied" type="number" name="surface-pied" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $arbres['surf-pied-title'] ;?>" placeholder="<?php echo $arbres['surf-pied-ph'] ;?>" step="0.01" min="0" lang="en"required>
260
						</div>
261
					</div>
262
					<div class="control-group">
263
						<label for="equipement-pied-arbre" class="col-sm-8 obligatoire">
264
							<i class="fa fa-dot-circle" aria-hidden="true"></i>
265
							<?php echo $arbres['eqt-pied-arbre'] ;?>
266
						</label>
267
						<div class="col-sm-8 mb-3">
268
							<div class="select-wrapper add-field-select">
269
								<select id="equipement-pied-arbre" name="equipement-pied-arbre" class="equipement-pied-arbre select form-control custom-select" data-label="<?php echo $arbres['eqt-pied-arbre'] ;?>" data-name="equipement-pied-arbre" required>
270
									<option class="choisir" selected value="" data-name="equipement-pied-arbre" hidden><?php echo $general['choisir']; ?></option>
271
									<option value="plaque de metal" data-name="equipement-pied-arbre"><?php echo $arbres['palque-metal']; ?></option>
272
									<option value="grille" data-name="equipement-pied-arbre"><?php echo $arbres['grille']; ?></option>
273
									<option value="ciment" data-name="equipement-pied-arbre"><?php echo $arbres['ciment']; ?></option>
274
									<option value="gomme" data-name="equipement-pied-arbre"><?php echo $arbres['gomme']; ?></option>
275
									<option value="absent" data-name="equipement-pied-arbre"><?php echo $arbres['absent']; ?></option>
276
									<option class="other form-control is-select" value="other" data-name="equipement-pied-arbre" data-element="select"><?php echo $general['autre']; ?></option>
277
								</select>
278
							</div>
279
							<span class="error hidden"><?php echo $general['champ-obligatoire']; ?></span>
280
						</div>
281
					</div>
282
					<div class="">
283
						<label for="tassement" class="col-sm-8">
284
							<i class="fas fa-sort-amount-down" aria-hidden="true"></i>
285
							<?php echo $arbres['tassement'] ;?>
286
						</label>
287
						<div class="col-sm-8 mb-3">
288
							<select id="tassement" name="tassement" class="tassement form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $arbres['tassement-title'] ;?>">
289
								<option class="choisir" selected value="" hidden><?php echo $general['choisir']; ?></option>
290
								<option value="dur"><?php echo $arbres['dur']; ?></option>
291
								<option value="normal"><?php echo $arbres['normal']; ?></option>
292
								<option value="mou"><?php echo $arbres['mou']; ?></option>
293
							</select>
294
						</div>
295
					</div>
296
					<div class="">
297
						<div class="col-sm-8 mb-2 list-label">
298
							<i class="fa fa-dog" aria-hidden="true"></i>
299
							<?php echo $arbres['dejections']; ?>
300
						</div>
301
						<div id="dejections" class="col-sm-8 mb-3 list">
302
							<div class="form-check form-check-inline">
303
								<input type="radio" id="dejections-oui" name="dejections" class="dejections-oui form-check-input" value="true">
304
								<label for="dejections-oui" class="dejections-oui form-check-label"><?php echo $general['oui']; ?></label>
305
							</div>
306
							<div class="form-check form-check-inline">
307
								<input type="radio" id="dejections-non" name="dejections" class="dejections-non form-check-input" value="false">
308
								<label for="dejections-non" class="dejections-non form-check-label"><?php echo $general['non']; ?></label>
309
							</div>
310
						</div>
311
					</div>
312
 
313
					<div class="">
314
						<label for="com-arbres" class="col-sm-8" title="">
315
								<i class="fa fa-pen" aria-hidden="true"></i>
316
								<?php echo $general['commentaires']; ?>
317
						</label>
318
						<div class="col-sm-8 mb-3">
319
								<textarea id="com-arbres" class="col-md-12" rows="7" name="com-arbres"></textarea>
320
						</div>
321
					</div>
322
				</form>
323
 
324
				<!-- Bouton création d'une obs et retour à la saisie après visualisation d'un arbre-->
325
				<div class="col-sm-8 mb-3">
326
					<button id="retour" class="btn btn-info has-tooltip hidden" data-toggle="tooltip" title="<?php echo $resume['retour-title']; ?>">
327
						<i class="fas fa-undo-alt"></i> <?php echo $general['retour']; ?>
328
					</button>
329
					<button id="ajouter-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" title="<?php echo $resume['creer-title']; ?>">
330
						<i class="fas fa-step-forward"></i> <?php echo $general['suivant']; ?>
331
					</button>
332
				</div>
333
			</div>
334
		</div><!-- fin formulaire arbres -->
335
		<!-- zone résumé obs arbres ( =zone de droite) -->
336
		<div id="boc-arbres-droite" class="col-md-6 mb-3">
337
			<!-- Messages d'erreur du formulaire -->
338
			<div class="row">
339
				<div class="zone-alerte">
340
					<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
341
						<a class="close">×</a>
342
						<h4 class="alert-heading"><?php echo $resume['alert10max']; ?></h4>
343
						<p><?php echo $resume['alert10max-desc']; ?></p>
344
					</div>
345
				</div>
346
				<div class="zone-alerte">
347
					<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
348
						<a class="close">×</a>
349
						<h4 class="alert-heading"><?php echo $resume['alertchp']; ?></h4>
350
						<p><?php echo $resume['alertchp-desc']; ?></p>
351
					</div>
352
				</div>
353
			</div>
354
 
355
			<!-- Affiche le tableau récapitualif des observations ajoutées -->
356
			<div id="zone-liste-obs" class="hidden">
357
				<div id="bloc-controle-liste-obs" class="alert alert-info">
358
					<h2 class="transmission-title"><strong><?php echo $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
359
					<button id="transmettre-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" disabled="disabled"
360
						title="<?php echo $resume['trans-title']; ?>" type="button">
361
						<?php echo $general['enregistrer']; ?>
362
					</button>
363
				</div>
364
				<div id="liste-obs" ></div>
365
				<div class="row">
366
					<div class="zone-alerte">
367
						<div id="dialogue-zero-obs" class="alert alert-block hidden">
368
							<a class="close">×</a>
369
							<h4 class="alert-heading"><?php echo $resume['alert0obs']; ?></h4>
370
							<p><?php echo $resume['alert0obs-desc']; ?></p>
371
						</div>
372
						<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
373
							<a class="close">×</a>
374
							<h4 class="alert-heading"><?php echo $resume['info-trans']; ?></h4>
375
							<div class="alert-txt"></div>
376
						</div>
377
						<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
378
							<a class="close">×</a>
379
							<h4 class="alert-heading"><?php echo $resume['alerttrans']; ?></h4>
380
							<div class="alert-txt"></div>
381
						</div>
382
					</div>
383
				</div>
384
			</div>
385
 
386
			<!-- Fenêtres modales -->
387
			<div id="chargement" class="modal-fenetre hidden">
388
				<div id="chargement-centrage" class="modal-contenu">
389
					<div class="progress progress-striped active">
390
						<div id="barre-progression-upload" class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
391
								<span class="sr-only">0/10 <?php echo $resume['nbobs']; ?></span>
392
							</div>
393
					</div>
394
					<p id="chargement-txt">
395
						<?php echo $resume['transencours']; ?>
396
					</p>
397
				</div>
398
			</div>
399
 
400
			<!-- Templates HTML -->
401
			<div id="tpl-transmission-ok" class="hidden">
402
				<p class="msg"><?php echo $resume['transok']; ?></p>
403
			</div>
404
			<div id="tpl-transmission-ko" class="hidden">
405
				<p class="msg"><?php echo $resume['transko']; ?></p>
406
			</div>
407
		</div><!-- fin arbres zone résumé obs ( =zone de droite ) -->
408
	</div>
409
	<!-- Connexion, bloc de prévisualisation, date -->
410
	<script type="text/javascript">
411
		//<![CDATA[
412
			$( document ).ready( function() {
413
				plantes = null;
414
				releve = null;
415
				// OMG un modèle objet !!
416
				releve = new ReleveStreets();
417
 
418
				// La présence du parametre 'debug' dans l'URL enclenche le débogage
419
				releve.debug = <?php echo isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
420
				// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
421
				releve.html5 = <?php echo isset($_GET['html5']) ? 'true' : 'false'; ?>;
422
				// Mot-clé du widget/projet
3409 idir 423
				releve.tagProjet = "WidgetSaisie,streets";
3402 delphine 424
				// Mots-clés à ajouter aux images
425
				releve.tagImg = "<?php echo isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
426
				releve.separationTagImg = "<?php echo isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
427
				releve.tagImg = <?php echo isset($_GET['motcle']) ? "'".$_GET['motcle']."' + releve.separationTagImg + releve.tagImg" : 'releve.tagImg'; ?>;
428
				// Mots-clés à ajouter aux observations
429
				releve.tagObs = "<?php echo isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
430
				releve.separationTagObs = "<?php echo isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
431
				releve.tagObs = <?php echo isset($_GET['projet']) ? "'".$_GET['projet']."' + releve.separationTagObs + releve.tagObs" : 'releve.tagObs'; ?>;
432
				// Précharger le formulaire avec les infos d'une observation
433
				releve.obsId = "<?php echo isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>";
434
				// URL du web service réalisant l'insertion des données dans la base du CEL.
435
				releve.serviceSaisieUrl = "<?php echo $url_ws_streets; ?>";
436
				// URL du web service permettant de récupérer les infos d'une observation du CEL.
437
				releve.serviceObsUrl = "<?php echo $url_ws_obs; ?>";
438
				// URL du web service permettant de récupérer les images d'une observation.
439
				releve.serviceObsImgs = "<?php echo $url_ws_cel_imgs; ?>";
440
				// URL du web service permettant de récupérer l'url d'une image (liée à une obs)'.
441
				releve.serviceObsImgUrl = "<?php echo $url_ws_cel_img_url; ?>";
442
 
443
				// langue
444
				releve.langue = "<?php echo $widget['langue']; ?>";
445
				// Squelette d'URL du web service de l'annuaire.
446
				releve.serviceAnnuaireIdUrl = "<?php echo $url_ws_annuaire; ?>";
447
				// mode : prod / beta / local
448
				releve.mode = "<?php echo $conf_mode; ?>";
449
				// URL de l'icône du chargement en cours d'une image
450
				releve.chargementImageIconeUrl = "<?php echo $url_base; ?>img/icones/chargement-image.gif";
451
				// URL de l'icône pour une photo manquante
452
				releve.pasDePhotoIconeUrl = "<?php echo $url_base; ?>img/icones/pasdephoto.png";
453
 
454
				// Code du référentiel utilisé pour les nom scientifiques.
455
				releve.nomSciReferentiel = "<?php echo strtolower( $widget['referentiel'] ); ?>";
456
				// Nombre d'élément dans les listes d'auto-complétion
457
				releve.autocompletionElementsNbre = 20;
458
				// Indication de la présence d'un référentiel imposé
459
				releve.referentielImpose = "<?php echo $referentiel_impose; ?>";
460
 
461
				// URL du web service permettant l'auto-complétion des noms scientifiques
462
				releve.serviceAutocompletionNomSciUrl = "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
463
					"masque={masque}&"+
464
					"recherche=etendue&"+
465
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
466
					"ns.structure=au&"+
467
					"navigation.limite=" + releve.autocompletionElementsNbre;
468
				// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
469
				releve.serviceAutocompletionNomSciUrlTpl = "<?php echo $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
470
					"masque={masque}&"+
471
					"recherche=etendue&"+
472
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
473
					"retour.tri=alpharet&"+ // tri "à la CeL"
474
					"ns.structure=au&"+
475
					"navigation.limite=" + releve.autocompletionElementsNbre;
476
				// Nombre d'observations max autorisé avant transmission
477
				releve.obsMaxNbre = 10;
478
				// Durée d'affichage en milliseconde des messages d'informations
479
				releve.dureeMessage = 10000;
480
 
481
				// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
482
				releve.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
483
				// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
484
				releve.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
485
 
486
				// Initialisation du bousin
487
				releve.init();
488
			});
489
		//]]>
490
	</script>
491
</div>