Subversion Repositories eFlore/Applications.cel

Rev

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

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