Subversion Repositories eFlore/Applications.cel

Rev

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

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