Subversion Repositories eFlore/Applications.cel

Rev

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

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