Subversion Repositories eFlore/Applications.cel

Rev

Rev 3324 | Go to most recent revision | Details | 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="commune-nom-arbres" name="commune-nom-arbres" class=""  value="" style="display:none">
222
								<input type="hidden" id="commune-insee-arbres" name="commune-insee-arbres" class=""  value="" style="display:none">
223
								<input type="hidden" id="altitude-arbres" name="altitude-arbres" class=""  value="" style="display:none">
224
								<input type="hidden" id="pays-arbres" name="pays-arbres" class=""  value="" style="display:none">
225
							</div>
226
							<div id="geoloc-arbres" class="col-sm-8">
227
								<span id="rue-error" class="error hidden"><?php echo $arbres['rue-erreur']; ?></span>
228
							</div>
229
						</div>
230
					</div>
231
				</form>
232
				<form id="form-upload" class="form-horizontal" action="<?php echo $url_ws_upload ?>" method="post" enctype="multipart/form-data">
233
					<div class="col-sm-8 mb-2 list-label and-help">
234
						<i class="fa fa-images" aria-hidden="true"></i>
235
						<?php echo $arbres['titre-photos']; ?>
236
					</div>
237
					<p id="miniature-arbres-info" class="col-sm-8">
238
						<?php echo $image['aide']; ?>
239
					</p>
240
					<div id ="photos-conteneur" class="control-group col-sm-8">
241
						<div id="bouton-fichier">
242
							<label for="fichier" class="label-file btn btn-large btn-info mb-3" title="<?php echo $image['photos-title']; ?>">
243
								<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
244
								<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
245
								<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
246
							</label>
247
						</div>
248
 
249
						<div id="miniatures"></div>
250
						<p class="miniature-msg" class="span12">&nbsp;</p>
251
					</div>
252
				</form>
253
				<form id="form-arbre-fs" role="form" autocomplete="off">
254
					<div class="control-group">
255
						<label for="circonference" class="col-sm-8 obligatoire">
256
							<i class="fa fa-circle-notch" aria-hidden="true"></i>
257
							<?php echo $arbres['circonference'] ;?>
258
						</label>
259
						<div class="col-sm-8 mb-3">
260
							<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>
261
						</div>
262
					</div>
263
					<div class="control-group">
264
						<label for="surface-pied" class="col-sm-8 obligatoire">
265
							<i class="fa fa-arrows-alt" aria-hidden="true"></i>
266
							<?php echo $arbres['surf-pied'] ;?>
267
						</label>
268
						<div class="col-sm-8 mb-3">
269
							<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>
270
						</div>
271
					</div>
272
					<div class="control-group">
273
						<label for="equipement-pied-arbre" class="col-sm-8 obligatoire">
274
							<i class="fa fa-dot-circle" aria-hidden="true"></i>
275
							<?php echo $arbres['eqt-pied-arbre'] ;?>
276
						</label>
277
						<div class="col-sm-8 mb-3">
278
							<div class="select-wrapper add-field-select">
279
								<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>
280
									<option class="choisir" selected value="" data-name="equipement-pied-arbre" hidden><?php echo $general['choisir']; ?></option>
281
									<option value="plaque de metal" data-name="equipement-pied-arbre"><?php echo $arbres['palque-metal']; ?></option>
282
									<option value="grille" data-name="equipement-pied-arbre"><?php echo $arbres['grille']; ?></option>
283
									<option value="ciment" data-name="equipement-pied-arbre"><?php echo $arbres['ciment']; ?></option>
284
									<option value="gomme" data-name="equipement-pied-arbre"><?php echo $arbres['gomme']; ?></option>
285
									<option value="absent" data-name="equipement-pied-arbre"><?php echo $arbres['absent']; ?></option>
286
									<option class="other form-control is-select" value="other" data-name="equipement-pied-arbre" data-element="select"><?php echo $general['autre']; ?></option>
287
								</select>
288
							</div>
289
							<span class="error hidden"><?php echo $general['champ-obligatoire']; ?></span>
290
						</div>
291
					</div>
292
					<div class="">
293
						<label for="tassement" class="col-sm-8">
294
							<i class="fas fa-sort-amount-down" aria-hidden="true"></i>
295
							<?php echo $arbres['tassement'] ;?>
296
						</label>
297
						<div class="col-sm-8 mb-3">
298
							<select id="tassement" name="tassement" class="tassement form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $arbres['tassement-title'] ;?>">
299
								<option class="choisir" selected value="" hidden><?php echo $general['choisir']; ?></option>
300
								<option value="dur"><?php echo $arbres['dur']; ?></option>
301
								<option value="normal"><?php echo $arbres['normal']; ?></option>
302
								<option value="mou"><?php echo $arbres['mou']; ?></option>
303
							</select>
304
						</div>
305
					</div>
306
					<div class="">
307
						<div class="col-sm-8 mb-2 list-label">
308
							<i class="fa fa-dog" aria-hidden="true"></i>
309
							<?php echo $arbres['dejections']; ?>
310
						</div>
311
						<div id="dejections" class="col-sm-8 mb-3 list">
312
							<div class="form-check form-check-inline">
313
								<input type="radio" id="dejections-oui" name="dejections" class="dejections-oui form-check-input" value="true">
314
								<label for="dejections-oui" class="dejections-oui form-check-label"><?php echo $general['oui']; ?></label>
315
							</div>
316
							<div class="form-check form-check-inline">
317
								<input type="radio" id="dejections-non" name="dejections" class="dejections-non form-check-input" value="false">
318
								<label for="dejections-non" class="dejections-non form-check-label"><?php echo $general['non']; ?></label>
319
							</div>
320
						</div>
321
					</div>
322
 
323
					<div class="">
324
						<label for="com-arbres" class="col-sm-8" title="">
325
								<i class="fa fa-pen" aria-hidden="true"></i>
326
								<?php echo $general['commentaires']; ?>
327
						</label>
328
						<div class="col-sm-8 mb-3">
329
								<textarea id="com-arbres" class="col-md-12" rows="7" name="com-arbres"></textarea>
330
						</div>
331
					</div>
332
				</form>
333
 
334
				<!-- Bouton création d'une obs et retour à la saisie après visualisation d'un arbre-->
335
				<div class="col-sm-8 mb-3">
336
					<button id="retour" class="btn btn-info has-tooltip hidden" data-toggle="tooltip" title="<?php echo $resume['retour-title']; ?>">
337
						<i class="fas fa-undo-alt"></i> <?php echo $general['retour']; ?>
338
					</button>
339
					<button id="ajouter-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" title="<?php echo $resume['creer-title']; ?>">
340
						<i class="fas fa-step-forward"></i> <?php echo $general['suivant']; ?>
341
					</button>
342
				</div>
343
			</div>
344
		</div><!-- fin formulaire arbres -->
345
		<!-- zone résumé obs arbres ( =zone de droite) -->
346
		<div id="boc-arbres-droite" class="col-md-6 mb-3">
347
			<!-- Messages d'erreur du formulaire -->
348
			<div class="row">
349
				<div class="zone-alerte">
350
					<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
351
						<a class="close">×</a>
352
						<h4 class="alert-heading"><?php echo $resume['alert10max']; ?></h4>
353
						<p><?php echo $resume['alert10max-desc']; ?></p>
354
					</div>
355
				</div>
356
				<div class="zone-alerte">
357
					<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
358
						<a class="close">×</a>
359
						<h4 class="alert-heading"><?php echo $resume['alertchp']; ?></h4>
360
						<p><?php echo $resume['alertchp-desc']; ?></p>
361
					</div>
362
				</div>
363
			</div>
364
 
365
			<!-- Affiche le tableau récapitualif des observations ajoutées -->
366
			<div id="zone-liste-obs" class="hidden">
367
				<div id="bloc-controle-liste-obs" class="alert alert-info">
368
					<h2 class="transmission-title"><strong><?php echo $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
369
					<button id="transmettre-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" disabled="disabled"
370
						title="<?php echo $resume['trans-title']; ?>" type="button">
371
						<?php echo $general['enregistrer']; ?>
372
					</button>
373
				</div>
374
				<div id="liste-obs" ></div>
375
				<div class="row">
376
					<div class="zone-alerte">
377
						<div id="dialogue-zero-obs" class="alert alert-block hidden">
378
							<a class="close">×</a>
379
							<h4 class="alert-heading"><?php echo $resume['alert0obs']; ?></h4>
380
							<p><?php echo $resume['alert0obs-desc']; ?></p>
381
						</div>
382
						<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
383
							<a class="close">×</a>
384
							<h4 class="alert-heading"><?php echo $resume['info-trans']; ?></h4>
385
							<div class="alert-txt"></div>
386
						</div>
387
						<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
388
							<a class="close">×</a>
389
							<h4 class="alert-heading"><?php echo $resume['alerttrans']; ?></h4>
390
							<div class="alert-txt"></div>
391
						</div>
392
					</div>
393
				</div>
394
			</div>
395
 
396
			<!-- Fenêtres modales -->
397
			<div id="chargement" class="modal-fenetre hidden">
398
				<div id="chargement-centrage" class="modal-contenu">
399
					<div class="progress progress-striped active">
400
						<div id="barre-progression-upload" class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
401
								<span class="sr-only">0/10 <?php echo $resume['nbobs']; ?></span>
402
							</div>
403
					</div>
404
					<p id="chargement-txt">
405
						<?php echo $resume['transencours']; ?>
406
					</p>
407
				</div>
408
			</div>
409
 
410
			<!-- Templates HTML -->
411
			<div id="tpl-transmission-ok" class="hidden">
412
				<p class="msg"><?php echo $resume['transok']; ?></p>
413
			</div>
414
			<div id="tpl-transmission-ko" class="hidden">
415
				<p class="msg"><?php echo $resume['transko']; ?></p>
416
			</div>
417
		</div><!-- fin arbres zone résumé obs ( =zone de droite ) -->
418
	</div>
419
	<!-- Connexion, bloc de prévisualisation, date -->
420
	<script type="text/javascript">
421
		//<![CDATA[
422
			$( document ).ready( function() {
423
				plantes = null;
424
				releve = null;
425
				// OMG un modèle objet !!
426
				releve = new ReleveStreets();
427
 
428
				// La présence du parametre 'debug' dans l'URL enclenche le débogage
429
				releve.debug = <?php echo isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
430
				// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
431
				releve.html5 = <?php echo isset($_GET['html5']) ? 'true' : 'false'; ?>;
432
				// Mot-clé du widget/projet
433
				releve.tagProjet = "WidgetStreets";
434
				// Mots-clés à ajouter aux images
435
				releve.tagImg = "<?php echo isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
436
				releve.separationTagImg = "<?php echo isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
437
				releve.tagImg = <?php echo isset($_GET['motcle']) ? "'".$_GET['motcle']."' + releve.separationTagImg + releve.tagImg" : 'releve.tagImg'; ?>;
438
				// Mots-clés à ajouter aux observations
439
				releve.tagObs = "<?php echo isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
440
				releve.separationTagObs = "<?php echo isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
441
				releve.tagObs = <?php echo isset($_GET['projet']) ? "'".$_GET['projet']."' + releve.separationTagObs + releve.tagObs" : 'releve.tagObs'; ?>;
442
				// Précharger le formulaire avec les infos d'une observation
443
				releve.obsId = "<?php echo isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>";
444
				// URL du web service réalisant l'insertion des données dans la base du CEL.
445
				releve.serviceSaisieUrl = "<?php echo $url_ws_streets; ?>";
446
				// URL du web service permettant de récupérer les infos d'une observation du CEL.
447
				releve.serviceObsUrl = "<?php echo $url_ws_obs; ?>";
448
				// URL du web service permettant de récupérer les images d'une observation.
449
				releve.serviceObsImgs = "<?php echo $url_ws_cel_imgs; ?>";
450
				// URL du web service permettant de récupérer l'url d'une image (liée à une obs)'.
451
				releve.serviceObsImgUrl = "<?php echo $url_ws_cel_img_url; ?>";
452
 
453
				// langue
454
				releve.langue = "<?php echo $widget['langue']; ?>";
455
				// Squelette d'URL du web service de l'annuaire.
456
				releve.serviceAnnuaireIdUrl = "<?php echo $url_ws_annuaire; ?>";
457
				// mode : prod / beta / local
458
				releve.mode = "<?php echo $conf_mode; ?>";
459
				// URL de l'icône du chargement en cours d'une image
460
				releve.chargementImageIconeUrl = "<?php echo $url_base; ?>img/icones/chargement-image.gif";
461
				// URL de l'icône pour une photo manquante
462
				releve.pasDePhotoIconeUrl = "<?php echo $url_base; ?>img/icones/pasdephoto.png";
463
 
464
				// Code du référentiel utilisé pour les nom scientifiques.
465
				releve.nomSciReferentiel = "<?php echo strtolower( $widget['referentiel'] ); ?>";
466
				// Nombre d'élément dans les listes d'auto-complétion
467
				releve.autocompletionElementsNbre = 20;
468
				// Indication de la présence d'un référentiel imposé
469
				releve.referentielImpose = "<?php echo $referentiel_impose; ?>";
470
 
471
				// URL du web service permettant l'auto-complétion des noms scientifiques
472
				releve.serviceAutocompletionNomSciUrl = "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
473
					"masque={masque}&"+
474
					"recherche=etendue&"+
475
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
476
					"ns.structure=au&"+
477
					"navigation.limite=" + releve.autocompletionElementsNbre;
478
				// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
479
				releve.serviceAutocompletionNomSciUrlTpl = "<?php echo $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
480
					"masque={masque}&"+
481
					"recherche=etendue&"+
482
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
483
					"retour.tri=alpharet&"+ // tri "à la CeL"
484
					"ns.structure=au&"+
485
					"navigation.limite=" + releve.autocompletionElementsNbre;
486
				// Nombre d'observations max autorisé avant transmission
487
				releve.obsMaxNbre = 10;
488
				// Durée d'affichage en milliseconde des messages d'informations
489
				releve.dureeMessage = 10000;
490
 
491
				// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
492
				releve.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
493
				// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
494
				releve.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
495
 
496
				// Initialisation du bousin
497
				releve.init();
498
			});
499
		//]]>
500
	</script>
501
</div>