Subversion Repositories eFlore/Applications.cel

Rev

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

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