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