Subversion Repositories eFlore/Applications.cel

Rev

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