Subversion Repositories eFlore/Applications.cel

Rev

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

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