Subversion Repositories eFlore/Applications.cel

Rev

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