Line 1... |
Line 1... |
1 |
<!DOCTYPE html>
|
1 |
<!DOCTYPE html>
|
2 |
<html xmlns="https://www.w3.org/1999/xhtml">
|
2 |
<html xmlns="https://www.w3.org/1999/xhtml">
|
3 |
<head>
|
3 |
<head>
|
4 |
<title><?= $widget['titre']; ?></title>
|
4 |
<title><?php echo $widget['titre']; ?></title>
|
Line 5... |
Line 5... |
5 |
|
5 |
|
6 |
<meta charset="utf-8" />
|
6 |
<meta charset="utf-8" />
|
7 |
<meta http-equiv="content-type" content="text/html; 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" />
|
8 |
<meta http-equiv="Content-style-type" content="text/css" />
|
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.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous" />
|
37 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous" />
|
38 |
<!-- Carto -->
|
38 |
<!-- Carto -->
|
39 |
<link href="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
|
39 |
<link href="<?php echo $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
|
40 |
<!-- STYLE SAISIE -->
|
40 |
<!-- STYLE SAISIE -->
|
41 |
<link href="<?= $url_base; ?>modules/saisie2/squelettes/css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
|
41 |
<link href="<?php echo $url_base; ?>modules/saisie2/squelettes/css/saisie.css" rel="stylesheet" type="text/css" media="screen" />
|
Line 42... |
Line 42... |
42 |
|
42 |
|
43 |
<!-- Google Analytics -->
|
43 |
<!-- Google Analytics -->
|
44 |
<?php if( $prod ): ?>
|
44 |
<?php if( $prod ): ?>
|
45 |
<?php include "analytics.html"; ?>
|
45 |
<?php include "analytics.html"; ?>
|
Line 51... |
Line 51... |
51 |
<body>
|
51 |
<body>
|
52 |
<?php
|
52 |
<?php
|
53 |
echo ( $widget['image_fond'] ) ? '<div id="image-fond" style="' . htmlspecialchars( 'background:url("' . $widget['chemin_fichiers'] . 'image_fond.' . preg_replace( '/(?:imag)?e\/?/','',$widget['image_fond']) . '") no-repeat center center;background-size:cover') . '"></div>': '';
|
53 |
echo ( $widget['image_fond'] ) ? '<div id="image-fond" style="' . htmlspecialchars( 'background:url("' . $widget['chemin_fichiers'] . 'image_fond.' . preg_replace( '/(?:imag)?e\/?/','',$widget['image_fond']) . '") no-repeat center center;background-size:cover') . '"></div>': '';
|
54 |
?>
|
54 |
?>
|
55 |
<!-- <?php //var_dump($widget['especes']['url_ws_autocompletion_ns']); ?> -->
|
55 |
<!-- <?php //var_dump($widget['especes']['url_ws_autocompletion_ns']); ?> -->
|
56 |
<div id="zone-appli" class="container" data-projet="<?= $widget['projet']; ?>" data-url-fichiers="<?= $widget['chemin_fichiers']; ?>">
|
56 |
<div id="zone-appli" class="container" data-projet="<?php echo $widget['projet']; ?>" data-url-fichiers="<?php echo $widget['chemin_fichiers']; ?>">
|
57 |
<div class="layout-wrapper page">
|
57 |
<div class="layout-wrapper page">
|
58 |
<div class="media mb-3">
|
58 |
<div class="media mb-3">
|
59 |
<img class="d-flex mr-3" src="<?php echo htmlspecialchars( $widget['chemin_fichiers'] . 'logo.' . preg_replace( '/(?:imag)?e\/?/','', $widget['logo'] ) ); ?>" alt="logo <?= $widget['projet']; ?>" width="15%" />
|
59 |
<img class="d-flex mr-3" src="<?php echo htmlspecialchars( $widget['chemin_fichiers'] . 'logo.' . preg_replace( '/(?:imag)?e\/?/','', $widget['logo'] ) ); ?>" alt="logo <?php echo $widget['projet']; ?>" width="15%" />
|
60 |
<div class="media-body">
|
60 |
<div class="media-body">
|
61 |
<h1 id="titre-projet" class="mt-0"><?php echo ( $widget['info'] ) ? $widget['titre'] . ' <div id="info-button" class="btn btn-outline-info btn-sm border-0" data-mime-info="' . $widget['info'] . '"><i class="fas fa-info-circle"></i></div>' : $widget['titre']; ?></h1>
|
61 |
<h1 id="titre-projet" class="mt-0"><?php echo ( $widget['info'] ) ? $widget['titre'] . ' <div id="info-button" class="btn btn-outline-info btn-sm border-0" data-mime-info="' . $widget['info'] . '"><i class="fas fa-info-circle"></i></div>' : $widget['titre']; ?></h1>
|
62 |
</div>
|
62 |
</div>
|
63 |
</div>
|
63 |
</div>
|
Line 64... |
Line 64... |
64 |
|
64 |
|
65 |
<div class="row">
|
65 |
<div class="row">
|
66 |
<div class="col-md-6">
|
66 |
<div class="col-md-6">
|
67 |
<div id="description"><?= $widget['description']; ?></div>
|
67 |
<div id="description"><?php echo $widget['description']; ?></div>
|
68 |
</div>
|
68 |
</div>
|
69 |
<div class="col-md-6">
|
69 |
<div class="col-md-6">
|
70 |
<div id="aide" class="well well-lg hidden-sm-down">
|
70 |
<div id="aide" class="well well-lg hidden-sm-down">
|
71 |
<h3><?= $aide['titre']; ?></h3>
|
71 |
<h3><?php echo $aide['titre']; ?></h3>
|
72 |
<div id="aide-txt" class="hiden-sm-down">
|
72 |
<div id="aide-txt" class="hiden-sm-down">
|
73 |
<p><?= $aide['description']; ?></p>
|
73 |
<p><?php echo $aide['description']; ?></p>
|
74 |
</div>
|
74 |
</div>
|
75 |
</div>
|
75 |
</div>
|
76 |
</div>
|
76 |
</div>
|
Line 77... |
Line 77... |
77 |
</div>
|
77 |
</div>
|
78 |
|
78 |
|
79 |
<div id="formulaire" class="row mb-3 bloc-top">
|
79 |
<div id="formulaire" class="row mb-3 bloc-top">
|
80 |
<form id="form-observateur" role="form" autocomplete="on">
|
80 |
<form id="form-observateur" role="form" autocomplete="on">
|
81 |
<h2><?= $observateur['titre']; ?></h2>
|
81 |
<h2><?php echo $observateur['titre']; ?></h2>
|
82 |
<!--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
|
82 |
<!--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
|
83 |
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
|
83 |
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
|
84 |
le javascript auth.js vient de http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.reseau&path=%2Ftrunk%2Fresources%2Fjs%2Fnavigation.js
|
84 |
le javascript auth.js vient de http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.reseau&path=%2Ftrunk%2Fresources%2Fjs%2Fnavigation.js
|
Line 90... |
Line 90... |
90 |
<!-- dev (localhost) : -->
|
90 |
<!-- dev (localhost) : -->
|
91 |
<!-- <div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="navigation" data-mode="local"> -->
|
91 |
<!-- <div id="tb-navigation" data-courant="widget-cel-saisie2" data-squelette="navigation" data-mode="local"> -->
|
92 |
<div class="navbar-default mb-3" id="tb-navbar">
|
92 |
<div class="navbar-default mb-3" id="tb-navbar">
|
93 |
<div class="nav navbar-nav navbar-right row">
|
93 |
<div class="nav navbar-nav navbar-right row">
|
94 |
<div id="bouton-connexion" class="volet col-md-6 col-sm-8">
|
94 |
<div id="bouton-connexion" class="volet col-md-6 col-sm-8">
|
95 |
<label for="bouton-connexion"><?= $observateur['compte']; ?></label>
|
95 |
<label for="bouton-connexion"><?php echo $observateur['compte']; ?></label>
|
96 |
<a id="connexion" href="<?= $authTpl; ?>" class="btn btn-success mr-1 mb-1" taget="_blank"><?= $observateur['connexion']; ?></a>
|
96 |
<a id="connexion" href="<?php echo $authTpl; ?>" class="btn btn-success mr-1 mb-1" taget="_blank"><?php echo $observateur['connexion']; ?></a>
|
97 |
<a id="bouton-inscription" href="https://beta.tela-botanica.org/test/inscription" class="btn btn-primary mr-1 mb-1" taget="_blank"><?= $observateur['inscription']; ?></a>
|
97 |
<a id="bouton-inscription" href="https://beta.tela-botanica.org/test/inscription" class="btn btn-primary mr-1 mb-1" taget="_blank"><?php echo $observateur['inscription']; ?></a>
|
98 |
</div>
|
98 |
</div>
|
99 |
<div id="creation-compte" class="volet col-md-6 col-sm-8">
|
99 |
<div id="creation-compte" class="volet col-md-6 col-sm-8">
|
100 |
<label for="creation-compte"><?= $observateur['noninscription']; ?></label>
|
100 |
<label for="creation-compte"><?php echo $observateur['noninscription']; ?></label>
|
101 |
<a id="bouton-anonyme" href="#" class="btn btn-info mr-1 mb-1"><?= $observateur['nonconnexion']; ?></a>
|
101 |
<a id="bouton-anonyme" href="#" class="btn btn-info mr-1 mb-1"><?php echo $observateur['nonconnexion']; ?></a>
|
102 |
</div>
|
102 |
</div>
|
103 |
<div id="utilisateur-connecte" class="volet hidden">
|
103 |
<div id="utilisateur-connecte" class="volet hidden">
|
104 |
<label for="utilisateur-connecte"><?= $observateur['bienvenue']; ?></label>
|
104 |
<label for="utilisateur-connecte"><?php echo $observateur['bienvenue']; ?></label>
|
105 |
<a href="#" class="list-tool btn btn-large btn-primary volet-toggle" data-toggle="volet">
|
105 |
<a href="#" class="list-tool btn btn-large btn-primary volet-toggle" data-toggle="volet">
|
106 |
<span id="nom-complet"></span> <!-- <i class="fas fa-caret-down"></i> -->
|
106 |
<span id="nom-complet"></span> <!-- <i class="fas fa-caret-down"></i> -->
|
107 |
</a>
|
107 |
</a>
|
108 |
<div class="volet-menu hidden">
|
108 |
<div class="volet-menu hidden">
|
109 |
<div id="profil-utilisateur">
|
109 |
<div id="profil-utilisateur">
|
110 |
<a href="https://beta.tela-botanica.org/test/inscription" taget="_blank"><?= $observateur['profil']; ?></a>
|
110 |
<a href="https://beta.tela-botanica.org/test/inscription" taget="_blank"><?php echo $observateur['profil']; ?></a>
|
111 |
</div>
|
111 |
</div>
|
112 |
<div id="deconnexion"><a href="#"><?= $observateur['deconnexion']; ?></a></div>
|
112 |
<div id="deconnexion"><a href="#"><?php echo $observateur['deconnexion']; ?></a></div>
|
113 |
</div>
|
113 |
</div>
|
114 |
</div>
|
114 |
</div>
|
115 |
</div>
|
115 |
</div>
|
116 |
</div>
|
116 |
</div>
|
117 |
</div>
|
117 |
</div>
|
Line 118... |
Line 118... |
118 |
|
118 |
|
119 |
<div id="anonyme" class="mb-3 hidden">
|
119 |
<div id="anonyme" class="mb-3 hidden">
|
120 |
<div id="zone-courriel" class="row">
|
120 |
<div id="zone-courriel" class="row">
|
121 |
<div class="control-group col-md-6">
|
121 |
<div class="control-group col-md-6">
|
122 |
<label for="courriel" class="col-sm-8 obligatoire" title="<?= $observateur['courriel-title']; ?>">
|
122 |
<label for="courriel" class="col-sm-8 obligatoire" title="<?php echo $observateur['courriel-title']; ?>">
|
123 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
123 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
124 |
<?= $observateur['courriel']; ?>
|
124 |
<?php echo $observateur['courriel']; ?>
|
125 |
</label>
|
125 |
</label>
|
126 |
<div class="col-sm-8 mb-3">
|
126 |
<div class="col-sm-8 mb-3">
|
127 |
<input id="courriel" name="courriel" class="form-control" type="email" title="<?= $observateur['courriel-title']; ?> ">
|
127 |
<input id="courriel" name="courriel" class="form-control" type="email" title="<?php echo $observateur['courriel-title']; ?> ">
|
128 |
<input id="id_utilisateur" name="id_utilisateur" type="hidden">
|
128 |
<input id="id_utilisateur" name="id_utilisateur" type="hidden">
|
129 |
</div>
|
129 |
</div>
|
Line 130... |
Line 130... |
130 |
</div>
|
130 |
</div>
|
131 |
|
131 |
|
132 |
<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
|
132 |
<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
|
133 |
<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="Veuillez confirmer le courriel.">
|
133 |
<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="Veuillez confirmer le courriel.">
|
134 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
134 |
<i class="fa fa-envelope" aria-hidden="true"></i>
|
135 |
<?= $observateur['courriel-confirmation']; ?>
|
135 |
<?php echo $observateur['courriel-confirmation']; ?>
|
136 |
</label>
|
136 |
</label>
|
137 |
<div class="col-sm-8">
|
137 |
<div class="col-sm-8">
|
138 |
<input id="courriel_confirmation" name="courriel_confirmation" class="form-control" type="email">
|
138 |
<input id="courriel_confirmation" name="courriel_confirmation" class="form-control" type="email">
|
Line 142... |
Line 142... |
142 |
|
142 |
|
143 |
<div id="zone-prenom-nom" class="row hidden">
|
143 |
<div id="zone-prenom-nom" class="row hidden">
|
144 |
<div class="control-group col-md-6">
|
144 |
<div class="control-group col-md-6">
|
145 |
<label for="prenom" class="col-sm-8">
|
145 |
<label for="prenom" class="col-sm-8">
|
146 |
<i class="fa fa-user" aria-hidden="true"></i>
|
146 |
<i class="fa fa-user" aria-hidden="true"></i>
|
147 |
<?= $observateur['prenom']; ?>
|
147 |
<?php echo $observateur['prenom']; ?>
|
148 |
</label>
|
148 |
</label>
|
149 |
<div class="input-group col-sm-8">
|
149 |
<div class="input-group col-sm-8">
|
150 |
<input id="prenom" name="prenom" class="form-control" type="text">
|
150 |
<input id="prenom" name="prenom" class="form-control" type="text">
|
151 |
</div>
|
151 |
</div>
|
152 |
</div>
|
152 |
</div>
|
153 |
<div class="control-group col-md-6">
|
153 |
<div class="control-group col-md-6">
|
154 |
<label for="nom" class="col-sm-8">
|
154 |
<label for="nom" class="col-sm-8">
|
155 |
<i class="fa fa-user" aria-hidden="true"></i>
|
155 |
<i class="fa fa-user" aria-hidden="true"></i>
|
156 |
<?= $observateur['nom']; ?>
|
156 |
<?php echo $observateur['nom']; ?>
|
157 |
</label>
|
157 |
</label>
|
158 |
<div class="input-group col-sm-8">
|
158 |
<div class="input-group col-sm-8">
|
159 |
<input id="nom" name="nom" class="form-control" type="text">
|
159 |
<input id="nom" name="nom" class="form-control" type="text">
|
160 |
</div>
|
160 |
</div>
|
Line 165... |
Line 165... |
165 |
|
165 |
|
166 |
<!-- Messages d'erreur du formulaire-->
|
166 |
<!-- Messages d'erreur du formulaire-->
|
167 |
<div class="zone-alerte">
|
167 |
<div class="zone-alerte">
|
168 |
<div id="dialogue-bloquer-copier-coller" class="alert alert-info alert-block hidden">
|
168 |
<div id="dialogue-bloquer-copier-coller" class="alert alert-info alert-block hidden">
|
169 |
<a class="close">×</a>
|
169 |
<a class="close">×</a>
|
170 |
<h4 class="alert-heading"><?= $observateur['alertcc-title']; ?></h4>
|
170 |
<h4 class="alert-heading"><?php echo $observateur['alertcc-title']; ?></h4>
|
171 |
<p><?= $observateur['alertcc']; ?></p>
|
171 |
<p><?php echo $observateur['alertcc']; ?></p>
|
172 |
</div>
|
172 |
</div>
|
173 |
<div id="dialogue-utilisateur-non-identifie" class="alert alert-warning alert-block hidden">
|
173 |
<div id="dialogue-utilisateur-non-identifie" class="alert alert-warning alert-block hidden">
|
174 |
<a class="close">×</a>
|
174 |
<a class="close">×</a>
|
175 |
<h4 class="alert-heading"><?= $observateur['alertni-title']; ?></h4>
|
175 |
<h4 class="alert-heading"><?php echo $observateur['alertni-title']; ?></h4>
|
176 |
<p><?= $observateur['alertni']; ?></p>
|
176 |
<p><?php echo $observateur['alertni']; ?></p>
|
177 |
</div>
|
177 |
</div>
|
178 |
<div id="dialogue-geoloc-ko" class="alert alert-warning alert-block hidden">
|
178 |
<div id="dialogue-geoloc-ko" class="alert alert-warning alert-block hidden">
|
179 |
<a class="close">×</a>
|
179 |
<a class="close">×</a>
|
180 |
<h4 class="alert-heading"><?= $observateur['alertgk-title']; ?></h4>
|
180 |
<h4 class="alert-heading"><?php echo $observateur['alertgk-title']; ?></h4>
|
181 |
<p><?= $observateur['alertgk']; ?></p>
|
181 |
<p><?php echo $observateur['alertgk']; ?></p>
|
182 |
</div>
|
182 |
</div>
|
Line 183... |
Line 183... |
183 |
</div>
|
183 |
</div>
|
184 |
|
184 |
|
185 |
<form id="form-observation" role="form" autocomplete="on" class="bloc-top">
|
185 |
<form id="form-observation" role="form" autocomplete="on" class="bloc-top">
|
186 |
<h2><?= $observation['titre']; ?></h2>
|
186 |
<h2><?php echo $observation['titre']; ?></h2>
|
Line 187... |
Line 187... |
187 |
<div id="zone-observation" class="row">
|
187 |
<div id="zone-observation" class="row">
|
188 |
<div class="col-md-6">
|
188 |
<div class="col-md-6">
|
189 |
|
189 |
|
190 |
<div class="">
|
190 |
<div class="">
|
191 |
<label for="geolocalisation" class="col-sm-8 obligatoire" title="<?= $observateur['courriel-title']; ?>">
|
191 |
<label for="geolocalisation" class="col-sm-8 obligatoire" title="<?php echo $observateur['courriel-title']; ?>">
|
192 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
192 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
193 |
<?= $observation['geolocalisation']; ?>
|
193 |
<?php echo $observation['geolocalisation']; ?>
|
Line 194... |
Line 194... |
194 |
</label>
|
194 |
</label>
|
Line 208... |
Line 208... |
208 |
</div>
|
208 |
</div>
|
Line 209... |
Line 209... |
209 |
|
209 |
|
210 |
<div class="control-group">
|
210 |
<div class="control-group">
|
211 |
<label for="lieudit" class="col-sm-8" title="">
|
211 |
<label for="lieudit" class="col-sm-8" title="">
|
212 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
212 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
213 |
<?= $observation['lieudit']; ?>
|
213 |
<?php echo $observation['lieudit']; ?>
|
214 |
</label>
|
214 |
</label>
|
215 |
<div class="col-sm-8 mb-3">
|
215 |
<div class="col-sm-8 mb-3">
|
216 |
<input type="text" id="lieudit" name="lieudit" class="form-control">
|
216 |
<input type="text" id="lieudit" name="lieudit" class="form-control">
|
217 |
</div>
|
217 |
</div>
|
218 |
</div>
|
218 |
</div>
|
219 |
<div class="control-group">
|
219 |
<div class="control-group">
|
220 |
<label for="station" class="col-sm-8" title="">
|
220 |
<label for="station" class="col-sm-8" title="">
|
221 |
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
221 |
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
222 |
<?= $observation['station']; ?>
|
222 |
<?php echo $observation['station']; ?>
|
223 |
</label>
|
223 |
</label>
|
224 |
<div class="col-sm-8 mb-3">
|
224 |
<div class="col-sm-8 mb-3">
|
225 |
<input type="text" id="station" name="station" class="form-control">
|
225 |
<input type="text" id="station" name="station" class="form-control">
|
226 |
</div>
|
226 |
</div>
|
Line 231... |
Line 231... |
231 |
<div class="col-md-6">
|
231 |
<div class="col-md-6">
|
Line 232... |
Line 232... |
232 |
|
232 |
|
233 |
<div class="control-group">
|
233 |
<div class="control-group">
|
234 |
<label for="date_releve" class="col-sm-8 obligatoire" title="">
|
234 |
<label for="date_releve" class="col-sm-8 obligatoire" title="">
|
235 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
235 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
236 |
<?= $observation['date']; ?>
|
236 |
<?php echo $observation['date']; ?>
|
237 |
</label>
|
237 |
</label>
|
238 |
<div class="col-sm-8 mb-3">
|
238 |
<div class="col-sm-8 mb-3">
|
239 |
<input type="date" id="date_releve" name="date_releve" class="form-control" max="<?= date('Y-m-d', time()); ?>" placeholder="jj/mm/aaaa" title="jj/mm/aaaa" required>
|
239 |
<input type="date" id="date_releve" name="date_releve" class="form-control" max="<?php echo date('Y-m-d', time()); ?>" placeholder="jj/mm/aaaa" title="jj/mm/aaaa" required>
|
240 |
</div>
|
240 |
</div>
|
Line 241... |
Line 241... |
241 |
</div>
|
241 |
</div>
|
242 |
|
242 |
|
243 |
<?php if( ( $widget['type_especes'] === 'referentiel' || $widget['type_especes'] === '' ) && $widget['referentiel'] === '' ) : ?>
|
243 |
<?php if( ( $widget['type_especes'] === 'referentiel' || empty( $widget['type_especes'] ) ) && empty( $widget['referentiel'] ) ) : ?>
|
244 |
<div class="control-group">
|
244 |
<div class="control-group">
|
245 |
<label for="referentiel" class="col-sm-8 obligatoire" title="">
|
245 |
<label for="referentiel" class="col-sm-8 obligatoire" title="">
|
246 |
<i class="fa fa-book" aria-hidden="true"></i>
|
246 |
<i class="fa fa-book" aria-hidden="true"></i>
|
247 |
<?= $observation['referentiel']; ?>
|
247 |
<?php echo $observation['referentiel']; ?>
|
248 |
</label>
|
248 |
</label>
|
249 |
<div class="col-sm-8 mb-3">
|
249 |
<div class="col-sm-8 mb-3">
|
250 |
<select id="referentiel" class="form-control" >
|
250 |
<select id="referentiel" class="form-control" >
|
Line 260... |
Line 260... |
260 |
<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
|
260 |
<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
|
261 |
</select>
|
261 |
</select>
|
262 |
</div>
|
262 |
</div>
|
263 |
</div>
|
263 |
</div>
|
264 |
<?php else : ?>
|
264 |
<?php else : ?>
|
265 |
<input id="referentiel" name="referentiel" value="<?= $widget['referentiel']; ?>" type="hidden">
|
265 |
<input id="referentiel" name="referentiel" value="<?php echo $widget['referentiel']; ?>" type="hidden">
|
266 |
<?php endif; ?>
|
266 |
<?php endif; ?>
|
Line 267... |
Line 267... |
267 |
|
267 |
|
268 |
<div class="control-group">
|
268 |
<div class="control-group">
|
269 |
<label for="taxon" class="col-sm-8 obligatoire" title="">
|
269 |
<label for="taxon" class="col-sm-8 obligatoire" title="">
|
270 |
<i class="fa fa-leaf" aria-hidden="true"></i>
|
270 |
<i class="fa fa-leaf" aria-hidden="true"></i>
|
271 |
<?= $observation['espece']; ?><?php if ( $widget['referentiel'] !== '' && $widget['referentiel'] !== NULL ) echo " (" . $widget['referentiel'] . ")"; ?>
|
271 |
<?php echo $observation['espece']; ?><?php if ( $widget['referentiel'] !== '' && $widget['referentiel'] !== NULL ) echo " (" . $widget['referentiel'] . ")"; ?>
|
272 |
</label>
|
272 |
</label>
|
273 |
<div class="col-sm-8 mb-3">
|
273 |
<div class="col-sm-8 mb-3">
|
274 |
<input id="taxon" name="taxon" class="form-control" type="text" required>
|
274 |
<input id="taxon" name="taxon" class="form-control" type="text" required>
|
275 |
</div>
|
275 |
</div>
|
Line 276... |
Line 276... |
276 |
</div>
|
276 |
</div>
|
277 |
|
277 |
|
278 |
<div class="control-group">
|
278 |
<div class="control-group">
|
279 |
<label for="certitude" class="col-sm-8 obligatoire" title="">
|
279 |
<label for="certitude" class="col-sm-8 obligatoire" title="">
|
280 |
<i class="fa fa-question" aria-hidden="true"></i>
|
280 |
<i class="fa fa-question" aria-hidden="true"></i>
|
281 |
<?= $observation['certitude']; ?>
|
281 |
<?php echo $observation['certitude']; ?>
|
282 |
</label>
|
282 |
</label>
|
283 |
<div class="col-sm-8 mb-3">
|
283 |
<div class="col-sm-8 mb-3">
|
284 |
<select id="certitude" name="certitude" class="form-control">
|
284 |
<select id="certitude" name="certitude" class="form-control">
|
285 |
<option value="aDeterminer" ><?= $observation['certADet']; ?></option>
|
285 |
<option value="aDeterminer" ><?php echo $observation['certADet']; ?></option>
|
286 |
<option value="douteuse" ><?= $observation['certDout']; ?></option>
|
286 |
<option value="douteuse" ><?php echo $observation['certDout']; ?></option>
|
287 |
<option value="certaine" selected="selected" ><?= $observation['certCert']; ?></option>
|
287 |
<option value="certaine" selected="selected" ><?php echo $observation['certCert']; ?></option>
|
288 |
</select>
|
288 |
</select>
|
289 |
</div>
|
289 |
</div>
|
290 |
</div>
|
290 |
</div>
|
291 |
<div class="">
|
291 |
<div class="">
|
292 |
<label for="milieu" class="col-sm-8">
|
292 |
<label for="milieu" class="col-sm-8">
|
293 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
293 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
294 |
<?= $observation['milieu']; ?>
|
294 |
<?php echo $observation['milieu']; ?>
|
295 |
</label>
|
295 |
</label>
|
296 |
<div class="col-sm-8 mb-3">
|
296 |
<div class="col-sm-8 mb-3">
|
297 |
<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
|
297 |
<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
|
298 |
<select id="milieu" class="form-control" >
|
298 |
<select id="milieu" class="form-control" >
|
299 |
<?php foreach ( $widget['milieux'] as $milieu ) :?>
|
299 |
<?php foreach ( $widget['milieux'] as $milieu ) :?>
|
300 |
<option value="<?= $milieu; ?>"><?= $milieu; ?></option>
|
300 |
<option value="<?php echo $milieu; ?>"><?php echo $milieu; ?></option>
|
301 |
<?php endforeach; ?>
|
301 |
<?php endforeach; ?>
|
302 |
</select>
|
302 |
</select>
|
303 |
<?php else : ?>
|
303 |
<?php else : ?>
|
304 |
<input id="milieu" name="milieu" class="form-control" type="text" placeholder="<?= $observation['milieu-ph']; ?>">
|
304 |
<input id="milieu" name="milieu" class="form-control" type="text" placeholder="<?php echo $observation['milieu-ph']; ?>">
|
305 |
<?php endif; ?>
|
305 |
<?php endif; ?>
|
306 |
</div>
|
306 |
</div>
|
307 |
</div>
|
307 |
</div>
|
308 |
<div class="">
|
308 |
<div class="">
|
309 |
<label for="notes" class="col-sm-8" title="">
|
309 |
<label for="notes" class="col-sm-8" title="">
|
310 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
310 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
311 |
<?= $observation['notes']; ?>
|
311 |
<?php echo $observation['notes']; ?>
|
312 |
</label>
|
312 |
</label>
|
313 |
<div class="col-sm-8 mb-3">
|
313 |
<div class="col-sm-8 mb-3">
|
314 |
<textarea id="notes" form="form-observation" class="col-md-12" rows="7" name="notes" placeholder="<?= $observation['notes_ph']; ?>"></textarea>
|
314 |
<textarea id="notes" form="form-observation" class="col-md-12" rows="7" name="notes" placeholder="<?php echo $observation['notes_ph']; ?>"></textarea>
|
Line 315... |
Line 315... |
315 |
</div>
|
315 |
</div>
|
316 |
</div>
|
316 |
</div>
|
317 |
|
317 |
|
Line 318... |
Line 318... |
318 |
</div>
|
318 |
</div>
|
319 |
</div>
|
319 |
</div>
|
320 |
</form>
|
320 |
</form>
|
321 |
|
321 |
|
322 |
<!-- Champs supplémentaires -->
|
322 |
<!-- Champs supplémentaires -->
|
323 |
<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
|
323 |
<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
|
Line 324... |
Line 324... |
324 |
<form id="form-supp" class="bloc-top" role="form" autocomplete="on">
|
324 |
<form id="form-supp" class="bloc-top" role="form" autocomplete="on">
|
325 |
<h2><?= $chpsupp['titre']; ?></h2>
|
325 |
<h2><?php echo $chpsupp['titre']; ?></h2>
|
Line 354... |
Line 354... |
354 |
}
|
354 |
}
|
Line 355... |
Line 355... |
355 |
|
355 |
|
356 |
switch( $champ['element'] ) {
|
356 |
switch( $champ['element'] ) {
|
357 |
case 'radio':
|
357 |
case 'radio':
|
358 |
case 'checkbox': ?>
|
358 |
case 'checkbox': ?>
|
359 |
<div class="control-group <?= $champ['element']; ?> mb-3"<?php echo $description . $required; ?>>
|
359 |
<div class="control-group <?php echo $champ['element']; ?> mb-3"<?php echo $description . $required; ?>>
|
360 |
<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
|
360 |
<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
|
361 |
<?= $champ['name'] . $help_button; ?>
|
361 |
<?php echo $champ['name'] . $help_button; ?>
|
362 |
</div>
|
362 |
</div>
|
Line 363... |
Line 363... |
363 |
<div class="col-sm-8">
|
363 |
<div class="col-sm-8">
|
Line 372... |
Line 372... |
372 |
endif;
|
372 |
endif;
|
373 |
?>
|
373 |
?>
|
Line 374... |
Line 374... |
374 |
|
374 |
|
375 |
<?php if( 'other' !== $list_value ) : ?>
|
375 |
<?php if( 'other' !== $list_value ) : ?>
|
376 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
376 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
377 |
<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']; ?>">
|
377 |
<input type="<?php echo $champ['element']; ?>" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?php echo $champ['key']; ?>" value="<?php echo $list_value; ?>"<?php echo $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" data-label="<?php echo $champ['name']; ?>">
|
378 |
<?= $list_value; ?>
|
378 |
<?php echo $list_value; ?>
|
379 |
</label>
|
379 |
</label>
|
380 |
<?php else : ?>
|
380 |
<?php else : ?>
|
381 |
<label for="other-<?= $champ['key']; ?>">
|
381 |
<label for="other-<?php echo $champ['key']; ?>">
|
382 |
<input type="<?= $champ['element']; ?>" id="other-<?= $champ['key']; ?>" name="<?= $champ['key']; ?>" value="other" class="other" data-label="<?= $champ['name']; ?>" data-element="<?= $champ['element']; ?>">
|
382 |
<input type="<?php echo $champ['element']; ?>" id="other-<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" value="other" class="other" data-label="<?php echo $champ['name']; ?>" data-element="<?php echo $champ['element']; ?>">
|
383 |
Autre
|
383 |
Autre
|
384 |
</label>
|
384 |
</label>
|
Line 385... |
Line 385... |
385 |
<?php endif; ?>
|
385 |
<?php endif; ?>
|
Line 390... |
Line 390... |
390 |
</div>
|
390 |
</div>
|
391 |
<?php break;
|
391 |
<?php break;
|
Line 392... |
Line 392... |
392 |
|
392 |
|
393 |
case 'list-checkbox': ?>
|
393 |
case 'list-checkbox': ?>
|
394 |
<div class="multiselect <?php echo $champ['element'] . $help; ?>">
|
394 |
<div class="multiselect <?php echo $champ['element'] . $help; ?>">
|
395 |
<label class="col-sm-8<?= $mandatory; ?>" title="<?= $chpsupp['select-checkboxes-texte'];?>"><?= $champ['name'] . $help_button; ?></label>
|
395 |
<label class="col-sm-8<?php echo $mandatory; ?>" title="<?php echo $chpsupp['select-checkboxes-texte'];?>"><?php echo $champ['name'] . $help_button; ?></label>
|
396 |
<div class="control-group col-sm-8 mb-3">
|
396 |
<div class="control-group col-sm-8 mb-3">
|
397 |
<div class="selectBox">
|
397 |
<div class="selectBox">
|
398 |
<select class="form-control list-checkbox" id="list-checkbox-<?= $champ['key']; ?>"<?php echo $description . $required; ?> class="form-control">
|
398 |
<select class="form-control list-checkbox" id="list-checkbox-<?php echo $champ['key']; ?>"<?php echo $description . $required; ?> class="form-control">
|
399 |
<option><?= $chpsupp['select-checkboxes-texte'];?></option>
|
399 |
<option><?php echo $chpsupp['select-checkboxes-texte'];?></option>
|
400 |
</select>
|
400 |
</select>
|
401 |
<div class="overSelect"></div>
|
401 |
<div class="overSelect"></div>
|
402 |
</div>
|
402 |
</div>
|
403 |
<div class="checkboxes hidden">
|
403 |
<div class="checkboxes hidden">
|
Line 411... |
Line 411... |
411 |
endif;
|
411 |
endif;
|
412 |
?>
|
412 |
?>
|
Line 413... |
Line 413... |
413 |
|
413 |
|
414 |
<?php if( 'other' !== $list_value ) : ?>
|
414 |
<?php if( 'other' !== $list_value ) : ?>
|
415 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
415 |
<label for="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>">
|
416 |
<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']; ?>">
|
416 |
<input type="checkbox" id="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" name="<?php echo $champ['key']; ?>" value="<?php echo $list_value; ?>"<?php echo $checked; ?> class="<?php echo $champ['fieldValues']['cleanListValue'][$i]; ?>" data-label="<?php echo $champ['name']; ?>">
|
417 |
<?= $list_value; ?>
|
417 |
<?php echo $list_value; ?>
|
418 |
</label>
|
418 |
</label>
|
419 |
<?php else : ?>
|
419 |
<?php else : ?>
|
420 |
<label for="other-<?= $champ['key']; ?>">
|
420 |
<label for="other-<?php echo $champ['key']; ?>">
|
421 |
<input type="checkbox" id="other-<?= $champ['key']; ?>" name="<?= $champ['key']; ?>" value="other" class="other" data-label="<?= $champ['name']; ?>" data-element="<?= $champ['element']; ?>">
|
421 |
<input type="checkbox" id="other-<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" value="other" class="other" data-label="<?php echo $champ['name']; ?>" data-element="<?php echo $champ['element']; ?>">
|
422 |
Autre
|
422 |
Autre
|
423 |
</label>
|
423 |
</label>
|
Line 424... |
Line 424... |
424 |
<?php endif; ?>
|
424 |
<?php endif; ?>
|
Line 429... |
Line 429... |
429 |
</div>
|
429 |
</div>
|
430 |
</div>
|
430 |
</div>
|
431 |
<?php break;
|
431 |
<?php break;
|
Line 432... |
Line 432... |
432 |
|
432 |
|
433 |
case 'select': ?>
|
433 |
case 'select': ?>
|
434 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $mandatory; ?>"<?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
434 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"<?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
435 |
<div class="champ col-sm-8 mb-3">
|
435 |
<div class="champ col-sm-8 mb-3">
|
436 |
<div class="select-wrapper add-field-select <?php echo $champ['element'] . $help; ?>">
|
436 |
<div class="select-wrapper add-field-select <?php echo $champ['element'] . $help; ?>">
|
Line 437... |
Line 437... |
437 |
<select name="<?= $champ['key']; ?>" id="<?= $champ['key']; ?>" class="<?= $champ['key']; ?> form-control"<?= $required; ?> data-label="<?= $champ['name']; ?>">
|
437 |
<select name="<?php echo $champ['key']; ?>" id="<?php echo $champ['key']; ?>" class="<?php echo $champ['key']; ?> form-control"<?php echo $required; ?> data-label="<?php echo $champ['name']; ?>">
|
Line 438... |
Line 438... |
438 |
|
438 |
|
439 |
<?php foreach ( $champ['fieldValues']['listValue'] as $list_value ) : ?>
|
439 |
<?php foreach ( $champ['fieldValues']['listValue'] as $list_value ) : ?>
|
Line 445... |
Line 445... |
445 |
$list_value = substr( $list_value, 0, -1 );
|
445 |
$list_value = substr( $list_value, 0, -1 );
|
446 |
endif;
|
446 |
endif;
|
447 |
?>
|
447 |
?>
|
Line 448... |
Line 448... |
448 |
|
448 |
|
449 |
<?php if( 'other' !== $list_value ) : ?>
|
449 |
<?php if( 'other' !== $list_value ) : ?>
|
450 |
<option value="<?= $list_value; ?>"<?= $selected; ?>>
|
450 |
<option value="<?php echo $list_value; ?>"<?php echo $selected; ?>>
|
451 |
<?php echo ucfirst( $list_value ); ?>
|
451 |
<?php echo ucfirst( $list_value ); ?>
|
452 |
</option>
|
452 |
</option>
|
453 |
<?php else : ?>
|
453 |
<?php else : ?>
|
454 |
<option class="other form-control is-select" value="other" data-element="<?= $champ['element']; ?>">Autre</option>
|
454 |
<option class="other form-control is-select" value="other" data-element="<?php echo $champ['element']; ?>">Autre</option>
|
Line 455... |
Line 455... |
455 |
<?php endif; ?>
|
455 |
<?php endif; ?>
|
Line 456... |
Line 456... |
456 |
|
456 |
|
Line 461... |
Line 461... |
461 |
</div>
|
461 |
</div>
|
462 |
<?php break;
|
462 |
<?php break;
|
Line 463... |
Line 463... |
463 |
|
463 |
|
464 |
case 'textarea': ?>
|
464 |
case 'textarea': ?>
|
465 |
<div class="control-group">
|
465 |
<div class="control-group">
|
466 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
466 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
467 |
<div class="col-sm-8 mb-3">
|
467 |
<div class="col-sm-8 mb-3">
|
468 |
<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>
|
468 |
<textarea type="<?php echo $champ['element']; ?>" id="<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>"></textarea>
|
469 |
</div>
|
469 |
</div>
|
470 |
</div>
|
470 |
</div>
|
Line 471... |
Line 471... |
471 |
<?php break;
|
471 |
<?php break;
|
472 |
|
472 |
|
473 |
case 'range': ?>
|
473 |
case 'range': ?>
|
474 |
<div class="control-group">
|
474 |
<div class="control-group">
|
475 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $help . $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
475 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
476 |
<div class="col-sm-8 mb-3 row">
|
476 |
<div class="col-sm-8 mb-3 row">
|
Line 477... |
Line 477... |
477 |
<?php
|
477 |
<?php
|
Line 503... |
Line 503... |
503 |
"</p>";
|
503 |
"</p>";
|
504 |
}
|
504 |
}
|
Line 505... |
Line 505... |
505 |
|
505 |
|
506 |
echo $div_range_min_max;
|
506 |
echo $div_range_min_max;
|
507 |
?>
|
507 |
?>
|
508 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="pl-3 custom-range <?= $champ['key'] . $help; ?> form-control" <?= $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?= $champ['name']; ?>">
|
508 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="pl-3 custom-range <?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
509 |
</div>
|
509 |
</div>
|
510 |
</div>
|
510 |
</div>
|
Line 511... |
Line 511... |
511 |
<?php break;
|
511 |
<?php break;
|
512 |
|
512 |
|
513 |
case 'number':
|
513 |
case 'number':
|
514 |
case 'date': ?>
|
514 |
case 'date': ?>
|
515 |
<div class="control-group">
|
515 |
<div class="control-group">
|
516 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
516 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
517 |
<div class="col-sm-8 mb-3">
|
517 |
<div class="col-sm-8 mb-3">
|
518 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help; ?> form-control"<?php echo $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?= $champ['name']; ?>">
|
518 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control"<?php echo $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
519 |
</div>
|
519 |
</div>
|
Line 520... |
Line 520... |
520 |
</div>
|
520 |
</div>
|
521 |
<?php break;
|
521 |
<?php break;
|
522 |
|
522 |
|
523 |
case 'text' :
|
523 |
case 'text' :
|
524 |
case 'email':
|
524 |
case 'email':
|
525 |
default: ?>
|
525 |
default: ?>
|
526 |
<div class="control-group">
|
526 |
<div class="control-group">
|
527 |
<label for="<?= $champ['key']; ?>" class="col-sm-8<?= $mandatory; ?>" <?= $description; ?>><?= $champ['name'] . $help_button; ?></label>
|
527 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
528 |
<div class="col-sm-8 mb-3">
|
528 |
<div class="col-sm-8 mb-3">
|
529 |
<input type="<?= $champ['element']; ?>" name="<?= $champ['key']; ?>" class="<?= $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?= $champ['name']; ?>">
|
529 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
530 |
</div>
|
530 |
</div>
|
531 |
</div>
|
531 |
</div>
|
Line 537... |
Line 537... |
537 |
</div>
|
537 |
</div>
|
538 |
</div>
|
538 |
</div>
|
539 |
</form>
|
539 |
</form>
|
540 |
<?php endif; ?><!-- Fin champs supplémentaires -->
|
540 |
<?php endif; ?><!-- Fin champs supplémentaires -->
|
Line 541... |
Line 541... |
541 |
|
541 |
|
542 |
<form id="form-upload" class="form-horizontal bloc-top" action="<?= $url_ws_upload ?>" method="post" enctype="multipart/form-data">
|
542 |
<form id="form-upload" class="form-horizontal bloc-top" action="<?php echo $url_ws_upload ?>" method="post" enctype="multipart/form-data">
|
543 |
<h2><?= $image['titre']; ?></h2>
|
543 |
<h2><?php echo $image['titre']; ?></h2>
|
544 |
<p class="miniature-info" class="discretion help-inline">
|
544 |
<p class="miniature-info" class="discretion help-inline">
|
545 |
<?= $image['aide']; ?>
|
545 |
<?php echo $image['aide']; ?>
|
546 |
</p>
|
546 |
</p>
|
547 |
<div id ="photos-conteneur" class="control-group">
|
547 |
<div id ="photos-conteneur" class="control-group">
|
548 |
<div>
|
548 |
<div>
|
549 |
<label for="fichier" class="label-file btn btn-large btn-info mb-3">
|
549 |
<label for="fichier" class="label-file btn btn-large btn-info mb-3">
|
550 |
<span class="label-text"><i class="fas fa-download"></i> <?= $image['ajouter']; ?></span>
|
550 |
<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
|
551 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
551 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
552 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
552 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
553 |
</label>
|
553 |
</label>
|
Line 561... |
Line 561... |
561 |
<div id="image" class="row"></div>
|
561 |
<div id="image" class="row"></div>
|
562 |
</div>
|
562 |
</div>
|
Line 563... |
Line 563... |
563 |
|
563 |
|
564 |
<!-- Bouton cr&ation d'une obs -->
|
564 |
<!-- Bouton cr&ation d'une obs -->
|
565 |
<div class="row mb-3">
|
565 |
<div class="row mb-3">
|
566 |
<div class="centre" title="<?= $resume['creer-title']; ?>">
|
566 |
<div class="centre" title="<?php echo $resume['creer-title']; ?>">
|
567 |
<button id="ajouter-obs" class="btn btn-primary"><i class="fas fa-check-square"></i> <?= $resume['creer']; ?></button>
|
567 |
<button id="ajouter-obs" class="btn btn-primary"><i class="fas fa-check-square"></i> <?php echo $resume['creer']; ?></button>
|
568 |
</div>
|
568 |
</div>
|
Line 569... |
Line 569... |
569 |
</div>
|
569 |
</div>
|
570 |
|
570 |
|
571 |
<!-- Messages d'erreur du formulaire-->
|
571 |
<!-- Messages d'erreur du formulaire-->
|
572 |
<div class="row">
|
572 |
<div class="row">
|
573 |
<div class="zone-alerte">
|
573 |
<div class="zone-alerte">
|
574 |
<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
|
574 |
<div id="dialogue-bloquer-creer-obs" class="alert alert-warning alert-block hidden">
|
575 |
<a class="close">×</a>
|
575 |
<a class="close">×</a>
|
576 |
<h4 class="alert-heading"><?= $resume['alert10max']; ?></h4>
|
576 |
<h4 class="alert-heading"><?php echo $resume['alert10max']; ?></h4>
|
577 |
<p><?= $resume['alert10max-desc']; ?></p>
|
577 |
<p><?php echo $resume['alert10max-desc']; ?></p>
|
578 |
</div>
|
578 |
</div>
|
579 |
</div>
|
579 |
</div>
|
580 |
<div class="zone-alerte">
|
580 |
<div class="zone-alerte">
|
581 |
<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
|
581 |
<div id="dialogue-form-invalide" class="alert alert-warning alert-block hidden">
|
582 |
<a class="close">×</a>
|
582 |
<a class="close">×</a>
|
583 |
<h4 class="alert-heading"><?= $resume['alertchp']; ?></h4>
|
583 |
<h4 class="alert-heading"><?php echo $resume['alertchp']; ?></h4>
|
584 |
<p><?= $resume['alertchp-desc']; ?></p>
|
584 |
<p><?php echo $resume['alertchp-desc']; ?></p>
|
585 |
</div>
|
585 |
</div>
|
Line 586... |
Line 586... |
586 |
</div>
|
586 |
</div>
|
587 |
</div>
|
587 |
</div>
|
588 |
|
588 |
|
589 |
<!-- Affiche le tableau récapitualif des observations ajoutées -->
|
589 |
<!-- Affiche le tableau récapitualif des observations ajoutées -->
|
590 |
<div id="zone-liste-obs" class="bloc-top hidden">
|
590 |
<div id="zone-liste-obs" class="bloc-top hidden">
|
591 |
<div class="alert alert-info">
|
591 |
<div class="alert alert-info">
|
592 |
<h2 class="transmission-title"><strong><?= $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
|
592 |
<h2 class="transmission-title"><strong><?php echo $resume['titre']; ?> <span class="obs-nbre badge badge-info">0</span></strong></h2>
|
593 |
<button id="transmettre-obs" class="btn btn-primary droite" disabled="disabled"
|
593 |
<button id="transmettre-obs" class="btn btn-primary droite" disabled="disabled"
|
594 |
title="<?= $resume['trans-title']; ?>" type="button">
|
594 |
title="<?php echo $resume['trans-title']; ?>" type="button">
|
595 |
<?= $resume['trans']; ?>
|
595 |
<?php echo $resume['trans']; ?>
|
596 |
</button>
|
596 |
</button>
|
597 |
</div>
|
597 |
</div>
|
598 |
<div id="liste-obs" ></div>
|
598 |
<div id="liste-obs" ></div>
|
599 |
<div class="row">
|
599 |
<div class="row">
|
600 |
<div class="zone-alerte">
|
600 |
<div class="zone-alerte">
|
601 |
<div id="dialogue-zero-obs" class="alert alert-block hidden">
|
601 |
<div id="dialogue-zero-obs" class="alert alert-block hidden">
|
602 |
<a class="close">×</a>
|
602 |
<a class="close">×</a>
|
603 |
<h4 class="alert-heading"><?= $resume['alert0obs']; ?></h4>
|
603 |
<h4 class="alert-heading"><?php echo $resume['alert0obs']; ?></h4>
|
604 |
<p><?= $resume['alert0obs-desc']; ?></p>
|
604 |
<p><?php echo $resume['alert0obs-desc']; ?></p>
|
605 |
</div>
|
605 |
</div>
|
606 |
<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
|
606 |
<div id="dialogue-obs-transaction-ok" class="alert alert-success alert-block hidden">
|
607 |
<a class="close">×</a>
|
607 |
<a class="close">×</a>
|
608 |
<h4 class="alert-heading"><?= $resume['info-trans']; ?></h4>
|
608 |
<h4 class="alert-heading"><?php echo $resume['info-trans']; ?></h4>
|
609 |
<div class="alert-txt"></div>
|
609 |
<div class="alert-txt"></div>
|
610 |
</div>
|
610 |
</div>
|
611 |
<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
|
611 |
<div id="dialogue-obs-transaction-ko" class="alert alert-error alert-block hidden">
|
612 |
<a class="close">×</a>
|
612 |
<a class="close">×</a>
|
613 |
<h4 class="alert-heading"><?= $resume['alerttrans']; ?></h4>
|
613 |
<h4 class="alert-heading"><?php echo $resume['alerttrans']; ?></h4>
|
614 |
<div class="alert-txt"></div>
|
614 |
<div class="alert-txt"></div>
|
615 |
</div>
|
615 |
</div>
|
Line 620... |
Line 620... |
620 |
<!-- Fenêtres modales -->
|
620 |
<!-- Fenêtres modales -->
|
621 |
<div id="chargement" class="modal-fenetre hidden">
|
621 |
<div id="chargement" class="modal-fenetre hidden">
|
622 |
<div id="chargement-centrage" class="modal-contenu">
|
622 |
<div id="chargement-centrage" class="modal-contenu">
|
623 |
<div class="progress progress-striped active">
|
623 |
<div class="progress progress-striped active">
|
624 |
<div id="barre-progression-upload" class="bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
|
624 |
<div id="barre-progression-upload" class="bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="10" style="">
|
625 |
<span class="sr-only">0/10 <?= $resume['nbobs']; ?></span>
|
625 |
<span class="sr-only">0/10 <?php echo $resume['nbobs']; ?></span>
|
626 |
</div>
|
626 |
</div>
|
627 |
</div>
|
627 |
</div>
|
628 |
<p id="chargement-txt" style="color:white;font-size:1.5em;">
|
628 |
<p id="chargement-txt" style="color:white;font-size:1.5em;">
|
629 |
<?= $resume['transencours']; ?>
|
629 |
<?php echo $resume['transencours']; ?>
|
630 |
</p>
|
630 |
</p>
|
631 |
</div>
|
631 |
</div>
|
632 |
</div>
|
632 |
</div>
|
Line 633... |
Line 633... |
633 |
|
633 |
|
634 |
<!-- Templates HTML -->
|
634 |
<!-- Templates HTML -->
|
635 |
<div id="tpl-transmission-ok" class="hidden">
|
635 |
<div id="tpl-transmission-ok" class="hidden">
|
636 |
<p class="msg"><?= $resume['transok']; ?></p>
|
636 |
<p class="msg"><?php echo $resume['transok']; ?></p>
|
637 |
</div>
|
637 |
</div>
|
638 |
<div id="tpl-transmission-ko" class="hidden">
|
638 |
<div id="tpl-transmission-ko" class="hidden">
|
639 |
<p class="msg"><?= $resume['transko']; ?></p>
|
639 |
<p class="msg"><?php echo $resume['transko']; ?></p>
|
640 |
</div>
|
640 |
</div>
|
641 |
</div>
|
641 |
</div>
|
642 |
</div>
|
642 |
</div>
|
643 |
<div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
|
643 |
<div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
|
Line 656... |
Line 656... |
656 |
</div>
|
656 |
</div>
|
657 |
</div>
|
657 |
</div>
|
658 |
</div>
|
658 |
</div>
|
659 |
<!-- carto -->
|
659 |
<!-- carto -->
|
660 |
<?php if( $widget["type_localisation"] === 'point' ): ?>
|
660 |
<?php if( $widget["type_localisation"] === 'point' ): ?>
|
661 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
|
661 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
|
662 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-lib-app_inputs.js"></script>
|
662 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-lib-app_inputs.js"></script>
|
663 |
<?php elseif ( $widget["type_localisation"] === 'rue' ) : ?>
|
663 |
<?php elseif ( $widget["type_localisation"] === 'rue' ) : ?>
|
664 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-custom-element.js"></script>
|
664 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/tb-geoloc/tb-geoloc-custom-element.js"></script>
|
665 |
<?php endif; ?>
|
665 |
<?php endif; ?>
|
666 |
<script type="text/javascript">
|
666 |
<script type="text/javascript">
|
667 |
var tbGeolocation = document.getElementById( 'tb-geolocation' );
|
667 |
var tbGeolocation = document.getElementById( 'tb-geolocation' );
|
Line 668... |
Line 668... |
668 |
|
668 |
|
Line 705... |
Line 705... |
705 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
705 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
706 |
<!-- Bootstrap -->
|
706 |
<!-- Bootstrap -->
|
707 |
<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>
|
707 |
<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>
|
708 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
708 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
709 |
<!-- Authentification -->
|
709 |
<!-- Authentification -->
|
710 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/auth.js"></script>
|
710 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/auth.js"></script>
|
711 |
<!-- Connexion, bloc de prévisualisation, date -->
|
711 |
<!-- Connexion, bloc de prévisualisation, date -->
|
712 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/WidgetSaisie.js"></script>
|
712 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/WidgetSaisie.js"></script>
|
713 |
<script type="text/javascript" src="<?= $url_base; ?>modules/saisie2/squelettes/js/champs-supp.js"></script>
|
713 |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/saisie2/squelettes/js/champs-supp.js"></script>
|
714 |
<script type="text/javascript">
|
714 |
<script type="text/javascript">
|
715 |
//<![CDATA[
|
715 |
//<![CDATA[
|
716 |
$( document ).ready( function() {
|
716 |
$( document ).ready( function() {
|
Line 717... |
Line 717... |
717 |
|
717 |
|
Line 720... |
Line 720... |
720 |
|
720 |
|
721 |
//
|
721 |
//
|
722 |
//
|
722 |
//
|
723 |
//
|
723 |
//
|
724 |
// La présence du parametre 'debug' dans l'URL enclenche le débogage
|
724 |
// La présence du parametre 'debug' dans l'URL enclenche le débogage
|
725 |
widget.debug = <?= isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
|
725 |
widget.debug = <?php echo isset( $_GET['debug'] ) ? 'true' : 'false'; ?>;
|
726 |
// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
|
726 |
// La présence du parametre 'html5' dans l'URL enclenche les fonctions avancées HTML5
|
727 |
widget.html5 = <?= isset($_GET['html5']) ? 'true' : 'false'; ?>;
|
727 |
widget.html5 = <?php echo isset($_GET['html5']) ? 'true' : 'false'; ?>;
|
728 |
// Mot-clé du widget/projet
|
728 |
// Mot-clé du widget/projet
|
729 |
widget.tagProjet = "WidgetSaisie";
|
729 |
widget.tagProjet = "WidgetSaisie";
|
730 |
// Mots-clés à ajouter aux images
|
730 |
// Mots-clés à ajouter aux images
|
731 |
widget.tagImg = "<?= isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
|
731 |
widget.tagImg = "<?php echo isset($_GET['tag-img']) ? $_GET['tag-img'] : ''; ?>";
|
732 |
widget.separationTagImg = "<?= isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
|
732 |
widget.separationTagImg = "<?php echo isset($_GET['motcle']) && isset($_GET['tag-img']) ? ',' : ''; ?>";
|
733 |
widget.tagImg = <?= isset($_GET['motcle']) ? "'".$_GET['motcle']."' + widget.separationTagImg + widget.tagImg" : 'widget.tagImg'; ?>;
|
733 |
widget.tagImg = <?php echo isset($_GET['motcle']) ? "'".$_GET['motcle']."' + widget.separationTagImg + widget.tagImg" : 'widget.tagImg'; ?>;
|
734 |
// Mots-clés à ajouter aux observations
|
734 |
// Mots-clés à ajouter aux observations
|
735 |
widget.tagObs = "<?= isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
|
735 |
widget.tagObs = "<?php echo isset($_GET['tag-obs']) ? $_GET['tag-obs'] : ''; ?>";
|
736 |
widget.separationTagObs = "<?= isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
|
736 |
widget.separationTagObs = "<?php echo isset($_GET['projet']) && isset($_GET['tag-obs']) ? ',' : ''; ?>";
|
737 |
widget.tagObs = <?= isset($_GET['projet']) ? "'".$_GET['projet']."' + widget.separationTagObs + widget.tagObs" : 'widget.tagObs'; ?>;
|
737 |
widget.tagObs = <?php echo isset($_GET['projet']) ? "'".$_GET['projet']."' + widget.separationTagObs + widget.tagObs" : 'widget.tagObs'; ?>;
|
738 |
// Précharger le formulaire avec les infos d'une observation
|
738 |
// Précharger le formulaire avec les infos d'une observation
|
739 |
widget.obsId = "<?= isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>";
|
739 |
widget.obsId = "<?php echo isset($_GET['id-obs']) ? $_GET['id-obs'] : ''; ?>";
|
740 |
// URL du web service réalisant l'insertion des données dans la base du CEL.
|
740 |
// URL du web service réalisant l'insertion des données dans la base du CEL.
|
741 |
widget.serviceSaisieUrl = "<?= $url_ws_saisie; ?>";
|
741 |
widget.serviceSaisieUrl = "<?php echo $url_ws_saisie; ?>";
|
742 |
// URL du web service permettant de récupérer les infos d'une observation du CEL.
|
742 |
// URL du web service permettant de récupérer les infos d'une observation du CEL.
|
743 |
widget.serviceObsUrl = "<?= $url_ws_obs; ?>";
|
743 |
widget.serviceObsUrl = "<?php echo $url_ws_obs; ?>";
|
744 |
//
|
744 |
//
|
745 |
//
|
745 |
//
|
Line 746... |
Line 746... |
746 |
//
|
746 |
//
|
747 |
|
747 |
|
748 |
// langue
|
748 |
// langue
|
749 |
widget.langue = "<?= $widget['langue']; ?>";
|
749 |
widget.langue = "<?php echo $widget['langue']; ?>";
|
750 |
// Squelette d'URL du web service de l'annuaire.
|
750 |
// Squelette d'URL du web service de l'annuaire.
|
751 |
widget.serviceAnnuaireIdUrl = "<?= $url_ws_annuaire; ?>";
|
751 |
widget.serviceAnnuaireIdUrl = "<?php echo $url_ws_annuaire; ?>";
|
752 |
// URL de l'icône du chargement en cours
|
752 |
// URL de l'icône du chargement en cours
|
753 |
widget.chargementIconeUrl = "<?= $url_base; ?>modules/saisie/squelettes/defaut/img/icones/chargement.gif";
|
753 |
widget.chargementIconeUrl = "<?php echo $url_base; ?>modules/saisie/squelettes/defaut/img/icones/chargement.gif";
|
754 |
// URL de l'icône du chargement en cours d'une image
|
754 |
// URL de l'icône du chargement en cours d'une image
|
755 |
widget.chargementImageIconeUrl = "<?= $url_base; ?>modules/saisie/squelettes/defaut/img/icones/chargement-image.gif";
|
755 |
widget.chargementImageIconeUrl = "<?php echo $url_base; ?>modules/saisie/squelettes/defaut/img/icones/chargement-image.gif";
|
756 |
// URL de l'icône du calendrier
|
756 |
// URL de l'icône du calendrier
|
757 |
widget.calendrierIconeUrl = "<?= $url_base; ?>modules/saisie/squelettes/defaut/img/icones/calendrier.png";
|
757 |
widget.calendrierIconeUrl = "<?php echo $url_base; ?>modules/saisie/squelettes/defaut/img/icones/calendrier.png";
|
Line 758... |
Line 758... |
758 |
// URL de l'icône pour une photo manquante
|
758 |
// URL de l'icône pour une photo manquante
|
759 |
widget.pasDePhotoIconeUrl = "<?= $url_base; ?>modules/saisie/squelettes/defaut/img/icones/pasdephoto.png";
|
759 |
widget.pasDePhotoIconeUrl = "<?php echo $url_base; ?>modules/saisie/squelettes/defaut/img/icones/pasdephoto.png";
|
760 |
|
760 |
|
761 |
// Code du référentiel utilisé pour les nom scientifiques.
|
761 |
// Code du référentiel utilisé pour les nom scientifiques.
|
762 |
widget.nomSciReferentiel = "<?= strtolower( $widget['referentiel'] ); ?>";
|
762 |
widget.nomSciReferentiel = "<?php echo ( !empty( $widget['referentiel'] ) ) ? strtolower( $widget['referentiel'] ) : 'bdtfxr'; ?>";
|
763 |
// Indication de la présence d'une espèce imposée
|
763 |
// Indication de la présence d'une espèce imposée
|
764 |
widget.especeImposee = "<?= $espece_imposee; ?>";
|
764 |
widget.especeImposee = "<?php echo $espece_imposee; ?>";
|
765 |
// Tableau d'informations sur l'espèce imposée
|
765 |
// Tableau d'informations sur l'espèce imposée
|
766 |
widget.infosEspeceImposee = "<?= $infos_espece; ?>";
|
766 |
widget.infosEspeceImposee = "<?php echo $infos_espece; ?>";
|
767 |
// Nombre d'élément dans les listes d'auto-complétion
|
767 |
// Nombre d'élément dans les listes d'auto-complétion
|
Line 768... |
Line 768... |
768 |
widget.autocompletionElementsNbre = 20;
|
768 |
widget.autocompletionElementsNbre = 20;
|
769 |
// Indication de la présence d'un référentiel imposé
|
769 |
// Indication de la présence d'un référentiel imposé
|
770 |
widget.referentielImpose = "<?= $referentiel_impose; ?>";
|
770 |
widget.referentielImpose = "<?php echo $referentiel_impose; ?>";
|
771 |
|
771 |
|
772 |
// URL du web service permettant l'auto-complétion des noms scientifiques
|
772 |
// URL du web service permettant l'auto-complétion des noms scientifiques
|
773 |
widget.serviceAutocompletionNomSciUrl = "<?= $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
|
773 |
widget.serviceAutocompletionNomSciUrl = "<?php echo $widget['especes']['url_ws_autocompletion_ns']; ?>?"+
|
774 |
"masque={masque}&"+
|
774 |
"masque={masque}&"+
|
775 |
"recherche=etendue&"+
|
775 |
"recherche=etendue&"+
|
776 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
776 |
"retour.champs=famille,nom_retenu,nom_retenu_complet,num_taxonomique,nom_retenu.id&"+
|
777 |
"ns.structure=au&"+
|
777 |
"ns.structure=au&"+
|
778 |
"navigation.limite=" + widget.autocompletionElementsNbre;
|
778 |
"navigation.limite=" + widget.autocompletionElementsNbre;
|
779 |
// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
|
779 |
// Squelette d'URL du web service permettant l'auto-complétion des noms scientifiques
|
780 |
widget.serviceAutocompletionNomSciUrlTpl = "<?= $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
|
780 |
widget.serviceAutocompletionNomSciUrlTpl = "<?php echo $widget['especes']['url_ws_autocompletion_ns_tpl']; ?>?"+
|
781 |
"masque={masque}&"+
|
781 |
"masque={masque}&"+
|
Line 794... |
Line 794... |
794 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
794 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
795 |
widget.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
|
795 |
widget.serviceNomCommuneUrl = "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
|
796 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
796 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
|
797 |
widget.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
|
797 |
widget.serviceNomCommuneUrlAlt = "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1";
|
798 |
// URL du marqueur à utiliser dans la carte Google Map
|
798 |
// URL du marqueur à utiliser dans la carte Google Map
|
799 |
widget.googleMapMarqueurUrl = "<?=$url_base?>modules/saisie/squelettes/defaut/img/marqueurs/epingle.png";
|
799 |
widget.googleMapMarqueurUrl = "<?php echo $url_base?>modules/saisie/squelettes/defaut/img/marqueurs/epingle.png";
|
800 |
//
|
800 |
//
|
801 |
//
|
801 |
//
|
802 |
//
|
802 |
//
|
Line 803... |
Line 803... |
803 |
|
803 |
|
Line 807... |
Line 807... |
807 |
//]]>
|
807 |
//]]>
|
808 |
</script>
|
808 |
</script>
|
Line 809... |
Line 809... |
809 |
|
809 |
|
810 |
<!-- Barre de navigation -->
|
810 |
<!-- Barre de navigation -->
|
811 |
<?php if ( $bar ): ?>
|
811 |
<?php if ( $bar ): ?>
|
812 |
<script src="<?= $url_script_navigation; ?>"></script>
|
812 |
<script src="<?php echo $url_script_navigation; ?>"></script>
|
813 |
<?php endif; ?>
|
813 |
<?php endif; ?>
|
814 |
</body>
|
814 |
</body>
|