Subversion Repositories eFlore/Applications.cel

Rev

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

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