Subversion Repositories eFlore/Applications.cel

Rev

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

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