Subversion Repositories eFlore/Applications.cel

Rev

Rev 3710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3710 Rev 3844
Line 49... Line 49...
49
		<!-- Bootstrap CSS -->
49
		<!-- Bootstrap CSS -->
50
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
50
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
51
		<!-- Fontawesome -->
51
		<!-- Fontawesome -->
52
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
52
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
53
		<!-- Carto -->
53
		<!-- Carto -->
-
 
54
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="anonymous">
-
 
55
		<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">
-
 
56
		<link rel="stylesheet" href="<?php echo $url_base;?>js/tb-geoloc/css/leaflet-gesture-handling.min.css" type="text/css">
54
		<link href="<?php echo $url_base; ?>js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
57
		<link rel="stylesheet" href="<?php echo $url_base;?>js/tb-geoloc/css/geoloc.css" type="text/css">
55
		<!-- STYLE SPECIFIQUE -->
58
		<!-- STYLE SPECIFIQUE -->
56
		<link href="<?php echo $url_base; ?>css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
59
		<link href="<?php echo $url_base; ?>css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
57
		<link href="<?php echo $url_base; ?>css/asl.css" rel="stylesheet" type="text/css" media="screen" />
60
		<link href="<?php echo $url_base; ?>css/asl.css" rel="stylesheet" type="text/css" media="screen" />
Line 58... Line 61...
58
 
61
 
Line 70... Line 73...
70
				background-size: 1rem;
73
				background-size: 1rem;
71
				height: 1rem;
74
				height: 1rem;
72
				width: 1rem;
75
				width: 1rem;
73
			}
76
			}
74
		</style>
77
		</style>
75
 
-
 
76
		<!-- carto -->
-
 
77
		<script type="text/javascript" src="<?php echo $url_base; ?>js/tb-geoloc/tb-geoloc-lib-app.js"></script>
-
 
78
 
-
 
79
		<!-- Jquery -->
78
		<!-- Jquery -->
80
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
79
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
Line 81... Line 80...
81
 
80
 
82
		<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
81
		<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
Line 89... Line 88...
89
		<!-- Jquery Form :nécessaire pour l'upload des images -->
88
		<!-- Jquery Form :nécessaire pour l'upload des images -->
90
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
89
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
91
		<!-- Bootstrap -->
90
		<!-- Bootstrap -->
92
		<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>
91
		<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>
93
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
92
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
-
 
93
		<!-- carto -->
-
 
94
		<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin="anonymous"></script>
-
 
95
		<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js" integrity="sha512-ozq8xQKq6urvuU6jNgkfqAmT7jKN2XumbrX1JiB3TnF7tI48DPI4Gy1GXKD/V3EExgAs1V+pRO7vwtS1LHg0Gw==" crossorigin="anonymous"></script>
94
		<script type="text/javascript" src="<?php echo $url_base; ?>js/Utils.js"></script>
96
		<script src="<?php echo $url_base;?>js/tb-geoloc/js/modules/leaflet-gesture-handling.min.js"></script>
95
		<!-- chargement des formulaires -->
97
		<!-- chargement des formulaires -->
96
		<script type="text/javascript" src="<?php echo $url_base; ?>js/WidgetsSaisiesCommun.js"></script>
-
 
97
		<script type="text/javascript" src="<?php echo $url_base; ?>js/WidgetsSaisiesASL.js"></script>
98
		<script type="module" src="<?php echo $url_base; ?>js/InitialisationASL.js"></script>
98
		<script type="text/javascript">
99
		<script type="text/javascript">
99
		//<![CDATA[
100
		//<![CDATA[
100
			// Nombre d'éléments dans l'autocompletion taxon
101
			// Nombre d'éléments dans l'autocompletion taxon
101
			const NBRE_ELTS_AUTOCOMP = 20;
102
			const NBRE_ELTS_AUTOCOMP = 20;
102
			const DUREE_MESSAGE      = 1000;
-
 
103
			const OBS_MAX_NBRE       = 10;
-
 
Line 104... Line 103...
104
 
103
 
105
			var widgetProp = {
104
			const widgetProp = {
106
				// url jusqu'à "/widget:cel:"
105
				// url jusqu'à "/widget:cel:"
107
				'urlWidgets'                        : "<?php echo $widgets_url; ?>",
106
				'urlWidgets'                        : "<?php echo $widgets_url; ?>",
108
				// id du projet
107
				// id du projet
109
				'idProjet'                          : "<?php echo $widget['id_projet']; ?>",
108
				'idProjet'                          : "<?php echo $widget['id_projet']; ?>",
Line 132... Line 131...
132
				'chargementImageIconeUrl'           : "<?php echo $url_base; ?>img/icones/chargement.gif",
131
				'chargementImageIconeUrl'           : "<?php echo $url_base; ?>img/icones/chargement.gif",
133
				// URL de l'icône pour une photo manquante
132
				// URL de l'icône pour une photo manquante
134
				'pasDePhotoIconeUrl'                : "<?php echo $url_base; ?>img/icones/pasdephoto.png",
133
				'pasDePhotoIconeUrl'                : "<?php echo $url_base; ?>img/icones/pasdephoto.png",
135
				// Nombre d'éléments dans l'autocompletion taxon
134
				// Nombre d'éléments dans l'autocompletion taxon
136
				'autocompletionElementsNbre'        : NBRE_ELTS_AUTOCOMP,
135
				'autocompletionElementsNbre'        : NBRE_ELTS_AUTOCOMP,
137
				'dureeMessage'                      : DUREE_MESSAGE,
136
				'dureeMessage'                      : 1000,
138
				'obsMaxNbre'                        : OBS_MAX_NBRE,
137
				'obsMaxNbre'                        : 10,
139
				// URL du web service permettant l'auto-complétion des noms scientifiques
138
				// URL du web service permettant l'auto-complétion des noms scientifiques
140
				'serviceAutocompletionNomSciUrl'    : "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
139
				'serviceAutocompletionNomSciUrl'    : "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
141
					"masque={masque}&"+
140
					"masque={masque}&"+
142
					"recherche=etendue&"+
141
					"recherche=etendue&"+
143
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
142
					"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
Line 153... Line 152...
153
					"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
152
					"navigation.limite=" + NBRE_ELTS_AUTOCOMP,
154
				'serviceNomCommuneUrl'              : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
153
				'serviceNomCommuneUrl'              : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
155
				'serviceNomCommuneUrlAlt'           : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
154
				'serviceNomCommuneUrlAlt'           : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
Line 156... Line 155...
156
 
155
 
157
			};
-
 
158
			$( document ).ready( function() {
-
 
159
 
156
			};
160
				// WidgetsSaisiesASL.prototype = new WidgetsSaisiesCommun(widgetProp);
157
			const URL_GEOLOC_SERVICE = "<?php echo $url_ws_geoloc;?>";
161
				widget           = new WidgetsSaisiesASL(widgetProp);
-
 
162
				widget.init();
-
 
163
			});
-
 
164
		//]]>
158
			const URL_BASE = "<?php echo $url_base;?>";
165
		</script>
-
 
166
		<script type="text/javascript" src="<?php echo $url_base; ?>js/ReleveASL.js"></script>
-
 
167
		<script type="text/javascript" src="<?php echo $url_base; ?>js/PlantesEtLichensASL.js"></script>
159
		</script>
Line 168... Line 160...
168
	</head>
160
	</head>
169
 
161
 
170
	<body id="top" data-sq="<?php echo $url_base; ?>" data-url-widgets="<?php echo $widgets_url; ?>" data-obs-list="<?php echo $url_ws_obs_list; ?>" data-lang="<?php echo $langue; ?>" data-projet="<?php echo $widget['projet']; ?>" data-tag-obs="<?php echo $widget['tag-obs']; ?>" data-mode="<?php echo $conf_mode; ?>">
162
	<body id="top" data-sq="<?php echo $url_base; ?>" data-url-widgets="<?php echo $widgets_url; ?>" data-obs-list="<?php echo $url_ws_obs_list; ?>" data-lang="<?php echo $langue; ?>" data-projet="<?php echo $widget['projet']; ?>" data-tag-obs="<?php echo $widget['tag-obs']; ?>" data-mode="<?php echo $conf_mode; ?>">