3393 |
delphine |
1 |
<form id="form-observation" role="form" autocomplete="on">
|
|
|
2 |
<h2><?php echo $observation['titre-obs']; ?></h2>
|
|
|
3 |
<div id="zone-observation" class="row">
|
|
|
4 |
<div class="col-md-6">
|
|
|
5 |
|
|
|
6 |
<div class="mb-3">
|
|
|
7 |
<label class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observateur['geoloc-title']; ?>">
|
|
|
8 |
<i class="fa fa-map" aria-hidden="true"></i>
|
|
|
9 |
<?php echo $observation['lieu-releve']; ?>
|
|
|
10 |
</label>
|
|
|
11 |
<div class="control-group">
|
|
|
12 |
<span id="geoloc-error" class="error hidden"><?php echo $observation['geoloc-erreur']; ?></span>
|
|
|
13 |
<div id="geoloc" class="col-sm-8 geoloc">
|
|
|
14 |
<tb-geolocation-element
|
|
|
15 |
id="tb-geolocation"
|
|
|
16 |
layer='osm'
|
|
|
17 |
zoom_init="4"
|
|
|
18 |
lat_init="46.5"
|
|
|
19 |
lng_init="2.9"
|
|
|
20 |
marker="true"
|
|
|
21 |
polyline="false"
|
|
|
22 |
polygon="false"
|
|
|
23 |
show_lat_lng_elevation_inputs="true"
|
|
|
24 |
osm_class_filter=""
|
|
|
25 |
elevation_provider="mapquest"
|
|
|
26 |
map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
|
|
|
27 |
>
|
|
|
28 |
</tb-geolocation-element>
|
|
|
29 |
</div>
|
|
|
30 |
<div id="geoloc-datas" class="hidden">
|
|
|
31 |
<div class="mt-3">
|
|
|
32 |
<label class="col-sm-8" for="rue"><?php echo $observation['rue']; ?></label>
|
|
|
33 |
<div class="col-sm-8">
|
|
|
34 |
<!-- <input type="text" class="form-control rue" disabled id="rue" name="rue" value="1 Place Georges Frêche"> -->
|
|
|
35 |
<input type="text" class="form-control rue" disabled id="rue" name="rue" value="">
|
|
|
36 |
</div>
|
|
|
37 |
</div>
|
|
|
38 |
<div class="mt-3">
|
|
|
39 |
<label class="col-sm-8" for="commune-nom"><?php echo $observation['nom-commune']; ?></label>
|
|
|
40 |
<div class="col-sm-8">
|
|
|
41 |
<!-- <input type="text" class="form-control commune-nom" disabled id="commune-nom" name="commune-nom" value="Montpellier">
|
|
|
42 |
<input type="hidden" class="commune-insee" disabled id="commune-insee" name="commune-insee" value="34172"> -->
|
|
|
43 |
<input type="text" class="form-control commune-nom" disabled id="commune-nom" name="commune-nom" value="">
|
|
|
44 |
<input type="hidden" class="commune-insee" disabled id="commune-insee" name="commune-insee" value="">
|
|
|
45 |
</div>
|
|
|
46 |
</div>
|
|
|
47 |
<!-- <input type="hidden" class="form-control latitude" disabled id="latitude" name="latitude" value="43.5984" style="display:none">
|
|
|
48 |
<input type="hidden" class="form-control longitude" disabled id="longitude" name="longitude" value="3.896799" style="display:none"> -->
|
|
|
49 |
<!-- <input type="text" class="form-control altitude" disabled id="altitude" name="altitude" value="23"> -->
|
|
|
50 |
<input type="hidden" class="form-control latitude" disabled id="latitude" name="latitude" value="" style="display:none">
|
|
|
51 |
<input type="hidden" class="form-control longitude" disabled id="longitude" name="longitude" value="" style="display:none">
|
|
|
52 |
<input type="hidden" class="form-control altitude" disabled id="altitude" name="altitude" value="" style="display:none">
|
|
|
53 |
<div class="row pl-3 pr-3 mt-3">
|
|
|
54 |
<div class="d-flex flex-column col-sm-4">
|
|
|
55 |
<label for="pays"><?php echo $observation['pays']; ?></label>
|
|
|
56 |
<div>
|
|
|
57 |
<!-- <input type="text" class="form-control pays" disabled id="pays" name="pays" value="France"> -->
|
|
|
58 |
<input type="text" class="form-control pays" disabled id="pays" name="pays" value="">
|
|
|
59 |
</div>
|
|
|
60 |
</div>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
|
|
|
67 |
<div class="col-md-6">
|
|
|
68 |
<h3 class="mb-3"><?php echo $observation['titre-info-obs']; ?></h3>
|
|
|
69 |
<div id="obs-info" class="text-justify col-sm-8">
|
|
|
70 |
<?php echo $observation['obs-info']; ?>
|
|
|
71 |
</div>
|
|
|
72 |
|
|
|
73 |
<div class="control-group">
|
|
|
74 |
<label for="releve-date" class="col-sm-8 obligatoire" title="">
|
|
|
75 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
|
76 |
<?php echo $observation['date']; ?>
|
|
|
77 |
</label>
|
|
|
78 |
<div class="col-sm-8 mb-3 has-tooltip" data-toggle="tooltip" title="<?php echo $observation['date-title']; ?>">
|
|
|
79 |
<input type="date" id="releve-date" name="releve-date" class="form-control" max="" placeholder="jj/mm/aaaa" required>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
|
|
|
83 |
<div class="">
|
|
|
84 |
<label for="commentaires" class="col-sm-8">
|
|
|
85 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
|
|
86 |
<?php echo $general['commentaires']; ?>
|
|
|
87 |
</label>
|
|
|
88 |
<div class="col-sm-8 mb-3">
|
|
|
89 |
<textarea id="commentaires" class="col-md-12" rows="7" name="commentaires"></textarea>
|
|
|
90 |
</div>
|
|
|
91 |
</div>
|
|
|
92 |
<!-- Bouton création d'une obs -->
|
|
|
93 |
<div class="col-sm-8 mb-3">
|
|
|
94 |
<div title="<?php echo $resume['creer-title']; ?>">
|
|
|
95 |
<a href="" id="soumettre-releve" class="charger-carto btn btn-primary"><?php echo $general['enregistrer']; ?></a href="">
|
|
|
96 |
</div>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
</form><!-- fin zone relevé -->
|
|
|
101 |
|
|
|
102 |
<!-- Messages d'erreur du formulaire observateur -->
|
|
|
103 |
<div class="zone-alerte">
|
|
|
104 |
<div id="dialogue-geoloc-ko" class="alert alert-warning alert-block hidden">
|
|
|
105 |
<a class="close">×</a>
|
|
|
106 |
<h4 class="alert-heading"><?php echo $observation['alertgk-title']; ?></h4>
|
|
|
107 |
<p><?php echo $observation['alertgk']; ?></p>
|
|
|
108 |
</div>
|
|
|
109 |
<div id="dialogue-date-rue-ko" class="alert alert-warning alert-block hidden">
|
|
|
110 |
<a class="close">×</a>
|
|
|
111 |
<h4 class="alert-heading"><?php echo $observation['alertdr-title']; ?></h4>
|
|
|
112 |
<p><?php echo $observation['alertdr']; ?></p>
|
|
|
113 |
</div>
|
|
|
114 |
</div>
|
|
|
115 |
|
|
|
116 |
<div id="zone-arbres" class="bloc-top hidden">
|
|
|
117 |
<h2 class="mb-3"><?php echo $arbres['titre']; ?></h2>
|
|
|
118 |
<div id="bouton-saisir-lichens" class="btn btn-info hidden m-3" data-load="lichens">
|
|
|
119 |
<i class="far fa-snowflake"></i> <?php echo $resume['saisir-lichens']; ?>
|
|
|
120 |
</div>
|
|
|
121 |
<div class="row">
|
|
|
122 |
<div id="bloc-arbres-gauche" class="col-md-6">
|
|
|
123 |
<div id="bloc-info-arbres"></div>
|
|
|
124 |
<div id="bloc-form-arbres" class="">
|
|
|
125 |
<div id="arbres-info" class="text-justify">
|
|
|
126 |
<?php echo $arbres['arbres-info']; ?>
|
|
|
127 |
</div>
|
|
|
128 |
<form id="form-arbre" role="form" autocomplete="off">
|
|
|
129 |
<h3 class="mb-3"><?php echo $general['arbre'];?> <span id="arbre-nb">1</span> :</h3>
|
|
|
130 |
<input id="referentiel" name="referentiel" value="bdtfx" type="hidden">
|
|
|
131 |
<div id="bloc-taxon" class="control-group">
|
|
|
132 |
<label for="taxon" class="col-sm-8 obligatoire" title="">
|
|
|
133 |
<i class="fa fa-leaf" aria-hidden="true"></i>
|
|
|
134 |
<?php echo $general['espece']; ?> (bdtfx)
|
|
|
135 |
</label>
|
|
|
136 |
<div class="col-sm-8 mb-3">
|
|
|
137 |
<input id="taxon" name="taxon" class="form-control taxon-validation has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $general['espece-title']; ?>" required autocomplete="off">
|
|
|
138 |
</div>
|
|
|
139 |
</div>
|
|
|
140 |
|
|
|
141 |
<div class="control-group">
|
|
|
142 |
<label for="certitude" class="col-sm-8 obligatoire">
|
|
|
143 |
<i class="fa fa-question" aria-hidden="true"></i>
|
|
|
144 |
<?php echo $general['certitude']; ?>
|
|
|
145 |
</label>
|
|
|
146 |
<div class="col-sm-8 mb-3">
|
|
|
147 |
<select id="certitude" name="certitude" class="form-control custom-select" required>
|
|
|
148 |
<option class="choisir" hidden value="" selected><?php echo $general['choisir']; ?></option>
|
|
|
149 |
<option class="aDeterminer" value="à determiner"><?php echo $general['certADet']; ?></option>
|
|
|
150 |
<option class="douteuse" value="douteuse"><?php echo $general['certDout']; ?></option>
|
|
|
151 |
<option class="certaine" value="certaine"><?php echo $general['certCert']; ?></option>
|
|
|
152 |
</select>
|
|
|
153 |
</div>
|
|
|
154 |
</div>
|
|
|
155 |
<div class="">
|
|
|
156 |
<label class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observateur['geoloc-title']; ?>">
|
|
|
157 |
<i class="fa fa-map-marked-alt " aria-hidden="true"></i>
|
|
|
158 |
<?php echo $arbres['localiser']; ?>
|
|
|
159 |
</label>
|
|
|
160 |
<div class="control-group">
|
|
|
161 |
<div id="geoloc-datas-arbres" class="hidden">
|
|
|
162 |
<div class="mt-3">
|
|
|
163 |
<label class="col-sm-8" for="rue-arbres"><?php echo $observation['rue']; ?></label>
|
|
|
164 |
<div class="col-sm-8">
|
|
|
165 |
<input type="text" class="form-control rue-arbres" disabled id="rue-arbres" name="rue-arbres" value="">
|
|
|
166 |
</div>
|
|
|
167 |
</div>
|
|
|
168 |
<div class="row pl-3 pr-3 mt-3">
|
|
|
169 |
<div class="d-flex flex-column col-sm-4">
|
|
|
170 |
<label class="" for="latitude-arbres"><?php echo $observation['latitude']; ?></label>
|
|
|
171 |
<div class="">
|
|
|
172 |
<input type="text" class="form-control latitude-arbres" disabled id="latitude-arbres" name="latitude-arbres" value="">
|
|
|
173 |
</div>
|
|
|
174 |
</div>
|
|
|
175 |
<div class="d-flex flex-column col-sm-4">
|
|
|
176 |
<label class="" for="longitude-arbres"><?php echo $observation['longitude']; ?></label>
|
|
|
177 |
<div class="">
|
|
|
178 |
<input type="text" class="form-control longitude-arbres" disabled id="longitude-arbres" name="longitude-arbres" value="">
|
|
|
179 |
</div>
|
|
|
180 |
</div>
|
|
|
181 |
</div>
|
|
|
182 |
<input type="hidden" id="altitude-arbres" name="altitude-arbres" class="" value="" style="display:none">
|
|
|
183 |
</div>
|
|
|
184 |
<div id="geoloc-arbres" class="col-sm-8"></div>
|
|
|
185 |
</div>
|
|
|
186 |
</div>
|
|
|
187 |
</form>
|
|
|
188 |
<form id="form-upload" class="form-horizontal" action="<?php echo $url_ws_upload ?>" method="post" enctype="multipart/form-data">
|
|
|
189 |
<div class="col-sm-8 mb-2 list-label and-help">
|
|
|
190 |
<i class="fa fa-images" aria-hidden="true"></i>
|
|
|
191 |
<?php echo $arbres['titre-photos']; ?>
|
|
|
192 |
</div>
|
|
|
193 |
<p id="miniature-arbres-info" class="col-sm-8">
|
|
|
194 |
<?php echo $image['aide']; ?>
|
|
|
195 |
</p>
|
|
|
196 |
<div id ="photos-conteneur" class="control-group col-sm-8">
|
|
|
197 |
<div id="bouton-fichier">
|
|
|
198 |
<label for="fichier" class="label-file btn btn-large btn-info mb-3" title="<?php echo $image['photos-title']; ?>">
|
|
|
199 |
<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
|
|
|
200 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
|
|
201 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
|
|
202 |
</label>
|
|
|
203 |
</div>
|
|
|
204 |
|
|
|
205 |
<div id="miniatures"></div>
|
|
|
206 |
<p class="miniature-msg" class="span12"> </p>
|
|
|
207 |
</div>
|
|
|
208 |
</form>
|
|
|
209 |
<form id="form-arbre-fs" role="form" autocomplete="off">
|
|
|
210 |
<div class="control-group">
|
|
|
211 |
<label for="circonference" class="col-sm-8 obligatoire">
|
|
|
212 |
<i class="fa fa-circle-notch" aria-hidden="true"></i>
|
|
|
213 |
<?php echo $arbres['circonference'] ;?>
|
|
|
214 |
</label>
|
|
|
215 |
<div class="col-sm-8 mb-3">
|
|
|
216 |
<input id="circonference" type="number" name="circonference" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $arbres['circonference-title'] ;?>" placeholder="<?php echo $arbres['circonference-ph'] ;?>" step="1" min="1" required>
|
|
|
217 |
</div>
|
|
|
218 |
</div>
|
|
|
219 |
|
|
|
220 |
<div id="face-ombre" class="control-group">
|
|
|
221 |
<div class="col-sm-8 mb-2 list-label obligatoire">
|
|
|
222 |
<i class="far fa-compass" aria-hidden="true"></i>
|
|
|
223 |
<?php echo $arbres['face-ombre']; ?>
|
|
|
224 |
</div>
|
|
|
225 |
<div class="col-sm-8 mb-3 has-tooltip list" data-toggle="tooltip" title="<?php echo $arbres['face-ombre-title']; ?>" required>
|
|
|
226 |
<div class="form-check form-check-inline">
|
|
|
227 |
<input type="checkbox" id="nord" name="face-ombre" class="nord form-check-input" value="nord">
|
|
|
228 |
<label for="nord" class="nord form-check-label"><?php echo $general['nord']; ?></label>
|
|
|
229 |
</div>
|
|
|
230 |
<div class="form-check form-check-inline">
|
|
|
231 |
<input type="checkbox" id="sud" name="face-ombre" class="sud form-check-input" value="sud">
|
|
|
232 |
<label for="sud" class="sud form-check-label"><?php echo $general['sud']; ?></label>
|
|
|
233 |
</div>
|
|
|
234 |
<div class="form-check form-check-inline">
|
|
|
235 |
<input type="checkbox" id="est" name="face-ombre" class="est form-check-input" value="est">
|
|
|
236 |
<label for="est" class="est form-check-label"><?php echo $general['est']; ?></label>
|
|
|
237 |
</div>
|
|
|
238 |
<div class="form-check form-check-inline">
|
|
|
239 |
<input type="checkbox" id="ouest" name="face-ombre" class="ouest form-check-input" value="ouest">
|
|
|
240 |
<label for="ouest" class="ouest form-check-label"><?php echo $general['ouest']; ?></label>
|
|
|
241 |
</div>
|
|
|
242 |
<div class="form-check form-check-inline">
|
|
|
243 |
<input type="checkbox" id="aucune" name="face-ombre" class="ouest form-check-input" value="aucune">
|
|
|
244 |
<label for="aucune" class="aucune form-check-label"><?php echo $general['aucune']; ?></label>
|
|
|
245 |
</div>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
|
|
|
249 |
<div class="">
|
|
|
250 |
<label for="com-arbres" class="col-sm-8" title="">
|
|
|
251 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
|
|
252 |
<?php echo $general['commentaires']; ?>
|
|
|
253 |
</label>
|
|
|
254 |
<div class="col-sm-8 mb-3">
|
|
|
255 |
<textarea id="com-arbres" class="col-md-12" rows="7" name="com-arbres"></textarea>
|
|
|
256 |
</div>
|
|
|
257 |
</div>
|
|
|
258 |
</form>
|
|
|
259 |
|
|
|
260 |
<!-- Bouton création d'une obs et retour à la saisie après visualisation d'un arbre-->
|
|
|
261 |
<div class="col-sm-8 mb-3">
|
|
|
262 |
<button id="retour" class="btn btn-info has-tooltip hidden" data-toggle="tooltip" title="<?php echo $resume['retour-title']; ?>">
|
|
|
263 |
<i class="fas fa-undo-alt"></i> <?php echo $general['retour']; ?>
|
|
|
264 |
</button>
|
|
|
265 |
<button id="ajouter-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" title="<?php echo $resume['creer-title']; ?>">
|
|
|
266 |
<i class="fas fa-step-forward"></i> <?php echo $general['suivant']; ?>
|
|
|
267 |
</button>
|
|
|
268 |
</div>
|
|
|
269 |
</div>
|
|
|
270 |
</div><!-- fin formulaire arbres -->
|
|
|
271 |
<!-- zone résumé obs arbres ( =zone de droite) -->
|
|
|
272 |
<div id="boc-arbres-droite" class="col-md-6 mb-3">
|
|
|
273 |
<!-- Messages d'erreur du formulaire -->
|
|
|
274 |
<div class="row">
|
|
|
275 |
<div class="zone-alerte">
|
|
|
276 |
<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
|
|
|
277 |
<a class="close">×</a>
|
|
|
278 |
<h4 class="alert-heading"><?php echo $resume['alert10max']; ?></h4>
|
|
|
279 |
<p><?php echo $resume['alert10max-desc']; ?></p>
|
|
|
280 |
</div>
|
|
|
281 |
</div>
|
|
|
282 |
<div class="zone-alerte">
|
|
|
283 |
<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
|
|
|
284 |
<a class="close">×</a>
|
|
|
285 |
<h4 class="alert-heading"><?php echo $resume['alertchp']; ?></h4>
|
|
|
286 |
<p><?php echo $resume['alertchp-desc']; ?></p>
|
|
|
287 |
</div>
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
|
|
290 |
|
|
|
291 |
<!-- Affiche le tableau récapitualif des observations ajoutées -->
|
|
|
292 |
<div id="zone-liste-obs" class="hidden">
|
|
|
293 |
<div id="bloc-controle-liste-obs" class="alert alert-info">
|
|
|
294 |
<h2 class="transmission-title"><strong><?php echo $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
|
|
|
295 |
<button id="transmettre-obs" class="btn btn-primary has-tooltip" data-toggle="tooltip" disabled="disabled"
|
|
|
296 |
title="<?php echo $resume['trans-title']; ?>" type="button">
|
|
|
297 |
<?php echo $general['enregistrer']; ?>
|
|
|
298 |
</button>
|
|
|
299 |
</div>
|
|
|
300 |
<div id="liste-obs" ></div>
|
|
|
301 |
<div class="row">
|
|
|
302 |
<div class="zone-alerte">
|
|
|
303 |
<div id="dialogue-zero-obs" class="alert alert-block hidden">
|
|
|
304 |
<a class="close">×</a>
|
|
|
305 |
<h4 class="alert-heading"><?php echo $resume['alert0obs']; ?></h4>
|
|
|
306 |
<p><?php echo $resume['alert0obs-desc']; ?></p>
|
|
|
307 |
</div>
|
|
|
308 |
<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
|
|
|
309 |
<a class="close">×</a>
|
|
|
310 |
<h4 class="alert-heading"><?php echo $resume['info-trans']; ?></h4>
|
|
|
311 |
<div class="alert-txt"></div>
|
|
|
312 |
</div>
|
|
|
313 |
<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
|
|
|
314 |
<a class="close">×</a>
|
|
|
315 |
<h4 class="alert-heading"><?php echo $resume['alerttrans']; ?></h4>
|
|
|
316 |
<div class="alert-txt"></div>
|
|
|
317 |
</div>
|
|
|
318 |
</div>
|
|
|
319 |
</div>
|
|
|
320 |
</div>
|
|
|
321 |
|
|
|
322 |
<!-- Fenêtres modales -->
|
|
|
323 |
<div id="chargement" class="modal-fenetre hidden">
|
|
|
324 |
<div id="chargement-centrage" class="modal-contenu">
|
|
|
325 |
<div class="progress progress-striped active">
|
|
|
326 |
<div id="barre-progression-upload" class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
|
|
|
327 |
<span class="sr-only">0/10 <?php echo $resume['nbobs']; ?></span>
|
|
|
328 |
</div>
|
|
|
329 |
</div>
|
|
|
330 |
<p id="chargement-txt">
|
|
|
331 |
<?php echo $resume['transencours']; ?>
|
|
|
332 |
</p>
|
|
|
333 |
</div>
|
|
|
334 |
</div>
|
|
|
335 |
|
|
|
336 |
<!-- Templates HTML -->
|
|
|
337 |
<div id="tpl-transmission-ok" class="hidden">
|
|
|
338 |
<p class="msg"><?php echo $resume['transok']; ?></p>
|
|
|
339 |
</div>
|
|
|
340 |
<div id="tpl-transmission-ko" class="hidden">
|
|
|
341 |
<p class="msg"><?php echo $resume['transko']; ?></p>
|
|
|
342 |
</div>
|
|
|
343 |
</div><!-- fin arbres zone résumé obs ( =zone de droite ) -->
|
|
|
344 |
</div>
|
|
|
345 |
<!-- Connexion, bloc de prévisualisation, date -->
|
|
|
346 |
<script type="text/javascript">
|
|
|
347 |
//<![CDATA[
|
|
|
348 |
$( document ).ready( function() {
|
|
|
349 |
lichens = null;
|
|
|
350 |
releve = null;
|
|
|
351 |
// OMG un modèle objet !!
|
|
|
352 |
releve = new ReleveLg();
|
|
|
353 |
|
|
|
354 |
// La présence du parametre 'debug' dans l'URL enclenche le débogage
|
|
|
355 |
releve.debug = <?php echo isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
|
|
|
356 |
// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
|
|
|
357 |
releve.html5 = <?php echo isset($_GET['html5']) ? 'true' : 'false'; ?>;
|
|
|
358 |
// Mot-clé du widget/projet
|
3412 |
idir |
359 |
releve.tagProjet = "WidgetSaisie,tb_lichensgo";
|
3393 |
delphine |
360 |
// Mots-clés à ajouter aux images
|
|
|
361 |
releve.tagImg = "<?php echo isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
|
|
|
362 |
releve.separationTagImg = "<?php echo isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
|
|
|
363 |
releve.tagImg = <?php echo isset($_GET['motcle']) ? "'".$_GET['motcle']."' + releve.separationTagImg + releve.tagImg" : 'releve.tagImg'; ?>;
|
|
|
364 |
// Mots-clés à ajouter aux observations
|
|
|
365 |
releve.tagObs = "<?php echo isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
|
|
|
366 |
releve.separationTagObs = "<?php echo isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
|
|
|
367 |
releve.tagObs = <?php echo isset($_GET['projet']) ? "'".$_GET['projet']."' + releve.separationTagObs + releve.tagObs" : 'releve.tagObs'; ?>;
|
|
|
368 |
// Précharger le formulaire avec les infos d'une observation
|
|
|
369 |
releve.obsId = "<?php echo isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>";
|
|
|
370 |
// URL du web service réalisant l'insertion des données dans la base du CEL.
|
|
|
371 |
releve.serviceSaisieUrl = "<?php echo $url_ws_lg; ?>";
|
|
|
372 |
// URL du web service permettant de récupérer les infos d'une observation du CEL.
|
|
|
373 |
releve.serviceObsUrl = "<?php echo $url_ws_obs; ?>";
|
|
|
374 |
// URL du web service permettant de récupérer les images d'une observation.
|
|
|
375 |
releve.serviceObsImgs = "<?php echo $url_ws_cel_imgs; ?>";
|
|
|
376 |
// URL du web service permettant de récupérer l'url d'une image (liée à une obs)'.
|
|
|
377 |
releve.serviceObsImgUrl = "<?php echo $url_ws_cel_img_url; ?>";
|
|
|
378 |
|
|
|
379 |
// langue
|
|
|
380 |
releve.langue = "<?php echo $widget['langue']; ?>";
|
|
|
381 |
// Squelette d'URL du web service de l'annuaire.
|
|
|
382 |
releve.serviceAnnuaireIdUrl = "<?php echo $url_ws_annuaire; ?>";
|
|
|
383 |
// mode : prod / beta / local
|
|
|
384 |
releve.mode = "<?php echo $conf_mode; ?>";
|
|
|
385 |
// URL de l'icône du chargement en cours d'une image
|
|
|
386 |
releve.chargementImageIconeUrl = "<?php echo $url_base; ?>img/icones/chargement-image.gif";
|
|
|
387 |
// URL de l'icône pour une photo manquante
|
|
|
388 |
releve.pasDePhotoIconeUrl = "<?php echo $url_base; ?>img/icones/pasdephoto.png";
|
|
|
389 |
|
|
|
390 |
// Code du référentiel utilisé pour les nom scientifiques.
|
|
|
391 |
releve.nomSciReferentiel = "<?php echo strtolower( $widget['referentiel'] ); ?>";
|
|
|
392 |
// Nombre d'élément dans les listes d'auto-complétion
|
|
|
393 |
releve.autocompletionElementsNbre = 20;
|
|
|
394 |
// Indication de la présence d'un référentiel imposé
|
|
|
395 |
releve.referentielImpose = "<?php echo $referentiel_impose; ?>";
|
|
|
396 |
|
|
|
397 |
// URL du web service permettant l'auto-complétion des noms scientifiques
|
|
|
398 |
releve.serviceAutocompletionNomSciUrl = "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
|
|
|
399 |
"masque={masque}&"+
|
|
|
400 |
"recherche=etendue&"+
|
|
|
401 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
|
|
402 |
"ns.structure=au&"+
|
|
|
403 |
"navigation.limite=" + releve.autocompletionElementsNbre;
|
|
|
404 |
// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
|
|
|
405 |
releve.serviceAutocompletionNomSciUrlTpl = "<?php echo $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
|
|
|
406 |
"masque={masque}&"+
|
|
|
407 |
"recherche=etendue&"+
|
|
|
408 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
|
|
409 |
"retour.tri=alpharet&"+ // tri "à la CeL"
|
|
|
410 |
"ns.structure=au&"+
|
|
|
411 |
"navigation.limite=" + releve.autocompletionElementsNbre;
|
|
|
412 |
// Nombre d'observations max autorisé avant transmission
|
|
|
413 |
releve.obsMaxNbre = 10;
|
|
|
414 |
// Durée d'affichage en milliseconde des messages d'informations
|
|
|
415 |
releve.dureeMessage = 10000;
|
|
|
416 |
|
|
|
417 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
|
|
418 |
releve.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
|
|
|
419 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
|
|
420 |
releve.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
|
|
|
421 |
|
|
|
422 |
// Initialisation du bousin
|
|
|
423 |
releve.init();
|
|
|
424 |
});
|
|
|
425 |
//]]>
|
|
|
426 |
</script>
|
|
|
427 |
</div>
|