Subversion Repositories eFlore/Applications.cel

Rev

Rev 3263 | Rev 3269 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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