Subversion Repositories eFlore/Applications.cel

Rev

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

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