Subversion Repositories eFlore/Applications.cel

Rev

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

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