Line 34... |
Line 34... |
34 |
<!-- Bootstrap CSS -->
|
34 |
<!-- Bootstrap CSS -->
|
35 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
|
35 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
|
36 |
<!-- Fontawesome -->
|
36 |
<!-- Fontawesome -->
|
37 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
37 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
38 |
<!-- Carto -->
|
38 |
<!-- Carto -->
|
- |
|
39 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="anonymous">
|
- |
|
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">
|
39 |
<link href="<?php echo $url_base; ?>js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
|
42 |
<link rel="stylesheet" href="<?php echo $url_base;?>js/tb-geoloc/css/geoloc.css" type="text/css">
|
40 |
<!-- STYLE SAISIE -->
|
43 |
<!-- STYLE SAISIE -->
|
41 |
<link href="<?php echo $url_base; ?>css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
|
44 |
<link href="<?php echo $url_base; ?>css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
|
42 |
<link href="<?php echo $url_base; ?>css/saisieSpe.css" rel="stylesheet" type="text/css" media="screen" />
|
45 |
<link href="<?php echo $url_base; ?>css/saisieSpe.css" rel="stylesheet" type="text/css" media="screen" />
|
Line 43... |
Line 46... |
43 |
|
46 |
|
Line 187... |
Line 190... |
187 |
<h2><?php echo $observation['titre']; ?></h2>
|
190 |
<h2><?php echo $observation['titre']; ?></h2>
|
188 |
<div id="zone-observation" class="row">
|
191 |
<div id="zone-observation" class="row">
|
189 |
<div class="col-md-6">
|
192 |
<div class="col-md-6">
|
Line 190... |
Line 193... |
190 |
|
193 |
|
191 |
<div class="mb-3">
|
194 |
<div class="mb-3">
|
192 |
<label for="geolocalisation" class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observation['geoloc-title']; ?>">
|
195 |
<label id="geoloc-label" for="geolocalisation" class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observation['geoloc-title']; ?>">
|
193 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
196 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
194 |
<?php echo $observation['geolocalisation']; ?>
|
197 |
<?php echo $observation['geolocalisation']; ?>
|
195 |
</label>
|
198 |
</label>
|
196 |
<?php if( $widget['type_localisation'] === 'rue' ) : ?>
|
199 |
<?php if( $widget['type_localisation'] === 'rue' ) : ?>
|
Line 201... |
Line 204... |
201 |
<div class="control-group">
|
204 |
<div class="control-group">
|
202 |
<div id="geoloc-datas">
|
205 |
<div id="geoloc-datas">
|
203 |
<input type="hidden" id="pays" name="pays" value="" style="display:none">
|
206 |
<input type="hidden" id="pays" name="pays" value="" style="display:none">
|
204 |
<input type="hidden" id="commune-nom" name="commune-nom" value="" style="display:none">
|
207 |
<input type="hidden" id="commune-nom" name="commune-nom" value="" style="display:none">
|
205 |
<input type="hidden" id="geometry" name="geometry" value="" style="display:none">
|
208 |
<input type="hidden" id="geometry" name="geometry" value="" style="display:none">
|
206 |
<input type="hidden" id="latitude" name="latitude" value="" style="display:none">
|
209 |
<!-- <input type="text" id="latitude" name="latitude" value="<?php //echo $widget['localisation']['latitude'] ?? '';?>">
|
207 |
<input type="hidden" id="longitude" name="longitude" value="" style="display:none">
|
210 |
<input type="text" id="longitude" name="longitude" value="<?php //echo $widget['localisation']['longitude'] ?? '';?>"> -->
|
208 |
<input type="hidden" id="altitude" name="altitude" value="" style="display:none">
|
211 |
<input type="hidden" id="altitude" name="altitude" value="" style="display:none">
|
209 |
<input type="hidden" id="commune-insee" name="commune-insee" value="" style="display:none">
|
212 |
<input type="hidden" id="commune-insee" name="commune-insee" value="" style="display:none">
|
210 |
<input type="hidden" id="coord-lineaire" name="coord-lineaire" value="" style="display:none">
|
213 |
<input type="hidden" id="coord-lineaire" name="coord-lineaire" value="" style="display:none">
|
211 |
</div>
|
214 |
</div>
|
212 |
<div id="geoloc" class="col-sm-12">
|
215 |
<div id="geoloc" class="col-sm-12">
|
213 |
<tb-geolocation-element
|
216 |
<script type="text/javascript">
|
- |
|
217 |
const URL_GEOLOC_SERVICE = "<?php echo $url_ws_geoloc;?>";
|
214 |
id="tb-geolocation"
|
218 |
const URL_BASE = "<?php echo $url_base;?>";
|
215 |
layer='osm'
|
219 |
</script>
|
- |
|
220 |
|
216 |
zoom_init="<?php echo ( isset($widget['localisation']['zoom']) ) ? $widget['localisation']['zoom']: '4' ;?>"
|
221 |
<div id="tb-places-zone" class="flex hidden">
|
- |
|
222 |
<div class="form-col search-container">
|
217 |
lat_init="<?php echo ( isset($widget['localisation']['latitude']) ) ? $widget['localisation']['latitude']: '46.5' ;?>"
|
223 |
<label for="tb-places" >Trouver un lieu</label>
|
- |
|
224 |
<div class="input-search-container">
|
218 |
lng_init="<?php echo ( isset($widget['localisation']['longitude'])) ? $widget['localisation']['longitude'] : '2.9' ;?>"
|
225 |
<input id="tb-places" class="tb-places" type="search" name="tb-places" placeholder="Recherchez une adresse ici" autocomplete="off">
|
219 |
marker="<?php echo ( $widget['type_localisation'] === 'point' ) ? 'true' : 'false' ;?>"
|
226 |
<div class="tb-places-search-icon"></div>
|
220 |
polyline="<?php echo ( $widget['type_localisation'] === 'rue' ) ? 'true' : 'false' ;?>"
|
227 |
<button class="tb-places-close hidden"></button>
|
221 |
polygon="false"
|
228 |
</div>
|
222 |
show_lat_lng_elevation_inputs="<?php echo ( $widget['type_localisation'] === 'point' ) ? 'true' : 'false' ;?>"
|
229 |
<div class="tb-places-results-container hidden">
|
- |
|
230 |
<ul class="tb-places-results"></ul>
|
- |
|
231 |
</div>
|
- |
|
232 |
</div>
|
- |
|
233 |
</div>
|
- |
|
234 |
|
- |
|
235 |
<div id="map-container">
|
- |
|
236 |
<div
|
223 |
osm_class_filter=""
|
237 |
id="tb-geolocation"
|
- |
|
238 |
style="height: 400px;width: 100%"
|
224 |
geometry_filter="<?php echo ($widget['type_localisation'] === 'rue' ) ? 'linestring' : 'point' ;?>"
|
239 |
data-type-localisation="<?php echo $widget['type_localisation'] ?? '';?>"
|
- |
|
240 |
data-zoom="<?php echo $widget['localisation']['zoom'] ?? '5';?>"
|
225 |
elevation_provider="mapquest"
|
241 |
data-layer="osm"
|
226 |
map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
|
242 |
data-form-suffix=""
|
227 |
height="400px"
|
243 |
>
|
228 |
>
|
244 |
</div>
|
229 |
</tb-geolocation-element>
|
245 |
</div>
|
230 |
</div>
|
246 |
</div>
|
231 |
</div>
|
247 |
</div>
|
232 |
</div>
|
248 |
</div>
|
Line -... |
Line 249... |
- |
|
249 |
|
- |
|
250 |
<div id="coord" class="control-group">
|
- |
|
251 |
<label for="latitude" class="col-sm-8">
|
- |
|
252 |
<i class="fa fa-globe" aria-hidden="true"></i>
|
- |
|
253 |
<?php echo $observation['latitude']; ?>
|
- |
|
254 |
</label>
|
- |
|
255 |
<div class="col-sm-8 mb-3">
|
- |
|
256 |
<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'] ?? '';?>">
|
- |
|
257 |
</div>
|
- |
|
258 |
<label for="longitude" class="col-sm-8">
|
- |
|
259 |
<i class="fa fa-globe" aria-hidden="true"></i>
|
- |
|
260 |
<?php echo $observation['longitude']; ?>
|
- |
|
261 |
</label>
|
- |
|
262 |
<div class="col-sm-8 mb-3">
|
- |
|
263 |
<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'] ?? '';?>">
|
- |
|
264 |
</div>
|
- |
|
265 |
</div>
|
233 |
|
266 |
|
234 |
<div class="control-group">
|
267 |
<div class="control-group">
|
235 |
<label for="lieudit" class="col-sm-8">
|
268 |
<label for="lieudit" class="col-sm-8">
|
236 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
269 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
237 |
<?php echo $observation['lieudit']; ?>
|
270 |
<?php echo $observation['lieudit']; ?>
|
Line 791... |
Line 824... |
791 |
<div class="modal-body" id="print_content"></div>
|
824 |
<div class="modal-body" id="print_content"></div>
|
792 |
<div class="modal-footer"></div>
|
825 |
<div class="modal-footer"></div>
|
793 |
</div>
|
826 |
</div>
|
794 |
</div>
|
827 |
</div>
|
795 |
</div>
|
828 |
</div>
|
796 |
<!-- carto -->
|
- |
|
797 |
<script type="text/javascript" src="<?php echo $url_base; ?>js/tb-geoloc/tb-geoloc-lib-app.js"></script>
|
- |
|
798 |
<!-- Jquery -->
|
829 |
<!-- Jquery -->
|
799 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
|
830 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
|
800 |
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
|
831 |
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
|
801 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
|
832 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
|
802 |
<!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> -->
|
- |
|
803 |
<!-- Jquery Plugins -->
|
833 |
<!-- Jquery Plugins -->
|
804 |
<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
|
834 |
<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
|
805 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
|
835 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
|
806 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
|
836 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
|
807 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
|
837 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
|
808 |
<!-- Jquery Form :nécessaire pour l'upload des images -->
|
838 |
<!-- Jquery Form :nécessaire pour l'upload des images -->
|
809 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
839 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
810 |
<!-- Bootstrap -->
|
840 |
<!-- Bootstrap -->
|
811 |
<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>
|
841 |
<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>
|
812 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
842 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
- |
|
843 |
<!-- carto -->
|
- |
|
844 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin="anonymous"></script>
|
- |
|
845 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js" integrity="sha512-ozq8xQKq6urvuU6jNgkfqAmT7jKN2XumbrX1JiB3TnF7tI48DPI4Gy1GXKD/V3EExgAs1V+pRO7vwtS1LHg0Gw==" crossorigin="anonymous"></script>
|
- |
|
846 |
<script src="<?php echo $url_base;?>js/tb-geoloc/js/modules/leaflet-gesture-handling.min.js"></script>
|
813 |
<!-- Connexion, bloc de prévisualisation, date -->
|
847 |
<!-- Connexion, bloc de prévisualisation, date -->
|
814 |
<script type="text/javascript" src="<?php echo $url_base; ?>js/Utils.js"></script>
|
- |
|
815 |
<script type="text/javascript" src="<?php echo $url_base; ?>js/WidgetsSaisiesCommun.js"></script>
|
- |
|
816 |
<script type="text/javascript" src="<?php echo $url_base; ?>js/WidgetSaisie.js"></script>
|
848 |
<script type="module" src="<?php echo $url_base; ?>js/WidgetSaisie.js"></script>
|
817 |
<script type="text/javascript">
|
849 |
<script type="text/javascript">
|
818 |
//<![CDATA[
|
850 |
//<![CDATA[
|
819 |
const NBRE_ELTS_AUTOCOMP = 20;
|
851 |
const NBRE_ELTS_AUTOCOMP = 20,
|
820 |
const OBS_MAX_NBRE = 10;
|
- |
|
821 |
const DUREE_MESSAGE = 1000;
|
- |
|
822 |
|
- |
|
823 |
var widgetProp = {
|
852 |
widgetProp = {
|
824 |
// url jusqu'à "/widget:cel:"
|
853 |
// url jusqu'à "/widget:cel:"
|
825 |
'urlWidgets' : "<?php echo $widgets_url; ?>",
|
854 |
'urlWidgets' : "<?php echo $widgets_url; ?>",
|
826 |
// module utilisé (apa,lg,streets)
|
855 |
// module utilisé (apa,lg,streets)
|
827 |
'projet' : "<?php echo $widget['projet']; ?>",
|
856 |
'projet' : "<?php echo $widget['projet']; ?>",
|
828 |
// id du projet
|
857 |
// id du projet
|
Line 879... |
Line 908... |
879 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
908 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
880 |
"retour.tri=alpharet&"+ // tri "à la CeL"
|
909 |
"retour.tri=alpharet&"+ // tri "à la CeL"
|
881 |
"ns.structure=au,an&"+
|
910 |
"ns.structure=au,an&"+
|
882 |
"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
|
911 |
"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
|
883 |
// Nombre d'observations max autorisé avant transmission
|
912 |
// Nombre d'observations max autorisé avant transmission
|
884 |
'obsMaxNbre' : OBS_MAX_NBRE,
|
913 |
'obsMaxNbre' : 10,
|
885 |
// Durée d'affichage en milliseconde des messages d'informations
|
914 |
// Durée d'affichage en milliseconde des messages d'informations
|
886 |
'dureeMessage' : DUREE_MESSAGE,
|
915 |
'dureeMessage' : 1000,
|
887 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
916 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
888 |
'serviceNomCommuneUrl' : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
|
917 |
'serviceNomCommuneUrl' : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
|
889 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
918 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
890 |
'serviceNomCommuneUrlAlt' : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
|
919 |
'serviceNomCommuneUrlAlt' : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
|
891 |
};
|
920 |
};
|
892 |
|
- |
|
893 |
$( document ).ready( function() {
|
- |
|
894 |
widget = new WidgetSaisie(widgetProp);
|
- |
|
895 |
widget.init();
|
- |
|
896 |
// Fonctions de Style et Affichage des éléments "spéciaux"
|
- |
|
897 |
utils.init();
|
- |
|
898 |
});
|
- |
|
899 |
//]]>
|
921 |
//]]>
|
900 |
</script>
|
922 |
</script>
|
901 |
<!-- Barre de navigation -->
|
923 |
<!-- Barre de navigation -->
|
902 |
<?php if ( $bar ): ?>
|
924 |
<?php if ( $bar ): ?>
|
903 |
<script src="<?php echo $url_script_navigation; ?>"></script>
|
925 |
<script src="<?php echo $url_script_navigation; ?>"></script>
|