Subversion Repositories eFlore/Applications.cel

Rev

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

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