Subversion Repositories eFlore/Applications.cel

Rev

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

Rev Author Line No. Line
3638 delphine 1
<!DOCTYPE html>
2
<html xmlns="https://www.w3.org/1999/xhtml">
3
	<head>
4
		<title><?php echo strip_tags( $widget['titre'] ); ?></title>
5
 
6
		<meta charset="utf-8" />
7
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
		<meta http-equiv="Content-style-type" content="text/css" />
9
		<meta http-equiv="Content-script-type" content="text/javascript" />
10
		<meta http-equiv="Content-language" content="fr" />
11
 
12
		<meta name="revisit-after" content="15 days" />
13
		<meta name="robots" content="index,follow" />
14
		<meta name="author" content="Tela Botanica" />
15
		<meta name="keywords" content="Tela Botanica, CEL" />
16
		<meta name="description" content="Widgets de saisie du carnet en ligne" />
17
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
18
 
19
		<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
20
		<meta property="og:type" content="website" />
21
		<meta property="og:title" content="Widgets de saisie du CeL" />
22
		<meta property="og:site_name" content="Tela Botanica" />
23
		<meta property="og:description" content="Widgets de saisie du Carnet en Ligne" />
24
		<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
25
		<meta property="og:image:type" content="image/png" />
26
		<meta property="og:image:width" content="256" />
27
		<meta property="og:image:height" content="256" />
28
		<meta property="og:locale" content="fr_FR" />
29
 
30
		<!-- Favicone -->
31
		<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
32
		<!-- Jquery-ui custom css-->
33
		<link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen" />
34
		<!-- Bootstrap CSS -->
35
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
36
		<!-- Fontawesome -->
37
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
38
		<!-- Carto -->
3844 idir 39
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="anonymous">
40
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css" integrity="sha512-gc3xjCmIy673V6MyOAZhIW93xhM9ei1I+gLbmFjUHIjocENRsLX/QUE1htk5q1XV2D/iie/VQ8DXI6Vu8bexvQ==" crossorigin="anonymous">
41
		<link rel="stylesheet" href="<?php echo $url_base;?>js/tb-geoloc/css/leaflet-gesture-handling.min.css" type="text/css">
42
		<link rel="stylesheet" href="<?php echo $url_base;?>js/tb-geoloc/css/geoloc.css" type="text/css">
3638 delphine 43
		<!-- STYLE SAISIE -->
44
		<link href="<?php echo $url_base; ?>css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
45
		<link href="<?php echo $url_base; ?>css/saisieSpe.css" rel="stylesheet" type="text/css" media="screen" />
46
 
47
		<!--  Google Analytics -->
48
		<?php if( $prod ): ?>
49
			<?php include "analytics.html"; ?>
50
		<?php endif; ?>
51
		<!-- <link rel="icon" type="image/x-icon" href="favicon.ico" /> -->
52
		<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
53
		<style>
3710 idir 54
			:not(.miniature).loading::after {
3638 delphine 55
				content:'';
56
				display: inline-block;
57
				background-image: url("<?php echo $url_base; ?>img/icones/chargement-image.gif");
58
				background-size: 1rem;
59
				height: 1rem;
60
				width: 1rem;
61
			}
62
		</style>
63
	</head>
64
 
65
	<body id="top" data-sq="<?php echo $url_base; ?>" data-type-loc="<?php echo $widget['type_localisation'];?>">
66
		<?php
67
			echo ( $widget['image_fond'] ) ? '<div id="image-fond" style="' . htmlspecialchars( 'background:url("' . $widget['chemin_fichiers'] . 'image_fond.' . preg_replace( '/(?:imag)?e\/?/','',$widget['image_fond']) . '") no-repeat center center;background-size:cover') . '"></div>': '';
68
		?>
69
		<div id="zone-appli" class="container" data-projet="<?php echo $widget['projet']; ?>" data-url-fichiers="<?php echo $widget['chemin_fichiers']; ?>">
70
			<div class="layout-wrapper page">
71
				<div class="row mb-3">
72
					<div class="col-md-2 col-sm-10">
73
						<img id="logo" class="mr-3" src="<?php echo htmlspecialchars( $widget['chemin_fichiers'] . 'logo.' . preg_replace( '/(?:imag)?e\/?/','', $widget['logo'] ) ); ?>" alt="logo <?php echo $widget['projet']; ?>" />
74
					</div>
75
					<div class="col-md-10 col-sm-12">
76
						<h1 id="titre-projet" class="mt-0"><?php echo ( $widget['info'] ) ? $widget['titre'] . ' <div id="info-button" class="btn btn-outline-info btn-sm border-0" data-mime-info="' . $widget['info'] . '"><i class="fas fa-info-circle"></i></div>' : $widget['titre']; ?></h1>
77
					</div>
78
				</div>
79
 
80
				<div class="row mb-3">
81
					<div class="col-md-6">
82
						<div id="description"><?php echo $widget['description']; ?></div>
83
					</div>
84
					<div class="col-md-6">
85
						<div id="aide" class="well well-lg hidden-sm-down">
86
							<h3><?php echo $aide['titre']; ?></h3>
87
							<div id="aide-txt" class="hiden-sm-down">
88
								<p><?php echo $aide['description']; ?></p>
89
							</div>
90
						</div>
91
					</div>
92
				</div>
93
 
94
				<div id="formulaire" class="row mb-3 bloc-top">
95
					<form id="form-observateur" role="form" autocomplete="on">
96
						<h2><?php echo $observateur['titre']; ?></h2>
97
						<div id="tb-observateur">
98
							<div class="navbar-default mb-3" id="tb-navbar">
99
								<div class="nav navbar-nav navbar-right row control-group">
100
									<div id="bouton-connexion" class="volet col-md-6 col-sm-8">
101
										<label for="bouton-connexion"><?php echo $observateur['compte']; ?></label>
102
										<a id="connexion" href="<?php echo $authTpl; ?>" class="btn btn-success  mr-1 mb-1" target="_blank"><?php echo $observateur['connexion']; ?></a>
103
										<a id="inscription" href="" class="btn btn-primary mr-1 mb-1" target="_blank"><?php echo $observateur['inscription']; ?></a>
104
									</div>
105
									<div id="creation-compte" class="volet col-md-6 col-sm-8">
106
										<label for="creation-compte"><?php echo $observateur['noninscription']; ?></label>
107
										<a id="bouton-anonyme" href="" class="btn btn-info mr-1 mb-1"><?php echo $observateur['nonconnexion']; ?></a>
108
									</div>
109
									<div id="utilisateur-connecte" class="volet hidden">
110
										<label for="utilisateur-connecte"><?php echo $observateur['bienvenue']; ?></label>
111
										<a href="" class="list-tool btn btn-large btn-primary volet-toggle" data-toggle="volet">
112
											<span id="nom-complet"></span> <!-- <i class="fas fa-caret-down"></i> -->
113
										</a>
114
										<div class="volet-menu hidden">
115
											<div id="profil-utilisateur">
116
												<a href="" target="_blank"><?php echo $observateur['profil']; ?></a>
117
											</div>
118
											<div id="deconnexion"><a href=""><?php echo $observateur['deconnexion']; ?></a></div>
119
										</div>
120
									</div>
121
								</div>
122
							</div>
123
						</div>
124
 
125
						<div id="identite" class="mb-3 hidden">
126
							<p id="bienvenue" class=" col-md-6 hidden font-weight-bold">
127
								Bonjour<span id="bienvenue-prenom"></span><span id="bienvenue-nom"></span>!
128
							</p>
129
							<div id="zone-courriel" class="row">
130
								<div class="control-group col-md-6">
131
									<label for="courriel" class="col-sm-8 obligatoire" title="<?php echo $observateur['courriel-title']; ?>">
132
										<i class="fa fa-envelope" aria-hidden="true"></i>
133
										<?php echo $observateur['courriel']; ?>
134
									</label>
135
									<div class="col-sm-8 mb-3">
136
										<input id="courriel" name="courriel" class="form-control" type="email" title="<?php echo $observateur['courriel-title']; ?> ">
137
										<input id="id_utilisateur" name="id_utilisateur" type="hidden">
138
									</div>
139
								</div>
140
 
141
								<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
142
									<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="<?php echo $observateur['courriel-confirmation-title']; ?>">
143
										<i class="fa fa-envelope" aria-hidden="true"></i>
144
										<?php echo $observateur['courriel-confirmation']; ?>
145
									</label>
146
									<div class="col-sm-8">
147
										<input id="courriel_confirmation" name="courriel_confirmation" class="form-control" type="email">
148
									</div>
149
								</div>
150
							</div>
151
 
152
							<div id="zone-prenom-nom" class="row hidden">
153
								<div class="control-group col-md-6">
154
									<label for="prenom" class="col-sm-8">
155
										<i class="fa fa-user" aria-hidden="true"></i>
156
										<?php echo $observateur['prenom']; ?>
157
									</label>
158
									<div class="input-group col-sm-8">
159
										<input id="prenom" name="prenom" class="form-control" type="text">
160
									</div>
161
								</div>
162
								<div class="control-group col-md-6">
163
									<label for="nom" class="col-sm-8">
164
										<i class="fa fa-user" aria-hidden="true"></i>
165
										<?php echo $observateur['nom']; ?>
166
									</label>
167
									<div class="input-group col-sm-8">
168
										<input id="nom" name="nom" class="form-control" type="text">
169
									</div>
170
								</div>
171
							</div>
172
						</div>
173
					</form>
174
 
175
					<!-- Messages d'erreur du formulaire-->
176
					<div class="zone-alerte">
177
						<div id="dialogue-bloquer-copier-coller" class="alert alert-info alert-block hidden">
178
							<a class="close">×</a>
179
							<h4 class="alert-heading"><?php echo $observateur['alertcc-title']; ?></h4>
180
							<p><?php echo $observateur['alertcc']; ?></p>
181
						</div>
182
						<div id="dialogue-utilisateur-non-identifie" class="alert alert-warning alert-block hidden">
183
							<a class="close">×</a>
184
							<h4 class="alert-heading"><?php echo $observateur['alertni-title']; ?></h4>
185
							<p><?php echo $observateur['alertni']; ?></p>
186
						</div>
187
					</div>
188
 
189
					<form id="form-observation" role="form" autocomplete="on" class="bloc-top">
190
						<h2><?php echo $observation['titre']; ?></h2>
191
						<div id="zone-observation" class="row">
192
							<div class="col-md-6">
193
 
194
								<div class="mb-3">
3844 idir 195
									<label  id="geoloc-label" for="geolocalisation" class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observation['geoloc-title']; ?>">
3638 delphine 196
										<i class="fa fa-street-view" aria-hidden="true"></i>
197
										<?php echo $observation['geolocalisation']; ?>
198
									</label>
3813 idir 199
									<?php if( $widget['type_localisation'] === 'rue' ) : ?>
200
										<div class="aide-txt">
201
											<p><?php echo $observation['info-saisie-rue']; ?></p>
202
										</div>
203
									<?php endif; ?>
3638 delphine 204
									<div class="control-group">
205
										<div id="geoloc-datas">
206
											<input type="hidden" id="pays" name="pays" value="" style="display:none">
207
											<input type="hidden" id="commune-nom" name="commune-nom" value="" style="display:none">
208
											<input type="hidden" id="geometry" name="geometry" value="" style="display:none">
3844 idir 209
											<!-- <input type="text" id="latitude" name="latitude" value="<?php //echo $widget['localisation']['latitude'] ?? '';?>">
210
											<input type="text" id="longitude" name="longitude" value="<?php //echo $widget['localisation']['longitude'] ?? '';?>"> -->
3638 delphine 211
											<input type="hidden" id="altitude" name="altitude" value="" style="display:none">
212
											<input type="hidden" id="commune-insee" name="commune-insee" value="" style="display:none">
213
											<input type="hidden" id="coord-lineaire" name="coord-lineaire" value="" style="display:none">
214
										</div>
215
										<div id="geoloc" class="col-sm-12">
3844 idir 216
											<script type="text/javascript">
217
												const URL_GEOLOC_SERVICE = "<?php echo $url_ws_geoloc;?>";
218
												const URL_BASE = "<?php echo $url_base;?>";
219
											</script>
220
 
221
											<div id="tb-places-zone" class="flex hidden">
222
												<div class="form-col search-container">
223
													<label for="tb-places" >Trouver un lieu</label>
224
													<div class="input-search-container">
225
														<input id="tb-places" class="tb-places" type="search" name="tb-places" placeholder="Recherchez une adresse ici" autocomplete="off">
226
														<div class="tb-places-search-icon"></div>
227
														<button class="tb-places-close hidden"></button>
228
													</div>
229
													<div class="tb-places-results-container hidden">
230
														<ul class="tb-places-results"></ul>
231
													</div>
232
												</div>
233
											</div>
234
 
235
											<div id="map-container">
236
												<div
237
													id="tb-geolocation"
238
													style="height: 400px;width: 100%"
239
													data-type-localisation="<?php echo $widget['type_localisation'] ?? '';?>"
240
													data-zoom="<?php echo $widget['localisation']['zoom'] ?? '5';?>"
241
													data-layer="osm"
242
													data-form-suffix=""
243
													>
244
												</div>
245
											</div>
3638 delphine 246
										</div>
247
									</div>
248
								</div>
249
 
3844 idir 250
								<div id="coord" class="control-group">
251
									<label for="latitude" class="col-sm-8">
252
										<i class="fa fa-globe" aria-hidden="true"></i>
253
										<?php echo $observation['latitude']; ?>
254
									</label>
255
									<div class="col-sm-8 mb-3">
256
										<input type="text" id="latitude" name="latitude" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $observation['latitude']; ?>" value="<?php echo $widget['localisation']['latitude'] ?? '';?>">
257
									</div>
258
									<label for="longitude" class="col-sm-8">
259
										<i class="fa fa-globe" aria-hidden="true"></i>
260
										<?php echo $observation['longitude']; ?>
261
									</label>
262
									<div class="col-sm-8 mb-3">
263
										<input type="text" id="longitude" name="longitude" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $observation['longitude']; ?>" value="<?php echo $widget['localisation']['longitude'] ?? '';?>">
264
									</div>
265
								</div>
266
 
3638 delphine 267
								<div class="control-group">
268
									<label for="lieudit" class="col-sm-8">
269
										<i class="fa fa-map-signs" aria-hidden="true"></i>
270
										<?php echo $observation['lieudit']; ?>
271
									</label>
272
									<div class="col-sm-8 mb-3">
273
										<input type="text" id="lieudit" name="lieudit" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $observation['lieudit-title']; ?>">
274
									</div>
275
								</div>
276
								<div class="control-group">
277
									<label for="station" class="col-sm-8">
278
										<i class="fa fa-map-marker" aria-hidden="true"></i>
279
										<?php echo $observation['station']; ?>
280
									</label>
281
									<div class="col-sm-8 mb-3">
282
										<input type="text" id="station" name="station" class="form-control has-tooltip" data-toggle="tooltip" data-placement="bottom"title="<?php echo $observation['station-title']; ?>">
283
									</div>
284
								</div>
285
 
286
							</div>
287
 
288
							<div class="col-md-6">
289
 
290
								<div class="control-group">
291
									<label for="date_releve" class="col-sm-8 obligatoire">
292
										<i class="fa fa-calendar" aria-hidden="true"></i>
293
										<?php echo $observation['date']; ?>
294
									</label>
295
									<div class="col-sm-8 mb-3 has-tooltip" data-toggle="tooltip" title="<?php echo $observation['date-title']; ?>">
296
										<input type="date" id="date_releve" name="date_releve" class="form-control" max="<?php echo date('Y-m-d', time()); ?>" placeholder="jj/mm/aaaa" required>
297
									</div>
298
								</div>
299
 
300
								<?php if( ( $widget['type_especes'] === 'referentiel' || empty( $widget['type_especes'] ) ) && empty( $widget['referentiel'] ) ) : ?>
301
									<div class="control-group">
302
										<label for="referentiel" class="col-sm-8 obligatoire">
303
											<i class="fa fa-book" aria-hidden="true"></i>
304
											<?php echo $observation['referentiel']; ?>
305
										</label>
306
										<div class="col-sm-8 mb-3">
307
											<select id="referentiel" class="form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $observation['referentiel-title']; ?>">
308
												<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
3802 delphine 309
												<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine et régions avoisinantes">Métropole (index réduit)</option>
3638 delphine 310
												<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
311
												<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
312
												<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
313
												<option value="aublet" title="Guyane">Guyane (AUBLET2)</option>
314
												<option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)</option>
315
												<option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)</option>
316
												<option value="apd" title="Afrique de l'Ouest et du Centre">Afrique de l'Ouest et du Centre (APD)</option>
317
												<option value="lbf" title="Liban">Liban (LBF)</option>
3802 delphine 318
												<option value="taxreflich" title="Lichens de France">Lichens (TaxRef)</option>
319
												<option value="taxref" title="Flore de France métropolitaine et outre-mer">France (TaxRef)</option>
3638 delphine 320
												<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
321
											</select>
322
										</div>
323
									</div>
324
								<?php else : ?>
325
									<input id="referentiel" name="referentiel" value="<?php echo $widget['referentiel']; ?>" type="hidden">
326
								<?php endif; ?>
327
 
328
								<div id="bloc-taxon" class="control-group">
329
									<?php $isTaxonListe = ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) ;?>
330
									<label <?php echo ( !$isTaxonListe ) ? 'id="taxon-autocomplete-label" for="taxon"' : 'for="taxon-liste"';?> class="col-sm-8">
331
										<i class="fa fa-leaf" aria-hidden="true"></i>
332
										<?php echo $observation['espece']; ?><?php if ( !empty( $widget['referentiel'] ) ) echo " (" . $widget['referentiel'] . ")"; ?>
333
									</label>
334
									<div class="col-sm-8 mb-3">
335
										<?php if ( $widget['type_especes'] === 'fixe' || $widget['especes']['espece_imposee'] ) : ?>
336
													<input id="taxon" name="taxon" type="text" class="form-control taxon-validation" title="" value="<?php echo $widget['especes']['nom_sci_espece_defaut']; ?>"/>
337
												</div>
338
											</div>
339
 
340
										<?php elseif ( $isTaxonListe ) : ?>
341
											<?php ksort( $widget['especes']['taxons'] ); ?>
342
													<select id="taxon-liste" name="taxon-liste" class="form-control custom-select taxon-validation has-tooltip" data-toggle="tooltip" title="<?php echo $observation['liste-espece-title']; ?>">
343
														<option class="choisir"  value="inconnue" selected hidden><?php echo $general['choisir']; ?></option>
344
														<?php foreach ($widget['especes']['taxons'] as $taxon)  : ?>
345
															<option
346
																class="nom-sci"
347
																value="<?php echo $taxon['nom_sel'];?>"
348
																title="<?php echo $taxon['nom_fr'];?>"
349
																data-num-nom-sel="<?php echo $taxon['num_nom_sel'];?>"
350
																data-nom-ret="<?php echo $taxon['nom_ret'];?>"
351
																data-num-nom-ret="<?php echo $taxon['num_nom_ret'];?>"
352
																data-nt="<?php echo $taxon['num_taxon'];?>"
353
																data-famille="<?php echo $taxon['famille'];?>"
354
															><?php echo $taxon['nom_sel'];?></option>
355
														<?php endforeach; ?>
356
														<option value="autre"><?php echo $observation['autre-espece']; ?></option>
357
													</select>
358
													<span for="taxon-liste" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
359
													<input id="taxon" name="taxon" class="form-control" type="hidden" />
360
												</div>
361
											</div>
362
											<div id="taxon-input-groupe" class="control-group hidden">
363
												<label id="taxon-autocomplete-label" for="taxon-autre" class="col-sm-8" title="">
364
													<i class="fab fa-pagelines" aria-hidden="true"></i>
365
													<?php echo $observation['autre-espece']; ?>
366
												</label>
367
												<div class="col-sm-8 mb-3">
368
													<input id="taxon-autre" name="taxon-autre" class="form-control has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $observation['espece-title']; ?>">
369
												</div>
370
											</div>
371
										<?php else : ?>
372
													<input id="taxon" name="taxon" class="form-control taxon-validation has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $observation['espece-title']; ?>">
373
													<span for="taxon" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
374
												</div>
375
											</div>
376
										<?php endif; ?>
377
 
378
								<div class="control-group">
379
									<label for="certitude" class="col-sm-8 obligatoire">
380
										<i class="fa fa-question" aria-hidden="true"></i>
381
										<?php echo $observation['certitude']; ?>
382
									</label>
383
									<div class="col-sm-8 mb-3">
384
										<select id="certitude" name="certitude" class="form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $observation['certitude-title']; ?>">
385
											<option class="aDeterminer" value="à determiner" ><?php echo $observation['certADet']; ?></option>
3815 delphine 386
											<option class="douteux" value="douteux" selected="selected" ><?php echo $observation['certDout']; ?></option>
387
											<option class="certain" value="certain" ><?php echo $observation['certCert']; ?></option>
3638 delphine 388
										</select>
389
									</div>
390
								</div>
391
								<!-- choix du (des) milieu(x) -->
392
								<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
393
									<?php if ( in_array('multimilieux', $widget['milieux'] ) ) :?>
394
										<div class="multiselect list-checkbox">
395
											<label class="col-sm-8" title="<?php echo $chpsupp['select-checkboxes-texte'];?>">
396
												<i class="fa fa-street-view" aria-hidden="true"></i>
397
												<?php echo $observation['milieu']; ?>
398
											</label>
399
											<div class="control-group col-sm-8 mb-3 has-tooltip" data-toggle="tooltip" title="<?php echo $observation['liste-milieu-title']; ?>">
400
												<div class="selectBox">
401
													<select class="form-control list-checkbox custom-select" id="list-checkbox-milieu">
402
														<option><?php echo $chpsupp['select-checkboxes-texte'];?></option>
403
													</select>
404
													<div class="overSelect"></div>
405
												</div>
406
												<div class="checkboxes hidden" data-name="milieu">
407
													<?php foreach ( $widget['milieux'] as $milieu ) :?>
408
														<?php if ( 'autre' !== strtolower( $milieu ) && 'multimilieux' !== strtolower( $milieu ) ) :?>
409
															<label for="<?php echo strtolower( $milieu );?>">
410
																<input type="checkbox" id="<?php echo strtolower( $milieu );?>" name="milieu" value="<?php echo $milieu;?>" class="<?php echo strtolower( $milieu );?> milieu" data-label="<?php echo $observation['milieu']; ?>" data-name="milieu">
411
																<?php echo $milieu;?>
412
															</label>
413
														<?php endif; ?>
414
													<?php endforeach; ?>
415
													<?php if ( in_array('autre', $widget['milieux'] ) ) :?>
416
														<label for="other-milieu">
417
															<input type="checkbox" id="other-milieu" name="milieu" value="other" class="other milieu" data-label="<?php echo $observation['milieu']; ?>" data-element="checkboxes" data-name="milieu">
418
															Autre
419
														</label>
420
													<?php endif; ?>
421
												</div>
422
											</div>
423
										</div>
424
									<?php else : ?>
425
										<div class="">
426
											<label for="milieu" class="col-sm-8">
427
												<i class="fa fa-street-view" aria-hidden="true"></i>
428
												<?php echo $observation['milieu']; ?>
429
											</label>
430
											<div class="col-sm-8 mb-3">
431
												<div class="select-wrapper add-field-select">
432
													<select id="milieu" class="form-control milieu select custom-select has-tooltip mb-2" data-toggle="tooltip" title="<?php echo $observation['liste-milieu-title']; ?>" data-name="milieu" data-label="milieu">
433
														<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
434
														<?php foreach ( $widget['milieux'] as $milieu ) :?>
435
															<?php if ( 'autre' !== strtolower( $milieu ) && 'multimilieux' !== strtolower( $milieu ) ) :?>
436
																<option value="<?php echo $milieu; ?>" data-name="milieu"><?php echo $milieu; ?></option>
437
															<?php endif; ?>
438
														<?php endforeach; ?>
439
														<?php if ( in_array('autre', $widget['milieux'] ) ) :?>
440
															<option id="other-milieu" class="other form-control is-select" value="other" data-element="select" data-name="milieu"><?php echo $milieu; ?></option>
441
														<?php endif; ?>
442
													</select>
443
												</div>
444
											</div>
445
										</div>
446
									<?php endif; ?>
447
								<?php else : ?>
448
									<div class="">
449
										<label for="milieu" class="col-sm-8">
450
											<i class="fa fa-street-view" aria-hidden="true"></i>
451
											<?php echo $observation['milieu']; ?>
452
										</label>
453
										<div class="col-sm-8 mb-3">
454
											<input id="milieu" name="milieu" class="form-control has-tooltip" data-toggle="tooltip" type="text" placeholder="<?php echo $observation['milieu-ph']; ?>" title="<?php echo $observation['milieu-title']; ?>">
455
										</div>
456
									</div>
457
								<?php endif; ?><!-- fin choix milieu(x) -->
458
								<div class="">
459
									<label for="notes" class="col-sm-8">
460
										<i class="fa fa-pen" aria-hidden="true"></i>
461
										<?php echo $observation['notes']; ?>
462
									</label>
463
									<div class="col-sm-8 mb-3">
464
										<textarea id="notes" form="form-observation" class="col-md-12 has-tooltip" data-toggle="tooltip" rows="7" name="notes" placeholder="<?php echo $observation['notes_ph']; ?>" title="<?php echo $observation['notes-title']; ?>"></textarea>
465
									</div>
466
								</div>
467
 
468
							</div>
469
						</div>
470
					</form>
471
 
472
					<!-- Messages d'erreur du formulaire-->
473
					<div class="zone-alerte">
474
						<div id="dialogue-geoloc-ko" class="alert alert-warning alert-block hidden">
475
							<a class="close">×</a>
476
							<h4 class="alert-heading"><?php echo $observation['alertgk-title']; ?></h4>
477
							<p><?php echo $observation['alertgk']; ?></p>
478
						</div>
479
						<div id="dialogue-taxon-or-image" class="alert alert-warning alert-block hidden">
480
							<a class="close">×</a>
481
							<h4 class="alert-heading"><?php echo $observation['alert-img-tax-title']; ?></h4>
482
							<p><?php echo $observation['alert-img-tax']; ?></p>
483
						</div>
484
					</div>
485
 
486
					<!-- Champs supplémentaires -->
487
					<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
488
						<form id="form-supp"  class="bloc-top" role="form" autocomplete="on">
489
							<h2><?php echo $chpsupp['titre']; ?></h2>
490
							<div id="zone-supp" class="row">
491
 
492
								<?php foreach( $widget['chpSupp'][ $widget['projet'] ]['champs-supp'] as $champ ) : ?>
493
									<?php
494
										$min         = ( isset( $champ['fieldValues']['min'] ) )? ' min="' . $champ['fieldValues']['min'] . '"':'';
495
										$max         = ( isset( $champ['fieldValues']['max'] ) )? ' max="' . $champ['fieldValues']['max'] . '"':'';
496
										$step        = ( isset( $champ['fieldValues']['step'] ) )? ' step="' . $champ['fieldValues']['step'] . '"':'';
497
										$default     = ( isset( $champ['fieldValues']['default'] ) )? ' value="' . $champ['fieldValues']['default'] . '" data-default="' . $champ['fieldValues']['default'] . '"' :'';
498
										$description = ( isset( $champ['description'] ) )? ' data-toggle="tooltip" title="' . $champ['description'] . '"':'';
499
										$placeholder = ( isset( $champ['fieldValues']['placeholder'] ) )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':'';
500
										$required    = '';
501
										$mandatory   = '';
502
										$pattern     = '';
503
										$obs_radio   = '';
504
										$help        = '';
505
										$help_button = '';
506
 
507
										if( $champ['help'] ) {
508
											$help = ' and-help';
509
											$help_button = ' <div class="help-button help-' . $champ['key'] . ' btn btn-outline-info btn-sm border-0" data-key="' . $champ['key'] . '" data-name="' . $champ['name'] . '" data-mime-type="' . $champ['help'] . '"><i class="fas fa-info-circle"></i></div>';
510
										}
511
 
512
										if( $champ['mandatory'] ) {
513
											// Attr required
514
											$required  = ' required';
515
											// class="obligatoire"
516
											$mandatory = ' obligatoire';
517
										}?>
518
											<div class="col-md-6">
519
										<?php
520
										switch( $champ['element'] ) {
521
											case 'radio':
522
											case 'checkbox': ?>
523
												<div class="control-group <?php echo $champ['element']; ?> mb-3"<?php echo $required; ?> data-name="<?php echo $champ['key']; ?>[]">
524
													<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
525
														<?php echo $champ['name'] . $help_button; ?>
526
													</div>
527
													<div class="col-sm-8 has-tooltip" <?php echo $description; ?>>
528
 
529
														<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value_array ) : ?>
530
 
531
																<?php
532
																	$checked = '';
533
																	if ( '#' === substr( $list_value_array[0], -1 ) ) :
534
																		$checked = ' checked';
535
																		$list_value_array[0] = substr( $list_value_array[0], 0, -1 );
536
																	endif;
537
																?>
538
 
539
																<?php if( 'other' !== $list_value_array ) : ?>
540
																	<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
541
																		<input type="<?php echo $champ['element']; ?>" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?php echo $champ['key']; ?>[]" value="<?php echo $list_value_array[0]; ?>"<?php echo $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i] . ' ' . $champ['key']; ?>" data-label="<?php echo $champ['name']; ?>" data-name="<?php echo $champ['key']; ?>">
542
																		<?php echo ( '' !== $list_value_array[1] ) ? ucfirst($list_value_array[1]) : ucfirst($list_value_array[0]); ?>
543
																	</label>
544
																<?php else : ?>
545
																	<label for="other-<?php echo $champ['key']; ?>">
546
																		<input type="<?php echo $champ['element']; ?>" id="other-<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>[]" value="other" class="other <?php echo $champ['key']; ?>" data-label="<?php echo $champ['name']; ?>" data-element="<?php echo $champ['element']; ?>" data-name="<?php echo $champ['key']; ?>">
547
																		Autre
548
																	</label>
549
																<?php endif; ?>
550
 
551
														<?php endforeach; ?>
552
 
553
													</div>
554
												</div>
555
											<?php break;
556
 
557
											case 'list-checkbox': ?>
558
												<div class="multiselect <?php echo $champ['element'] . $help; ?>">
559
													<label class="col-sm-8<?php echo $mandatory; ?>" title="<?php echo $chpsupp['select-checkboxes-texte'];?>">
560
														<?php echo $champ['name'] . $help_button; ?>
561
													</label>
562
													<div class="control-group col-sm-8 mb-3 has-tooltip" <?php echo $description; ?>>
563
														<div class="selectBox">
564
															<select class="form-control list-checkbox custom-select" id="list-checkbox-<?php echo $champ['key']; ?>">
565
																<option><?php echo $chpsupp['select-checkboxes-texte'];?></option>
566
															</select>
567
															<div class="overSelect"></div>
568
														</div>
569
														<div class="checkboxes hidden" <?php echo $required; ?> data-name="<?php echo $champ['key']; ?>[]">
570
															<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value_array ) : ?>
571
 
572
																<?php
573
																	$checked = '';
574
																	if ( '#' === substr( $list_value_array[0], -1 ) ) :
575
																		$checked = ' checked';
576
																		$list_value_array[0] = substr( $list_value_array[0], 0, -1 );
577
																	endif;
578
																?>
579
 
580
																<?php if( 'other' !== $list_value_array ) : ?>
581
																	<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
582
																		<input type="checkbox" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?php echo $champ['key']; ?>[]" value="<?php echo $list_value_array[0]; ?>"<?php echo $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i] . ' ' . $champ['key']; ?>" data-label="<?php echo $champ['name']; ?>" data-name="<?php echo $champ['key']; ?>">
583
																		<?php echo ( '' !== $list_value_array[1] ) ? ucfirst($list_value_array[1]) : ucfirst($list_value_array[0]); ?>
584
																	</label>
585
																<?php else : ?>
586
																	<label for="other-<?php echo $champ['key']; ?>">
587
																		<input type="checkbox" id="other-<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>[]" value="other" class="other <?php echo $champ['key']; ?>" data-label="<?php echo $champ['name']; ?>" data-element="checkboxes" data-name="<?php echo $champ['key']; ?>">
588
																		Autre
589
																	</label>
590
																<?php endif; ?>
591
 
592
															<?php endforeach; ?>
593
 
594
														</div>
595
													</div>
596
												</div>
597
											<?php break;
598
 
599
											case 'select': ?>
600
												<div class="control-group mb-3">
601
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
602
													<div class="col-sm-8 mb-3">
603
														<div class="select-wrapper add-field-select <?php echo $help; ?>">
604
															<select id="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . ' ' . $champ['element']; ?> form-control has-tooltip custom-select mb-2"<?php echo $required; ?> data-label="<?php echo $champ['name']; ?>" data-name="<?php echo $champ['key']; ?>" <?php echo $description; ?>>
605
 
606
																<?php foreach ( $champ['fieldValues']['listValue'] as $list_value_array ) : ?>
607
 
608
																	<?php
609
																		$selected = '';
610
																		if ( '#' === substr( $list_value_array[0], -1 ) ) :
611
																			$selected = ' selected="selected"';
612
																			$list_value_array[0] = substr( $list_value_array[0], 0, -1 );
613
																		endif;
614
																	?>
615
 
616
																	<?php if( 'other' !== $list_value_array ) : ?>
617
																		<option value="<?php echo $list_value_array[0]; ?>"<?php echo $selected; ?> data-name="<?php echo $champ['key']; ?>">
618
																			<?php echo ( '' !== $list_value_array[1] ) ? ucfirst($list_value_array[1]) : ucfirst($list_value_array[0]); ?>
619
																		</option>
620
																	<?php else : ?>
621
																		<option id="other-<?php echo $champ['key']; ?>" class="other form-control is-select" value="other" data-element="<?php echo $champ['element']; ?>" data-name="<?php echo $champ['key']; ?>">Autre</option>
622
																	<?php endif; ?>
623
																<?php endforeach; ?>
624
															</select>
625
														</div>
626
													</div>
627
												</div>
628
											<?php break;
629
 
630
											case 'textarea': ?>
631
												<div class="control-group">
632
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?> " ><?php echo $champ['name'] . $help_button; ?></label>
633
													<div class="col-sm-8 mb-3">
634
														<textarea type="<?php echo $champ['element']; ?>" id="<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>"></textarea>
635
													</div>
636
												</div>
637
											<?php break;
638
 
639
											case 'range': ?>
640
												<div class="control-group">
641
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
642
													<div class="col-sm-8 mb-3 row">
643
														<?php
644
															$div_range_min_max = '';
645
 
646
															if ( isset( $champ['fieldValues']['min'] ) )  {
647
																$div_range_min_max =
648
																	"<p class=\"col-2 range-values text-center font-weight-bold\">".
649
																		"Min " . $champ['fieldValues']['min'] .
650
																	"</p>";
651
															}
652
 
653
															$div_range_min_max .= '<div class="range-live-value range-values text-center font-weight-bold col-';
654
 
655
															if ( isset( $champ['fieldValues']['min'] ) && isset( $champ['fieldValues']['max'] ) ) {
656
																$div_range_min_max .= '8';
657
															} elseif ( isset( $champ['fieldValues']['min'] ) || isset( $champ['fieldValues']['max'] ) ) {
658
																$div_range_min_max .= '10';
659
															} else {
660
																$div_range_min_max .= '12';
661
															}
662
 
663
															$div_range_min_max .= '" onload="this.innerText = document.getElementById(&apos;ajouter-obs&apos;).value"></div>';
664
 
665
															if( isset( $champ['fieldValues']['max'] ) ) {
666
																$div_range_min_max .=
667
																	"<p class=\"col-2 range-values text-center font-weight-bold\">".
668
																		"Max " . $champ['fieldValues']['max'] .
669
																	"</p>";
670
															}
671
 
672
															echo $div_range_min_max;
673
														?>
674
														<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="pl-3 custom-range <?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
675
													</div>
676
												</div>
677
												<?php break;
678
 
679
											case 'number':
680
											case 'date': ?>
681
												<div class="control-group">
682
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
683
													<div class="col-sm-8 mb-3">
684
														<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip"<?php echo  $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
685
													</div>
686
												</div>
687
												<?php break;
688
 
689
											case 'text' :
690
											case 'email':
691
											default: ?>
692
												<div class="control-group">
693
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
694
													<div class="col-sm-8 mb-3">
695
														<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>">
696
													</div>
697
												</div>
698
											<?php break;
699
										}
700
									?>
701
										</div>
702
								<?php endforeach; ?>
703
							</div>
704
						</form>
705
					<?php endif; ?><!-- Fin champs supplémentaires -->
706
 
707
					<form id="form-upload" class="form-horizontal bloc-top" action="<?php echo $url_ws_upload ?>" method="post" enctype="multipart/form-data">
708
						<h2><?php echo $image['titre']; ?></h2>
709
						<p id="miniature-info">
710
							<?php echo $image['aide']; ?>
711
						</p>
712
						<div id ="photos-conteneur" class="control-group col-sm-12">
713
							<div>
714
								<label for="fichier" class="label-file btn btn-large btn-info mb-3">
715
									<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
716
									<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
717
									<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
718
								</label>
719
							</div>
720
							<span for="fichier" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
721
 
722
							<div id="miniatures"></div>
723
							<p class="miniature-msg" class="span12">&nbsp;</p>
724
						</div>
725
					</form>
726
 
727
					<div id="image" class="row"></div>
728
				</div>
729
 
730
				<!-- Bouton cr&ation d'une obs -->
731
				<div class="row mb-3">
732
					<div class="centre" title="<?php echo $resume['creer-title']; ?>">
733
						<button id="ajouter-obs" class="btn btn-success"><i class="fas fa-check-square"></i> <?php echo $resume['creer']; ?></button>
734
					</div>
735
				</div>
736
 
737
				<!-- Messages d'erreur du formulaire-->
738
				<div class="row">
739
					<div class="zone-alerte">
740
						<div id="message-chargement" class="alert alert-secondary alert-block hidden">
741
							<a class="close">×</a>
742
							<h4 class="alert-heading"><?php echo $resume['alertchargt']; ?></h4>
743
							<p><?php echo $resume['alertchargt-desc']; ?></p>
744
						</div>
745
					</div>
746
					<div class="zone-alerte">
747
						<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
748
							<a class="close">×</a>
749
							<h4 class="alert-heading"><?php echo $resume['alert10max']; ?></h4>
750
							<p><?php echo $resume['alert10max-desc']; ?></p>
751
						</div>
752
					</div>
753
					<div class="zone-alerte">
754
						<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
755
							<a class="close">×</a>
756
							<h4 class="alert-heading"><?php echo $resume['alertchp']; ?></h4>
757
							<p><?php echo $resume['alertchp-desc']; ?></p>
758
						</div>
759
					</div>
760
				</div>
761
 
762
				<!-- Affiche le tableau récapitualif des observations ajoutées -->
763
				<div id="zone-liste-obs" class="bloc-top hidden">
764
					<div class="alert alert-info">
765
						<h2 class="transmission-title"><strong><?php echo $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
766
						<button id="transmettre-obs" class="btn btn-success droite" disabled="disabled"
767
							title="<?php echo $resume['trans-title']; ?>" type="button">
768
							<?php echo $resume['trans']; ?>
769
						</button>
770
					</div>
771
					<!-- chargement -->
772
					<div id="chargement" class="modal-fenetre hidden">
773
						<div id="chargement-centrage" class="modal-contenu">
774
							<div class="progress active">
775
								<div id="barre-progression-upload" class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
776
										<span class="sr-only">0/10 <?php echo $resume['nbobs']; ?></span>
777
									</div>
778
							</div>
779
							<p id="chargement-txt"><?php echo $resume['transencours']; ?></p>
780
						</div>
781
					</div>
782
					<div id="liste-obs" ></div>
783
					<div class="row">
784
						<div class="zone-alerte">
785
							<div id="dialogue-zero-obs" class="alert alert-block hidden">
786
								<a class="close">×</a>
787
								<h4 class="alert-heading"><?php echo $resume['alert0obs']; ?></h4>
788
								<p><?php echo $resume['alert0obs-desc']; ?></p>
789
							</div>
790
							<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
791
								<a class="close">×</a>
792
								<h4 class="alert-heading"><?php echo $resume['info-trans']; ?></h4>
793
								<div class="alert-txt"></div>
794
							</div>
795
							<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
796
								<a class="close">×</a>
797
								<h4 class="alert-heading"><?php echo $resume['alerttrans']; ?></h4>
798
								<div class="alert-txt"></div>
799
							</div>
800
						</div>
801
					</div>
802
				</div>
803
 
804
				<!-- Templates HTML -->
805
				<div id="tpl-transmission-ok" class="hidden">
806
					<p class="msg"><?php echo $resume['transok']; ?></p>
807
				</div>
808
				<div id="tpl-transmission-ko" class="hidden">
3709 idir 809
					<p class="msg"><?php echo $resume['transkomsg']; ?><a href="<?php echo $url_remarques; ?>?lang=fr&service=cel&pageSource=<?php echo urlencode( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ); ?>" target="_blank" onclick="javascript: window.open( this.getAttribute( 'href' ), 'Tela Botanica - Remarques', config = 'height=700, width=640, scrollbars=yes, resizable=yes' ); return false;"><?php echo $resume['transkolien']; ?></a>.</p>
3638 delphine 810
				</div>
811
			</div>
812
		</div>
813
 
814
		<!-- modale -->
815
		<div id="fenetre-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fenetre-modal-label" style="display: none;" aria-hidden="true">
816
			<div class="modal-dialog modal-dialog-centered" role="document">
817
				<div class="modal-content">
818
					<div class="modal-header">
819
						<h5 class="modal-title" id="fenetre-modal-label"></h5>
820
						<button type="button" class="close" data-dismiss="modal" aria-label="Close">
821
							<span aria-hidden="true">&times;</span>
822
						</button>
823
					</div>
824
					<div class="modal-body" id="print_content"></div>
825
					<div class="modal-footer"></div>
826
				</div>
827
			</div>
828
		</div>
829
		<!-- Jquery -->
830
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
831
		<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
832
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
833
		<!-- Jquery Plugins -->
834
		<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
835
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
836
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
837
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
838
		<!-- Jquery Form :nécessaire pour l'upload des images -->
839
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
840
		<!-- Bootstrap -->
841
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
842
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
3844 idir 843
		<!-- carto -->
844
		<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin="anonymous"></script>
845
		<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js" integrity="sha512-ozq8xQKq6urvuU6jNgkfqAmT7jKN2XumbrX1JiB3TnF7tI48DPI4Gy1GXKD/V3EExgAs1V+pRO7vwtS1LHg0Gw==" crossorigin="anonymous"></script>
846
		<script src="<?php echo $url_base;?>js/tb-geoloc/js/modules/leaflet-gesture-handling.min.js"></script>
3638 delphine 847
		<!-- Connexion, bloc de prévisualisation, date -->
3844 idir 848
		<script type="module" src="<?php echo $url_base; ?>js/WidgetSaisie.js"></script>
3638 delphine 849
		<script type="text/javascript">
850
			//<![CDATA[
3844 idir 851
				const NBRE_ELTS_AUTOCOMP = 20,
852
					widgetProp = {
3638 delphine 853
					// url jusqu'à "/widget:cel:"
854
					'urlWidgets'                        : "<?php echo $widgets_url; ?>",
855
					// module utilisé (apa,lg,streets)
856
					'projet'                            : "<?php echo $widget['projet']; ?>",
857
					// id du projet
858
					'idProjet'                          : "<?php echo $widget['id_projet']; ?>",
859
					// La présence du parametre 'debug' dans l'URL enclenche le débogage
860
					'debug'                             : <?php echo isset( $_GET['debug'] ) ? 'true' : 'false'; ?>,
861
					// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
862
					'html5'                             : <?php echo isset($_GET['html5']) ? 'true' : 'false'; ?>,
863
					// Mot-clé du widget/projet
864
					'tagsMotsCles'                      : "<?php echo $widget['motscles']; ?>",
865
					// Mots-clés à ajouter aux images
866
					'tagImg'                            : "<?php echo isset($widget['tag-img']) ? $widget['tag-img'] : ''; ?>",
867
					// Mots-clés à ajouter aux observations
868
					'tagObs'                            : "<?php echo isset($widget['tag-obs']) ? $widget['tag-obs'] : ''; ?>",
869
					// Précharger le formulaire avec les infos d'une observation
870
					'obsId'                             : "<?php echo isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>",
871
					// URL du web service réalisant l'insertion des données dans la base du CEL.
872
					'serviceSaisieUrl'                  : "<?php echo $url_ws_saisie; ?>",
873
					// URL du web service permettant de récupérer les infos d'une observation du CEL.
874
					'serviceObsUrl'                     : "<?php echo $url_ws_obs; ?>",
875
					// langue
876
					'langue'                            : "<?php echo $widget['langue']; ?>",
877
					// Squelette d'URL du web service de l'annuaire.
878
					'serviceAnnuaireIdUrl'              : "<?php echo $url_ws_annuaire; ?>",
879
					// mode : prod / beta / local
880
					'mode'                              : "<?php echo $conf_mode; ?>",
881
					// URL de l'icône du chargement en cours d'une image
882
					'chargementImageIconeUrl'           : "<?php echo $url_base; ?>img/icones/chargement.gif",
883
					// URL de l'icône pour une photo manquante
884
					'pasDePhotoIconeUrl'                : "<?php echo $url_base; ?>img/icones/pasdephoto.png",
885
					// Code du référentiel utilisé pour les nom scientifiques.
886
					'nomSciReferentiel'                 : "<?php echo ( !empty( $widget['referentiel'] ) ) ? strtolower( $widget['referentiel'] ) : 'bdtfxr'; ?>",
887
					// Indication de la présence d'une espèce imposée
888
					'especeImposee'                     : "<?php echo $widget['especes']['espece_imposee']; ?>",
889
					// Tableau d'informations sur l'espèce imposée
890
					'infosEspeceImposee'                : "<?php echo $widget['especes']['infos_espece']; ?>",
891
					// Indication de la présence d'un référentiel imposé
892
					'referentielImpose'                 : "<?php echo ( !empty( $widget['referentiel'] ) ) ? strtolower( $widget['referentiel'] ) : 'bdtfxr'; ?>",
893
					// #taxon est une liste
894
					'isTaxonListe'                      : <?php echo ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) )? 'true' : 'false' ; ?>,
895
					// Nombre d'élément dans les listes d'auto-complétion
896
					'autocompletionElementsNbre'        : NBRE_ELTS_AUTOCOMP,
897
					// URL du web service permettant l'auto-complétion des noms scientifiques
898
					'serviceAutocompletionNomSciUrl'    : "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
899
						"masque={masque}&"+
900
						"recherche=etendue&"+
901
						"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
3680 delphine 902
						"ns.structure=au,an&"+
3638 delphine 903
						"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
904
					// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
905
					'serviceAutocompletionNomSciUrlTpl' : "<?php echo $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
906
						"masque={masque}&"+
907
						"recherche=etendue&"+
908
						"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
909
						"retour.tri=alpharet&"+ // tri "à la CeL"
3680 delphine 910
						"ns.structure=au,an&"+
3638 delphine 911
						"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
912
					// Nombre d'observations max autorisé avant transmission
3844 idir 913
					'obsMaxNbre'                        : 10,
3638 delphine 914
					// Durée d'affichage en milliseconde des messages d'informations
3844 idir 915
					'dureeMessage'                      : 1000,
3638 delphine 916
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
917
					'serviceNomCommuneUrl'              : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
918
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
919
					'serviceNomCommuneUrlAlt'           : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
920
				};
921
			//]]>
922
		</script>
923
		<!-- Barre de navigation -->
924
		<?php if ( $bar ): ?>
925
			<script src="<?php echo $url_script_navigation; ?>"></script>
926
		<?php endif; ?>
927
	</body>
928
</html>