3120 |
delphine |
1 |
<!DOCTYPE html>
|
3208 |
idir |
2 |
<html xmlns="https://www.w3.org/1999/xhtml">
|
3120 |
delphine |
3 |
<head>
|
3208 |
idir |
4 |
<title><?= $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" />
|
3120 |
delphine |
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="Gestion des widgets de saisie du carnet en ligne" />
|
3208 |
idir |
17 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
|
3120 |
delphine |
18 |
|
3208 |
idir |
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" />
|
3120 |
delphine |
29 |
|
3208 |
idir |
30 |
<!-- Favicones -->
|
|
|
31 |
<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
|
3120 |
delphine |
32 |
|
3208 |
idir |
33 |
<!-- CSS -->
|
|
|
34 |
<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" />
|
|
|
35 |
<!-- Bootstrap CSS -->
|
|
|
36 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
|
|
|
37 |
<link rel="stylesheet" type="text/css" href="<?= $url_base; ?>modules/saisie2/squelettes/css/bootstrap-4/css/bootstrap.min.css" />
|
|
|
38 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous" />
|
|
|
39 |
<link href="<?= $url_base; ?>modules/saisie2/squelettes/css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
|
3120 |
delphine |
40 |
|
3221 |
delphine |
41 |
<!-- carto -->
|
|
|
42 |
<link href="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
|
3208 |
idir |
43 |
<!-- Google Analytics -->
|
|
|
44 |
<?php if( $prod ): ?>
|
|
|
45 |
<?php include "analytics.html"; ?>
|
|
|
46 |
<?php endif; ?>
|
|
|
47 |
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
|
48 |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
3120 |
delphine |
49 |
</head>
|
|
|
50 |
|
|
|
51 |
<body>
|
3208 |
idir |
52 |
<!-- <?php //var_dump($widget['especes']['url_ws_autocompletion_ns']); ?> -->
|
|
|
53 |
<div id="zone-appli" class="container">
|
|
|
54 |
<!-- la barre de navigation est plus bas -->
|
|
|
55 |
<!-- <?php //if ( $bar ): ?>
|
|
|
56 |
<div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="saisie" data-mode="test"></div>
|
|
|
57 |
<br/>
|
|
|
58 |
<?php //endif; ?> -->
|
|
|
59 |
<div class="layout-wrapper page">
|
|
|
60 |
|
|
|
61 |
<div class="media">
|
|
|
62 |
<img class="d-flex mr-3" src="<?= $widget['logo']; ?>" alt="<?= $widget['projet']; ?>" />
|
|
|
63 |
<div class="media-body">
|
|
|
64 |
<h1 class="mt-0"><?= $widget['titre']; ?></h1>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
|
|
|
68 |
<div class="row">
|
|
|
69 |
<div class="col-md-6">
|
|
|
70 |
<div id="description"><?= $widget['description']; ?></div>
|
|
|
71 |
</div>
|
|
|
72 |
<div class="col-md-6">
|
|
|
73 |
<div id="aide" class="well well-lg hidden-sm-down">
|
|
|
74 |
<h3><?= $aide['titre']; ?></h3>
|
|
|
75 |
<div id="aide-txt" class="hiden-sm-down">
|
|
|
76 |
<p>
|
|
|
77 |
<?= $aide['description']; ?>
|
|
|
78 |
</p>
|
|
|
79 |
<p class="discretion">
|
|
|
80 |
<?= $aide['contact']; ?>
|
|
|
81 |
<a href="<?= $url_remarques; ?>?service=cel&pageSource=<?php echo urlencode( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'] ); ?>"
|
|
|
82 |
target="_blank"
|
|
|
83 |
onclick="
|
|
|
84 |
javascript:window.open(
|
|
|
85 |
this.getAttribute( 'href' ),
|
|
|
86 |
'Tela Botanica - Remarques',
|
|
|
87 |
config = 'height=700, width=640, scrollbars=yes, resizable=yes'
|
|
|
88 |
);
|
|
|
89 |
return false;
|
|
|
90 |
">
|
|
|
91 |
<?= $aide['contact2']; ?></a>
|
|
|
92 |
</p>
|
|
|
93 |
</div>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
|
|
|
98 |
<div id="formulaire" class="row mb-3 bloc-top">
|
|
|
99 |
<form id="form-observateur" role="form" autocomplete="on">
|
|
|
100 |
<h2><?= $observateur['titre']; ?></h2>
|
|
|
101 |
<!--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
|
|
|
102 |
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
|
|
|
103 |
le javascript auth.js vient de http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.reseau&path=%2Ftrunk%2Fresources%2Fjs%2Fnavigation.js
|
|
|
104 |
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-->
|
3213 |
idir |
105 |
<!-- prod : -->
|
|
|
106 |
<!-- <div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="navigation" data-mode="prod"> -->
|
|
|
107 |
<!-- beta (test) :-->
|
|
|
108 |
<div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="navigation" data-mode="test">
|
|
|
109 |
<!-- dev (localhost) : -->
|
|
|
110 |
<!-- <div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="navigation" data-mode="local"> -->
|
3208 |
idir |
111 |
<div class="navbar-default mb-3" id="tb-navbar">
|
|
|
112 |
<div class="nav navbar-nav navbar-right row">
|
3217 |
idir |
113 |
<div id="bouton-connexion" class="dropdown col-md-6 col-sm-8">
|
3208 |
idir |
114 |
<label for="bouton-connexion">Je me connecte à mon compte : </label>
|
3211 |
idir |
115 |
<a id="connexion" href="<?= $authTpl; ?>" class="btn btn-success mr-1 mb-1" taget="_blank">Connexion</a>
|
3210 |
delphine |
116 |
<a id="bouton-inscription" href="https://beta.tela-botanica.org/test/inscription" class="btn btn-primary mr-1 mb-1" taget="_blank">Inscription</a>
|
3208 |
idir |
117 |
</div>
|
3217 |
idir |
118 |
<div id="creation-compte" class="dropdown col-md-6 col-sm-8">
|
3208 |
idir |
119 |
<label for="creation-compte">Je ne souhaite pas m'inscrire : </label>
|
|
|
120 |
<a id="bouton-anonyme" href="#" class="btn btn-info mr-1 mb-1">Observation sans inscription</a>
|
|
|
121 |
</div>
|
|
|
122 |
<div id="utilisateur-connecte" class="dropdown hidden">
|
|
|
123 |
<label for="utilisateur-connecte">Bienvenue : </label>
|
|
|
124 |
<a href="#" class="list-tool btn btn-largee btn-primary dropdown-toggle" data-toggle="dropdown">
|
|
|
125 |
<span id="nom-complet"></span>
|
|
|
126 |
</a>
|
|
|
127 |
<div class="dropdown-menu">
|
3211 |
idir |
128 |
<div id="profil-utilisateur"><a href="https://beta.tela-botanica.org/test/inscription" taget="_blank">Mon profil</a></div>
|
3217 |
idir |
129 |
<div id="deconnexion"><a href="#">Déconnexion</a></div>
|
3208 |
idir |
130 |
</div>
|
|
|
131 |
</div>
|
|
|
132 |
</div>
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
|
|
135 |
|
|
|
136 |
<div id="anonyme" class="mb-3 hidden">
|
|
|
137 |
<label for="anonyme">Informations sur l'observateur : </label>
|
|
|
138 |
<div id="zone-courriel" class="row">
|
|
|
139 |
<div class="control-group col-md-6">
|
|
|
140 |
|
3217 |
idir |
141 |
<label for="courriel" class="col-sm-8 obligatoire" title="<?= $observateur['courriel-title']; ?>">
|
3208 |
idir |
142 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
|
|
143 |
<?= $observateur['courriel']; ?>
|
|
|
144 |
</label>
|
|
|
145 |
<div class="col-sm-8 mb-3">
|
|
|
146 |
<input id="courriel" name="courriel" class="form-control" type="email" title="<?= $observateur['courriel-title']; ?> ">
|
|
|
147 |
<input id="id_utilisateur" name="id_utilisateur" type="hidden">
|
|
|
148 |
</div>
|
|
|
149 |
|
|
|
150 |
</div>
|
|
|
151 |
<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
|
|
|
152 |
|
3217 |
idir |
153 |
<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="Veuillez confirmer le courriel.">
|
3208 |
idir |
154 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
|
|
155 |
Courriel (confirmation)
|
|
|
156 |
</label>
|
|
|
157 |
<div class="col-sm-8">
|
|
|
158 |
<input id="courriel_confirmation" name="courriel_confirmation" class="form-control" type="email">
|
|
|
159 |
</div>
|
|
|
160 |
|
|
|
161 |
</div>
|
|
|
162 |
</div>
|
|
|
163 |
<div id="zone-prenom-nom" class="row hidden">
|
|
|
164 |
<div class="control-group col-md-6">
|
|
|
165 |
|
3217 |
idir |
166 |
<label for="prenom" class="col-sm-8">
|
3208 |
idir |
167 |
<i class="fa fa-user" aria-hidden="true"></i>
|
|
|
168 |
<?= $observateur['prenom']; ?>
|
|
|
169 |
</label>
|
|
|
170 |
<div class="input-group col-sm-8">
|
|
|
171 |
<input id="prenom" name="prenom" class="form-control" type="text">
|
|
|
172 |
</div>
|
|
|
173 |
|
|
|
174 |
</div>
|
|
|
175 |
<div class="control-group col-md-6">
|
|
|
176 |
|
3217 |
idir |
177 |
<label for="nom" class="col-sm-8">
|
3208 |
idir |
178 |
<i class="fa fa-user" aria-hidden="true"></i>
|
|
|
179 |
<?= $observateur['nom']; ?>
|
|
|
180 |
</label>
|
|
|
181 |
<div class="input-group col-sm-8">
|
|
|
182 |
<input id="nom" name="nom" class="form-control" type="text">
|
|
|
183 |
</div>
|
|
|
184 |
|
|
|
185 |
</div>
|
|
|
186 |
</div>
|
|
|
187 |
</div>
|
|
|
188 |
</form>
|
|
|
189 |
<!-- Messages d'erreur du formulaire-->
|
|
|
190 |
<div class="row">
|
|
|
191 |
<div class="zone-alerte">
|
|
|
192 |
<div id="dialogue-bloquer-copier-coller" class="alert alert-info alert-block hidden"">
|
|
|
193 |
<a class="close">×</a>
|
|
|
194 |
<h4 class="alert-heading">Information : copier/coller</h4>
|
|
|
195 |
<p>
|
|
|
196 |
Merci de ne pas copier/coller votre courriel.<br/>
|
|
|
197 |
La double saisie permet de vérifier l'absence d'erreurs.
|
|
|
198 |
</p>
|
|
|
199 |
</div>
|
|
|
200 |
<div id="dialogue-utilisateur-non-identifie" class="alert alert-warning alert-block hidden">
|
|
|
201 |
<a class="close">×</a>
|
|
|
202 |
<h4 class="alert-heading">Information : observateur non identifié</h4>
|
|
|
203 |
<p>
|
|
|
204 |
Votre observation doit être liée soit à un compte, soit à un email.<br/>
|
|
|
205 |
Veuillez choisir, soit de vous connecter, soit de vous inscrire, soit communiquer une adresse email afin de vous identifier comme auteur de l'observation.<br/>
|
|
|
206 |
Pour retrouver vos observations dans le <a href="http://www.tela-botanica.org/appli:cel">Carnet en ligne</a>,
|
|
|
207 |
il est nécesaire de <a href="http://www.tela-botanica.org/page:inscription">vous inscrire à Tela Botanica</a>.
|
|
|
208 |
</p>
|
|
|
209 |
</div>
|
|
|
210 |
<!-- <div id="dialogue-google-map" class="alert alert-info alert-block hidden">
|
|
|
211 |
<a class="close">×</a>
|
|
|
212 |
<h4 class="alert-heading">Information sur Google Maps</h4>
|
|
|
213 |
<div class="contenu"></div>
|
|
|
214 |
</div> -->
|
|
|
215 |
</div>
|
|
|
216 |
</div>
|
|
|
217 |
|
|
|
218 |
<form id="form-observation" role="form" autocomplete="on">
|
|
|
219 |
<h2><?= $observation['titre']; ?></h2>
|
|
|
220 |
<div id="zone-observation" class="row">
|
|
|
221 |
<div class="col-md-6">
|
|
|
222 |
<div class="control-group">
|
3217 |
idir |
223 |
<label for="geolocalisation" class="col-sm-8 obligatoire" title="<?= $observateur['courriel-title']; ?>">
|
3208 |
idir |
224 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
|
|
225 |
<?= $observation['geolocalisation']; ?>
|
|
|
226 |
</label>
|
3217 |
idir |
227 |
<div class="col-sm-8 mb-3">
|
3208 |
idir |
228 |
<input id="geolocalisation" name="geolocalisation" type="hidden">
|
3221 |
delphine |
229 |
<tb-geolocation-element id="tb-geolocation"></tb-geolocation-element>
|
3208 |
idir |
230 |
</div>
|
|
|
231 |
</div>
|
|
|
232 |
<div class="control-group">
|
3217 |
idir |
233 |
<label for="milieu" class="col-sm-8">
|
3208 |
idir |
234 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
|
|
235 |
<?= $observation['milieu']; ?>
|
|
|
236 |
</label>
|
|
|
237 |
<div class="col-sm-8 mb-3">
|
|
|
238 |
<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
|
|
|
239 |
<select id="milieu" class="form-control" >
|
|
|
240 |
<?php foreach ( $widget['milieux'] as $milieu ) :?>
|
|
|
241 |
<option value="<?= $milieu; ?>"><?= $milieu; ?></option>
|
|
|
242 |
<?php endforeach; ?>
|
|
|
243 |
</select>
|
|
|
244 |
<?php else : ?>
|
|
|
245 |
<input id="milieu" name="milieu" class="form-control" type="text" placeholder="bois, champ, falaise, ...">
|
|
|
246 |
<?php endif; ?>
|
|
|
247 |
</div>
|
|
|
248 |
</div>
|
|
|
249 |
</div>
|
|
|
250 |
<div class="col-md-6">
|
|
|
251 |
|
|
|
252 |
<div class="control-group">
|
3217 |
idir |
253 |
<label for="date_releve" class="col-sm-8 obligatoire" title="">
|
3208 |
idir |
254 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
|
255 |
<?= $observation['date']; ?>
|
|
|
256 |
</label>
|
|
|
257 |
<div class="col-sm-8 mb-3" id="datetimepicker">
|
|
|
258 |
<input type="text" id="date_releve" name="date_releve" class="form-control date" placeholder="jj/mm/aaaa" pattern="(^(((0[1-9]|1[0-9]|2[0-8])[\/](0[1-9]|1[012]))|((29|30|31)[\/](0[13578]|1[02]))|((29|30)[\/](0[4,6,9]|11)))[\/](19|[2-9][0-9])\d\d$)|(^29[\/]02[\/](19|[2-9][0-9])(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96)$)" title="jj/mm/aaaa">
|
|
|
259 |
</div>
|
|
|
260 |
</div>
|
|
|
261 |
|
|
|
262 |
<?php if( 'referentiel' === $widget['type_especes'] && '' === $widget['referentiel'] ) : ?>
|
|
|
263 |
<div class="control-group">
|
3217 |
idir |
264 |
<label for="referentiel" class="col-sm-8 obligatoire" title="">
|
3208 |
idir |
265 |
<i class="fa fa-book" aria-hidden="true"></i>
|
|
|
266 |
<?= $observation['referentiel']; ?>
|
|
|
267 |
</label>
|
|
|
268 |
<div class="col-sm-8 mb-3">
|
|
|
269 |
<select id="referentiel" class="form-control" >
|
|
|
270 |
<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
|
|
|
271 |
<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
|
|
|
272 |
<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
|
|
|
273 |
<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
|
|
|
274 |
<option value="aublet" title="Guyane">Guyane (AUBLET2)</option>
|
|
|
275 |
<option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)</option>
|
|
|
276 |
<option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)</option>
|
|
|
277 |
<option value="apd" title="Afrique de l'Ouest et du Centre">Afrique de l'Ouest et du Centre (APD)</option>
|
|
|
278 |
<option value="lbf" title="Liban">Liban (LBF)</option>
|
|
|
279 |
<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
|
|
|
280 |
</select>
|
|
|
281 |
</div>
|
|
|
282 |
</div>
|
|
|
283 |
<?php else : ?>
|
|
|
284 |
<input id="referentiel" name="referentiel" value="<?= $widget['referentiel']; ?>" type="hidden">
|
|
|
285 |
<?php endif; ?>
|
|
|
286 |
|
|
|
287 |
<div class="control-group">
|
3217 |
idir |
288 |
<label for="taxon" class="col-sm-8 obligatoire" title="">
|
3208 |
idir |
289 |
<i class="fa fa-leaf" aria-hidden="true"></i>
|
|
|
290 |
<?= $observation['espece']; ?>
|
|
|
291 |
</label>
|
|
|
292 |
<div class="col-sm-8 mb-3">
|
|
|
293 |
<input id="taxon" name="taxon" class="form-control" type="text">
|
|
|
294 |
</div>
|
|
|
295 |
</div>
|
|
|
296 |
|
|
|
297 |
<div class="control-group">
|
3217 |
idir |
298 |
<label for="certitude" class="col-sm-8 obligatoire" title="">
|
3208 |
idir |
299 |
<i class="fa fa-question" aria-hidden="true"></i>
|
|
|
300 |
<?= $observation['certitude']; ?>
|
|
|
301 |
</label>
|
|
|
302 |
<div class="col-sm-8 mb-3">
|
|
|
303 |
<select id="certitude" name="certitude" class="form-control">
|
|
|
304 |
<option value="aDeterminer" ><?= $observation['certADet']; ?></option>
|
|
|
305 |
<option value="douteuse" ><?= $observation['certDout']; ?></option>
|
|
|
306 |
<option value="certaine" selected="selected" ><?= $observation['certCert']; ?></option>
|
|
|
307 |
</select>
|
|
|
308 |
</div>
|
|
|
309 |
</div>
|
|
|
310 |
|
|
|
311 |
</div>
|
|
|
312 |
</div>
|
|
|
313 |
</form>
|
|
|
314 |
|
|
|
315 |
<form id="form-upload" class="form-horizontal" action="<?= $url_ws_upload ?>" method="post" enctype="multipart/form-data">
|
|
|
316 |
<h2>Image(s) de cette plante</h2>
|
|
|
317 |
<p class="miniature-info" class="discretion help-inline">
|
|
|
318 |
Les photos doivent être au format JPEG et ne doivent pas excéder 5Mo chacunes.
|
|
|
319 |
</p>
|
|
|
320 |
<div id ="photos-conteneur" class="control-group">
|
|
|
321 |
<div>
|
|
|
322 |
<label for="fichier" class="label-file btn btn-large btn-info mb-3">
|
|
|
323 |
<span class="label-text"><i class="fas fa-download"></i> Ajouter une image</span>
|
|
|
324 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
|
|
325 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
|
|
326 |
</label>
|
|
|
327 |
</div>
|
|
|
328 |
|
|
|
329 |
<div id="miniatures"></div>
|
|
|
330 |
<p class="miniature-msg" class="span12"> </p>
|
|
|
331 |
</div>
|
|
|
332 |
</form>
|
|
|
333 |
|
|
|
334 |
<!-- Champs supplémentaires -->
|
|
|
335 |
<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
|
|
|
336 |
<form id="form-supp" role="form" autocomplete="on">
|
|
|
337 |
<h2>Informations propres au projet</h2>
|
|
|
338 |
<div id="zone-supp" class="row">
|
|
|
339 |
<div class="col-md-6">
|
|
|
340 |
|
|
|
341 |
<?php foreach( $widget['chpSupp']['sauvagessupp']['champs-supp'] as $champ ) :?>
|
|
|
342 |
<?php
|
|
|
343 |
$min = ( $champ['fieldValues']['min'] )? ' min="' . $champ['fieldValues']['min'] . '"':'';
|
|
|
344 |
$max = ( $champ['fieldValues']['max'] )? ' max="' . $champ['fieldValues']['max'] . '"':'';
|
|
|
345 |
$step = ( $champ['fieldValues']['step'] )? ' step="' . $champ['fieldValues']['step'] . '"':'';
|
|
|
346 |
$default = ( $champ['fieldValues']['default'] )? ' value="' . $champ['fieldValues']['default'] . '"':'';
|
|
|
347 |
$description = ( $champ['description'] )? ' title="' . $champ['description'] . '"':'';
|
|
|
348 |
$placeholder = ( $champ['fieldValues']['placeholder'] )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':'';
|
|
|
349 |
$required = '';
|
|
|
350 |
$mandatory = '';
|
|
|
351 |
$datepicker = '';
|
|
|
352 |
$pattern = '';
|
|
|
353 |
$obs_radio = '';
|
3217 |
idir |
354 |
$help = '';
|
|
|
355 |
$help_button = '';
|
3208 |
idir |
356 |
|
3217 |
idir |
357 |
if( /*true*/$champ['help'] ) {
|
|
|
358 |
$help = ' and-help';
|
|
|
359 |
// TODO récupérer un $champ['help_mime_type']
|
|
|
360 |
// $champ['help_mime_type'] = 'application/pdf';
|
|
|
361 |
$champ['help_mime_type'] = 'image.*';
|
|
|
362 |
$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_mime_type'] . '"><i class="fas fa-info-circle"></i></div>';
|
|
|
363 |
}
|
|
|
364 |
|
3208 |
idir |
365 |
if( $champ['mandatory'] ) {
|
|
|
366 |
// Attr required
|
|
|
367 |
$required = ' required';
|
|
|
368 |
// class="obligatoire"
|
|
|
369 |
$mandatory = ' obligatoire';
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
if( 'date' === $champ['element'] ) {
|
|
|
373 |
$datepicker = ' date';
|
|
|
374 |
$pattern = ' pattern="(^(((0[1-9]|1[0-9]|2[0-8])[\/](0[1-9]|1[012]))|((29|30|31)[\/](0[13578]|1[02]))|((29|30)[\/](0[4,6,9]|11)))[\/](19|[2-9][0-9])\d\d$)|(^29[\/]02[\/](19|[2-9][0-9])(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96)$)"';
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
switch( $champ['element'] ) {
|
|
|
378 |
case 'radio':
|
|
|
379 |
case 'checkbox': ?>
|
|
|
380 |
<div class="control-group <?= $champ['element']; ?> mb-3"<?php echo $description . $required; ?>>
|
3217 |
idir |
381 |
<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
|
|
|
382 |
<?= $champ['name'] . $help_button; ?>
|
3208 |
idir |
383 |
</div>
|
|
|
384 |
<div class="col-sm-8">
|
|
|
385 |
|
|
|
386 |
<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value ) : ?>
|
|
|
387 |
|
|
|
388 |
<?php
|
|
|
389 |
$checked = '';
|
|
|
390 |
if ( '#' === substr( $list_value, -1 ) ) :
|
|
|
391 |
$checked = ' checked';
|
|
|
392 |
$list_value = substr( $list_value, 0, -1 );
|
|
|
393 |
endif;
|
|
|
394 |
?>
|
|
|
395 |
|
|
|
396 |
<?php if( 'other' !== $list_value ) : ?>
|
|
|
397 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
|
|
398 |
<input type="<?= $champ['element']; ?>" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?= $champ['key']; ?>" value="<?= $list_value; ?>"<?= $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" data-label="<?= $champ['name']; ?>">
|
|
|
399 |
<?= $list_value; ?>
|
|
|
400 |
</label>
|
|
|
401 |
<?php else : ?>
|
|
|
402 |
<label for="other-<?= $champ['key']; ?>">
|
3217 |
idir |
403 |
<input type="<?= $champ['element']; ?>" id="other-<?= $champ['key']; ?>" name="<?= $champ['key']; ?>" value="other" class="other" data-label="<?= $champ['name']; ?>" data-element="<?= $champ['element']; ?>">
|
3208 |
idir |
404 |
Autre
|
|
|
405 |
</label>
|
|
|
406 |
<?php endif; ?>
|
|
|
407 |
|
|
|
408 |
<?php endforeach; ?>
|
|
|
409 |
|
|
|
410 |
</div>
|
|
|
411 |
</div>
|
|
|
412 |
<?php break;
|
|
|
413 |
|
|
|
414 |
case 'list-checkbox': ?>
|
|
|
415 |
<div class="multiselect <?php echo $champ['element'] . $help; ?>">
|
3217 |
idir |
416 |
<label class="col-sm-8<?= $mandatory; ?>"><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
417 |
<div class="control-group col-sm-8 mb-3">
|
|
|
418 |
<div class="selectBox">
|
|
|
419 |
<select class="form-control" id="list-checkbox-<?= $champ['key']; ?>"<?php echo $description . $required; ?> class="form-control">
|
|
|
420 |
<option>Plusieurs choix possibles</option>
|
|
|
421 |
</select>
|
|
|
422 |
<div class="overSelect"></div>
|
|
|
423 |
</div>
|
|
|
424 |
<div class="checkboxes hidden">
|
|
|
425 |
<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value ) : ?>
|
|
|
426 |
|
|
|
427 |
<?php
|
|
|
428 |
$checked = '';
|
|
|
429 |
if ( '#' === substr( $list_value, -1 ) ) :
|
|
|
430 |
$checked = ' checked';
|
|
|
431 |
$list_value = substr( $list_value, 0, -1 );
|
|
|
432 |
endif;
|
|
|
433 |
?>
|
|
|
434 |
|
|
|
435 |
<?php if( 'other' !== $list_value ) : ?>
|
|
|
436 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
|
|
437 |
<input type="checkbox" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?= $champ['key']; ?>" value="<?= $list_value; ?>"<?= $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" data-label="<?= $champ['name']; ?>">
|
|
|
438 |
<?= $list_value; ?>
|
|
|
439 |
</label>
|
|
|
440 |
<?php else : ?>
|
|
|
441 |
<label for="other-<?= $champ['key']; ?>">
|
|
|
442 |
<input type="checkbox" id="other-<?= $champ['key']; ?>" name="<?= $champ['key']; ?>" value="other" class="other" data-label="<?= $champ['name']; ?>" data-element="<?= $champ['element']; ?>">
|
|
|
443 |
Autre
|
|
|
444 |
</label>
|
|
|
445 |
<?php endif; ?>
|
|
|
446 |
|
|
|
447 |
<?php endforeach; ?>
|
|
|
448 |
|
|
|
449 |
</div>
|
|
|
450 |
</div>
|
|
|
451 |
</div>
|
|
|
452 |
<?php break;
|
|
|
453 |
|
|
|
454 |
case 'select': ?>
|
3217 |
idir |
455 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $mandatory; ?>"<?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
456 |
<div class="champ col-sm-8 mb-3">
|
|
|
457 |
<div class="select-wrapper add-field-select <?php echo $champ['element'] . $help; ?>">
|
|
|
458 |
<select name="<?= $champ['key']; ?>" id="<?= $champ['key']; ?>" class="<?= $champ['key']; ?> form-control"<?= $required; ?> data-label="<?= $champ['name']; ?>">
|
|
|
459 |
|
|
|
460 |
<?php foreach ( $champ['fieldValues']['listValue'] as $list_value ) : ?>
|
|
|
461 |
|
|
|
462 |
<?php
|
|
|
463 |
$selected = '';
|
|
|
464 |
if ( '#' === substr( $list_value, -1 ) ) :
|
|
|
465 |
$selected = ' selected="selected"';
|
|
|
466 |
$list_value = substr( $list_value, 0, -1 );
|
|
|
467 |
endif;
|
|
|
468 |
?>
|
|
|
469 |
|
|
|
470 |
<?php if( 'other' !== $list_value ) : ?>
|
|
|
471 |
<option value="<?= $list_value; ?>"<?= $selected; ?>>
|
|
|
472 |
<?php echo ucfirst( $list_value ); ?>
|
|
|
473 |
</option>
|
|
|
474 |
<?php else : ?>
|
|
|
475 |
<option class="other form-control is-select" value="other" data-element="<?= $champ['element']; ?>">Autre</option>
|
|
|
476 |
<?php endif; ?>
|
|
|
477 |
|
|
|
478 |
<?php endforeach; ?>
|
|
|
479 |
|
|
|
480 |
</select>
|
|
|
481 |
</div>
|
|
|
482 |
</div>
|
|
|
483 |
<?php break;
|
|
|
484 |
|
|
|
485 |
case 'file' : ?>
|
3217 |
idir |
486 |
<div class="control-group col-sm-8 mb-3">
|
3208 |
idir |
487 |
<div class="input-file-container<?= $help; ?>">
|
|
|
488 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?php echo $champ['key'] . ' input-file'; ?> form-control" <?php echo $description . $placeholder . $required; ?> accept="application/pdf, image/*, video/*" data-label="<?= $champ['name']; ?>">
|
|
|
489 |
<label for="<?= $champ['key']; ?>" class="label-file<?= $mandatory; ?>" <?= $description; ?>><i class="fas fa-download" aria-hidden="true"></i> <?= $champ['name']; ?></label>
|
|
|
490 |
|
|
|
491 |
<?php if ( !$champ['mandatory'] ) : ?>
|
|
|
492 |
<div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
|
|
|
493 |
<?php endif; ?>
|
|
|
494 |
|
|
|
495 |
</div>
|
|
|
496 |
</div>
|
|
|
497 |
<?php break;
|
|
|
498 |
|
|
|
499 |
case 'textarea': ?>
|
|
|
500 |
<div class="control-group">
|
3217 |
idir |
501 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
502 |
<div class="col-sm-8 mb-3">
|
|
|
503 |
<textarea type="<?= $champ['element']; ?>" id="<?= $champ['key']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?= $champ['name']; ?>"></textarea>
|
|
|
504 |
</div>
|
|
|
505 |
</div>
|
|
|
506 |
<?php break;
|
|
|
507 |
|
|
|
508 |
case 'range': ?>
|
|
|
509 |
<div class="control-group">
|
3217 |
idir |
510 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $help . $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
511 |
<div class="col-sm-8 mb-3">
|
|
|
512 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?= $champ['name']; ?>">
|
|
|
513 |
</div>
|
|
|
514 |
</div>
|
|
|
515 |
<?php break;
|
|
|
516 |
|
|
|
517 |
case 'number':
|
|
|
518 |
case 'date': ?>
|
|
|
519 |
<div class="control-group">
|
3217 |
idir |
520 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?php echo $datepicker . $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
521 |
<div class="col-sm-8 mb-3">
|
|
|
522 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help . $datepicker; ?> form-control"<?php echo $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?= $champ['name']; ?>">
|
|
|
523 |
</div>
|
|
|
524 |
</div>
|
|
|
525 |
<?php break;
|
|
|
526 |
|
|
|
527 |
case 'text' :
|
|
|
528 |
case 'email':
|
|
|
529 |
default: ?>
|
|
|
530 |
<div class="control-group">
|
3217 |
idir |
531 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
3208 |
idir |
532 |
<div class="col-sm-8 mb-3">
|
|
|
533 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?= $champ['name']; ?>">
|
|
|
534 |
</div>
|
|
|
535 |
</div>
|
|
|
536 |
<?php break;
|
|
|
537 |
}
|
|
|
538 |
?>
|
|
|
539 |
|
|
|
540 |
<?php endforeach; ?>
|
|
|
541 |
</div>
|
|
|
542 |
</div>
|
|
|
543 |
</form>
|
|
|
544 |
<?php endif; ?><!-- Fin champs supplémentaires -->
|
|
|
545 |
|
|
|
546 |
<div id="image" class="row"></div>
|
|
|
547 |
</div>
|
|
|
548 |
|
|
|
549 |
<!-- Bouton cr&ation d'une obs -->
|
|
|
550 |
<div class="row mb-3 bloc-bottom">
|
|
|
551 |
<div class="centre" title="Une fois les champs remplis, vous pouvez cliquer sur ce bouton pour
|
|
|
552 |
ajouter votre observation à la liste à transmettre.">
|
|
|
553 |
<a id="ajouter-obs" class="btn btn-primary">
|
|
|
554 |
<i class="fas fa-check-square"></i> Créer
|
|
|
555 |
</a>
|
|
|
556 |
</div>
|
|
|
557 |
</div>
|
|
|
558 |
|
|
|
559 |
<!-- Messages d'erreur du formulaire-->
|
|
|
560 |
<div class="row">
|
|
|
561 |
<div class="zone-alerte">
|
|
|
562 |
<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
|
|
|
563 |
<a class="close">×</a>
|
|
|
564 |
<h4 class="alert-heading">Information : 10 observations maximum</h4>
|
|
|
565 |
<p>
|
|
|
566 |
Vous venez d'ajouter votre 10ème observation.<br/>
|
|
|
567 |
Pour en ajouter de nouvelles, il est nécessaire de les transmettre en cliquant sur le bouton ci-dessous.
|
|
|
568 |
</p>
|
|
|
569 |
</div>
|
|
|
570 |
</div>
|
|
|
571 |
<div class="zone-alerte">
|
|
|
572 |
<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
|
|
|
573 |
<a class="close">×</a>
|
|
|
574 |
<h4 class="alert-heading">Information : champs en erreur</h4>
|
|
|
575 |
<p>
|
|
|
576 |
Certains champs du formulaire sont mal remplis.<br/>
|
|
|
577 |
Veuillez vérifier vos données.
|
|
|
578 |
</p>
|
|
|
579 |
</div>
|
|
|
580 |
</div>
|
|
|
581 |
</div>
|
|
|
582 |
|
|
|
583 |
<!-- Affiche le tableau récapitualif des observations ajoutées -->
|
|
|
584 |
<div id="zone-liste-obs" class="hidden">
|
|
|
585 |
<div class="alert alert-info">
|
|
|
586 |
<h2 class="transmission-title"><strong>Observations à transmettre : <span class="obs-nbre badge badge-info">0</span></strong></h2>
|
|
|
587 |
<button id="transmettre-obs" class="btn btn-primary droite" disabled="disabled"
|
|
|
588 |
title="Ajoute les observations ci-dessous à votre Carnet en Ligne et les rend publiques." type="button">
|
|
|
589 |
Transmettre
|
|
|
590 |
</button>
|
|
|
591 |
</div>
|
|
|
592 |
<div id="liste-obs" ></div>
|
|
|
593 |
<div class="row">
|
|
|
594 |
<div class="zone-alerte">
|
|
|
595 |
<div id="dialogue-zero-obs" class="alert alert-block hidden">
|
|
|
596 |
<a class="close">×</a>
|
|
|
597 |
<h4 class="alert-heading">Attention : aucune observation</h4>
|
|
|
598 |
<p>Veuillez saisir des observations pour les transmettre.</p>
|
|
|
599 |
</div>
|
|
|
600 |
<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
|
|
|
601 |
<a class="close">×</a>
|
|
|
602 |
<h4 class="alert-heading">Information : transmission des observations</h4>
|
|
|
603 |
<div class="alert-txt"></div>
|
|
|
604 |
</div>
|
|
|
605 |
<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
|
|
|
606 |
<a class="close">×</a>
|
|
|
607 |
<h4 class="alert-heading">Erreur : transmission des observations</h4>
|
|
|
608 |
<div class="alert-txt"></div>
|
|
|
609 |
</div>
|
|
|
610 |
</div>
|
|
|
611 |
</div>
|
|
|
612 |
</div>
|
|
|
613 |
|
|
|
614 |
<!-- Fenêtres modales -->
|
|
|
615 |
<div id="chargement" class="modal-fenetre hidden">
|
|
|
616 |
<div id="chargement-centrage" class="modal-contenu">
|
|
|
617 |
<div class="progress progress-striped active">
|
|
|
618 |
<div id="barre-progression-upload" class="bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
|
|
|
619 |
<span class="sr-only">0/10 observations transmises</span>
|
|
|
620 |
</div>
|
|
|
621 |
</div>
|
|
|
622 |
<p id="chargement-txt" style="color:white;font-size:1.5em;">
|
|
|
623 |
Transfert des observations en cours...<br />
|
|
|
624 |
Cela peut prendre plusieurs minutes en fonction de la taille des images et du nombre
|
|
|
625 |
d'observations à transférer.
|
|
|
626 |
</p>
|
|
|
627 |
</div>
|
|
|
628 |
</div>
|
|
|
629 |
|
|
|
630 |
<!-- Templates HTML -->
|
|
|
631 |
<div id="tpl-transmission-ok" class="hidden">
|
|
|
632 |
<p class="msg">
|
|
|
633 |
Vos observations ont bien été transmises.<br />
|
|
|
634 |
Elles sont désormais consultables à travers les différents outils de visualisation
|
|
|
635 |
du réseau (<a href="https://www.tela-botanica.org/site:botanique">eFlore</a>,
|
|
|
636 |
<a href="https://www.tela-botanica.org/appli:pictoflora">galeries d'images</a>,
|
|
|
637 |
<a href="https://www.tela-botanica.org/appli:identiplante">identiplante</a>,
|
|
|
638 |
<a href="https://www.tela-botanica.org/widget:cel:cartoPoint">cartographie (widget)</a>...)<br />
|
|
|
639 |
Si vous souhaitez les modifier ou les supprimer, vous pouvez les retrouver en vous
|
|
|
640 |
connectant à votre <a href="https://www.tela-botanica.org/appli:cel">Carnet en ligne</a>.<br />
|
|
|
641 |
N'oubliez pas qu'il est nécessaire de
|
3210 |
delphine |
642 |
<a href="https://beta.tela-botanica.org/test/page:inscription">s'inscrire à Tela Botanica</a>
|
3208 |
idir |
643 |
au préalable, si ce n'est pas déjà fait.
|
|
|
644 |
</p>
|
|
|
645 |
</div>
|
|
|
646 |
<div id="tpl-transmission-ko" class="hidden">
|
|
|
647 |
<p class="msg">
|
|
|
648 |
Une erreur est survenue lors de la transmission d'une observation (indiquée en rouge).<br />
|
|
|
649 |
Vous pouvez tenter de la retransmettre en cliquant à nouveau sur le bouton transmettre ou bien la supprimer
|
|
|
650 |
et transmettre les suivantes.<br />
|
|
|
651 |
Néanmoins, les observations n'apparaissant plus dans la liste "observations à transmettre", ont bien été transmises lors de votre précédente tentative. <br />
|
|
|
652 |
Si le problème persiste, vous pouvez signaler le dysfonctionnement sur
|
|
|
653 |
<a href="<?= $url_remarques; ?>?service=cel&pageSource=<?php echo urlencode( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'] ); ?>" target="_blank"
|
|
|
654 |
onclick="
|
|
|
655 |
javascript: window.open( this.getAttribute( 'href' ), 'Tela Botanica - Remarques', config = 'height=700, width=640, scrollbars=yes, resizable=yes' );
|
|
|
656 |
return false;
|
|
|
657 |
"
|
|
|
658 |
>le formulaire de signalement d'erreurs</a>.
|
|
|
659 |
</p>
|
|
|
660 |
</div>
|
|
|
661 |
|
|
|
662 |
<footer>
|
|
|
663 |
<div class="row centre component-tools-item-link">
|
|
|
664 |
<a href="https://www.tela-botanica.org/appli:cel" target="" class="mr-1" style="color: #e16e37">
|
|
|
665 |
<span>Gestion</span>
|
|
|
666 |
</a>
|
|
|
667 |
<a href="https://www.tela-botanica.org/widget:cel:cartoPoint?projet=<?= $widget['projet']; ?>" target="" class="mr-2" style="color: #918a6f">
|
|
|
668 |
<span>Carto</span>
|
|
|
669 |
</a>
|
|
|
670 |
<a href="https://www.tela-botanica.org/widget:cel:photo?projet=<?= $widget['projet']; ?>" target="" class="mr-2" style="color: #964e75">
|
|
|
671 |
<span>Photo</span>
|
|
|
672 |
</a>
|
|
|
673 |
<a href="https://www.tela-botanica.org/widget:cel:observation?projet=<?= $widget['projet']; ?>" target="" class="mr-2" style="color: #b2cb43">
|
|
|
674 |
<span>Observation</span>
|
|
|
675 |
</a>
|
|
|
676 |
<a href="https://www.tela-botanica.org/widget:cel:export?projet=<?= $widget['projet']; ?>" target="" class="mr-2" style="color: #009fb8">
|
|
|
677 |
<span>Export</span>
|
|
|
678 |
</a>
|
|
|
679 |
<a href="https://www.tela-botanica.org/appli:pictoflora?projet=<?= $widget['projet']; ?>" target="" class="mr-2" style="color: #927fa2">
|
|
|
680 |
<span>PictoFlora</span>
|
|
|
681 |
</a>
|
|
|
682 |
<a href="https://www.tela-botanica.org/appli:identiplante?projet=<?= $widget['projet']; ?>" target="" style="color: #f25a52">
|
|
|
683 |
<span>IdentiPlante</span>
|
|
|
684 |
</a>
|
|
|
685 |
</div>
|
|
|
686 |
</footer>
|
|
|
687 |
</div>
|
|
|
688 |
</div>
|
3217 |
idir |
689 |
<div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
|
|
|
690 |
<div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
691 |
<div class="modal-content">
|
|
|
692 |
<div class="modal-header">
|
|
|
693 |
<h5 class="modal-title" id="help-modal-label"></h5>
|
|
|
694 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
695 |
<span aria-hidden="true">×</span>
|
|
|
696 |
</button>
|
|
|
697 |
</div>
|
|
|
698 |
<div class="modal-body" id="print_content"></div>
|
|
|
699 |
<div class="modal-footer">
|
|
|
700 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
|
|
|
701 |
</div>
|
|
|
702 |
</div>
|
|
|
703 |
</div>
|
|
|
704 |
</div>
|
3221 |
delphine |
705 |
<!-- carto -->
|
|
|
706 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-custom-element.js"></script>
|
|
|
707 |
<script>
|
|
|
708 |
var tbGeolocation = document.getElementById('tb-geolocation');
|
|
|
709 |
tbGeolocation.addEventListener("location", function(location) {
|
|
|
710 |
console.log(location.detail);
|
|
|
711 |
});
|
|
|
712 |
</script>
|
|
|
713 |
|
3208 |
idir |
714 |
<!-- Jquery -->
|
3217 |
idir |
715 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
|
3208 |
idir |
716 |
|
|
|
717 |
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
|
|
|
718 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
|
|
|
719 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script>
|
|
|
720 |
<!-- Jquery Plugins -->
|
|
|
721 |
<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
|
|
|
722 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
|
|
|
723 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
|
|
|
724 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
|
|
|
725 |
<!-- Jquery Form :nécessaire pour l'upload des images -->
|
|
|
726 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
|
|
727 |
<!-- Bootstrap -->
|
3217 |
idir |
728 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
3208 |
idir |
729 |
<!-- Authentification -->
|
|
|
730 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/auth.js"></script>
|
|
|
731 |
<!-- Connexion, bloc de prévisualisation, date -->
|
|
|
732 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/WidgetSaisie.js"></script>
|
|
|
733 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/champs-supp.js"></script>
|
|
|
734 |
<script type="text/javascript">
|
|
|
735 |
//<![CDATA[
|
|
|
736 |
$( document ).ready( function() {
|
|
|
737 |
|
|
|
738 |
// OMG un modèle objet !!
|
|
|
739 |
var widget = new WidgetSaisie();
|
|
|
740 |
|
|
|
741 |
//
|
|
|
742 |
//
|
|
|
743 |
//
|
|
|
744 |
// La présence du parametre 'debug' dans l'URL enclenche le débogage
|
|
|
745 |
widget.debug = <?= isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
|
|
|
746 |
// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
|
|
|
747 |
widget.html5 = <?= isset($_GET['html5']) ? 'true' : 'false'; ?>;
|
|
|
748 |
// Mot-clé du widget/projet
|
|
|
749 |
widget.tagProjet = "WidgetSaisie";
|
|
|
750 |
// Mots-clés à ajouter aux images
|
|
|
751 |
widget.tagImg = "<?= isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
|
|
|
752 |
widget.separationTagImg = "<?= isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
|
|
|
753 |
widget.tagImg = <?= isset($_GET['motcle']) ? "'".$_GET['motcle']."' + widget.separationTagImg + widget.tagImg" : 'widget.tagImg'; ?>;
|
|
|
754 |
// Mots-clés à ajouter aux observations
|
|
|
755 |
widget.tagObs = "<?= isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
|
|
|
756 |
widget.separationTagObs = "<?= isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
|
|
|
757 |
widget.tagObs = <?= isset($_GET['projet']) ? "'".$_GET['projet']."' + widget.separationTagObs + widget.tagObs" : 'widget.tagObs'; ?>;
|
|
|
758 |
// Précharger le formulaire avec les infos d'une observation
|
|
|
759 |
widget.obsId = "<?=isset($_GET['id-obs']) ? $_GET['id-obs'] : ''?>";
|
|
|
760 |
// URL du web service réalisant l'insertion des données dans la base du CEL.
|
|
|
761 |
widget.serviceSaisieUrl = "<?=$url_ws_saisie?>";
|
|
|
762 |
// URL du web service permettant de récupérer les infos d'une observation du CEL.
|
|
|
763 |
widget.serviceObsUrl = "<?=$url_ws_obs?>";
|
|
|
764 |
//
|
|
|
765 |
//
|
|
|
766 |
//
|
|
|
767 |
|
|
|
768 |
// langue
|
|
|
769 |
widget.langue = "<?= $widget['langue']; ?>";
|
|
|
770 |
// Squelette d'URL du web service de l'annuaire.
|
|
|
771 |
widget.serviceAnnuaireIdUrl = "<?= $url_ws_annuaire; ?>";
|
|
|
772 |
// URL de l'icône du chargement en cours
|
|
|
773 |
widget.chargementIconeUrl = "<?= $url_base?>modules/saisie/squelettes/defaut/img/icones/chargement.gif";
|
|
|
774 |
// URL de l'icône du chargement en cours d'une image
|
|
|
775 |
widget.chargementImageIconeUrl = "<?= $url_base?>modules/saisie/squelettes/defaut/img/icones/chargement-image.gif";
|
|
|
776 |
// URL de l'icône du calendrier
|
|
|
777 |
widget.calendrierIconeUrl = "<?= $url_base?>modules/saisie/squelettes/defaut/img/icones/calendrier.png";
|
|
|
778 |
// URL de l'icône pour une photo manquante
|
|
|
779 |
widget.pasDePhotoIconeUrl = "<?= $url_base?>modules/saisie/squelettes/defaut/img/icones/pasdephoto.png";
|
|
|
780 |
|
|
|
781 |
// Code du référentiel utilisé pour les nom scientifiques.
|
|
|
782 |
widget.nomSciReferentiel = "<?= strtolower( $widget['referentiel'] ); ?>";
|
|
|
783 |
// Indication de la présence d'une espèce imposée
|
|
|
784 |
widget.especeImposee = "<?= $espece_imposee; ?>";
|
|
|
785 |
// Tableau d'informations sur l'espèce imposée
|
|
|
786 |
widget.infosEspeceImposee = "<?= $infos_espece; ?>";
|
|
|
787 |
// Nombre d'élément dans les listes d'auto-complétion
|
|
|
788 |
widget.autocompletionElementsNbre = 20;
|
|
|
789 |
// Indication de la présence d'un référentiel imposé
|
|
|
790 |
widget.referentielImpose = "<?= $referentiel_impose; ?>";
|
|
|
791 |
|
|
|
792 |
// URL du web service permettant l'auto-complétion des noms scientifiques
|
|
|
793 |
widget.serviceAutocompletionNomSciUrl = "<?= $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
|
|
|
794 |
"masque={masque}&"+
|
|
|
795 |
"recherche=etendue&"+
|
|
|
796 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
|
|
797 |
"ns.structure=au&"+
|
|
|
798 |
"navigation.limite=" + widget.autocompletionElementsNbre;
|
|
|
799 |
// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
|
|
|
800 |
widget.serviceAutocompletionNomSciUrlTpl = "<?= $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
|
|
|
801 |
"masque={masque}&"+
|
|
|
802 |
"recherche=etendue&"+
|
|
|
803 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
|
|
804 |
"retour.tri=alpharet&"+ // tri "à la CeL"
|
|
|
805 |
"ns.structure=au&"+
|
|
|
806 |
"navigation.limite=" + widget.autocompletionElementsNbre;
|
|
|
807 |
// Nombre d'observations max autorisé avant transmission
|
|
|
808 |
widget.obsMaxNbre = 10;
|
|
|
809 |
// Durée d'affichage en milliseconde des messages d'informations
|
|
|
810 |
widget.dureeMessage = 30000;
|
|
|
811 |
//
|
|
|
812 |
//
|
|
|
813 |
//
|
|
|
814 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
|
|
815 |
widget.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
|
|
|
816 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
|
|
817 |
widget.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
|
|
|
818 |
// URL du marqueur à utiliser dans la carte Google Map
|
|
|
819 |
widget.googleMapMarqueurUrl = "<?=$url_base?>modules/saisie/squelettes/defaut/img/marqueurs/epingle.png";
|
|
|
820 |
//
|
|
|
821 |
//
|
|
|
822 |
//
|
|
|
823 |
|
|
|
824 |
// Initialisation du bousin
|
|
|
825 |
widget.init();
|
|
|
826 |
});
|
|
|
827 |
//]]>
|
|
|
828 |
</script>
|
|
|
829 |
|
|
|
830 |
<!-- Barre de navigation -->
|
|
|
831 |
<?php if ( $bar ): ?>
|
|
|
832 |
<script src="<?= $url_script_navigation; ?>"></script>
|
|
|
833 |
<?php endif; ?>
|
3120 |
delphine |
834 |
</body>
|
3208 |
idir |
835 |
</html>
|