1824 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html lang="fr" manifest="mobile.appcache">
|
1827 |
jpm |
3 |
<head>
|
|
|
4 |
<base href="http://www.tela-botanica.org/eflore/cel/widget/modules/mobile/"/>
|
1824 |
jpm |
5 |
<title>CEL Mobile</title>
|
|
|
6 |
|
|
|
7 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
|
8 |
<meta http-equiv="Content-style-type" content="text/css" />
|
|
|
9 |
<meta http-equiv="Content-script-type" content="text/javascript" />
|
|
|
10 |
<meta http-equiv="Content-language" content="fr" />
|
|
|
11 |
|
|
|
12 |
<meta name="revisit-after" content="15 days" />
|
|
|
13 |
<meta name="robots" content="index,follow" />
|
|
|
14 |
<meta name="author" content="Jean-Pascal MILCENT, Isabelle NEMBROT" />
|
|
|
15 |
<meta name="keywords" content="Tela Botanica, CEL, mobile" />
|
|
|
16 |
<meta name="description" content="Widget de saisie du CEL pour smartphone" />
|
|
|
17 |
|
|
|
18 |
<!-- Favicones -->
|
|
|
19 |
<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/favicon.ico" />
|
|
|
20 |
|
|
|
21 |
<!-- Viewport -->
|
|
|
22 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
23 |
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
24 |
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
25 |
|
|
|
26 |
<!-- CSS -->
|
|
|
27 |
<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
|
|
|
28 |
<link href="css/mobile.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
29 |
|
|
|
30 |
<!-- Javascript -->
|
|
|
31 |
<script src="http://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
|
|
|
32 |
|
|
|
33 |
<!-- Javascript : appli saisie -->
|
|
|
34 |
<script type="text/javascript">
|
|
|
35 |
//<![CDATA[
|
|
|
36 |
// Nombre d'observations max autorisé avant transmission
|
|
|
37 |
var OBS_MAX_NBRE = 10;
|
|
|
38 |
// Délai d'attente avant de lancer la recherche des noms latins en ms
|
|
|
39 |
var DELAI_RECHERCHE = 500;
|
|
|
40 |
// Mot-clé du widget/projet
|
|
|
41 |
var TAG_PROJET = "WidgetSaisie";
|
|
|
42 |
// URL du web service réalisant l'insertion des données dans la base du CEL.
|
|
|
43 |
var SERVICE_SAISIE_URL = "http://www.tela-botanica.org/service:cel:CelWidgetSaisie";
|
|
|
44 |
//var SERVICE_SAISIE_URL = "http://www.tela-botanica.org/eflore-test/cel/jrest/CelWidgetSaisie";
|
|
|
45 |
// URL du web service annuaire des membres du réseau.
|
|
|
46 |
var SERVICE_ANNUAIRE = "http://www.tela-botanica.org/client/annuaire_nouveau/actuelle/jrest/utilisateur/identite-par-courriel/";
|
|
|
47 |
// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
|
|
|
48 |
var SERVICE_NOM_COMMUNE_URL = "http://www.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
|
|
|
49 |
// Texte en absence de connexion
|
|
|
50 |
var TEXTE_HORS_LIGNE = 'Aucune connexion.';
|
|
|
51 |
// Texte en absence de compte
|
|
|
52 |
var TEXTE_NON_COMPTE = 'Aucun compte enregistré.';
|
|
|
53 |
// Texte en presence de compte
|
|
|
54 |
var TEXTE_OUI_COMPTE = 'Ajouter au compte ';
|
|
|
55 |
// Texte d'identification des observations
|
|
|
56 |
var TEXTE_OBS = 'obsId';
|
|
|
57 |
// Texte d'identification des photos
|
|
|
58 |
var TEXTE_PHOTO = 'photoId';
|
|
|
59 |
//]]>
|
|
|
60 |
</script>
|
|
|
61 |
<script type="text/javascript" src="js/mobile.js"></script>
|
|
|
62 |
<script type="text/javascript" src="js/bdtfx.js"></script>
|
|
|
63 |
|
|
|
64 |
<!-- Javascript : Jquery Mobile -->
|
|
|
65 |
<script src="http://www.tela-botanica.org/commun/jquery/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
|
|
|
66 |
</head>
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
<body data-theme="b">
|
|
|
70 |
<div id="menu" data-role="page"> <!--data-add-back-btn="true" data-back-btn-text="Retour"-->
|
|
|
71 |
<div data-role="header">
|
|
|
72 |
<h1>Accueil</h1>
|
|
|
73 |
<a href="#infos" data-icon="info" data-iconpos="notext" class="ui-btn-right">Infos</a>
|
|
|
74 |
</div>
|
|
|
75 |
<div data-role="content" data-theme="g">
|
|
|
76 |
<p class="center">
|
|
|
77 |
Bienvenue sur le Carnet En Ligne mobile ! <br />
|
|
|
78 |
</p>
|
|
|
79 |
<ul data-role="listview">
|
|
|
80 |
<li>
|
|
|
81 |
<img src="http://www.tela-botanica.org/commun/icones/glyphish/187-pencil.png" class="ui-li-icon"/>
|
|
|
82 |
<a href="#saisie" class="saisie" data-role="button">1 - Saisir une observation</a>
|
|
|
83 |
</li>
|
|
|
84 |
<li>
|
|
|
85 |
<img src="http://www.tela-botanica.org/commun/icones/glyphish/179-notepad.png" class="ui-li-icon"/>
|
|
|
86 |
<a href="#liste" data-role="button">2 - Voir mes observations</a>
|
|
|
87 |
</li>
|
|
|
88 |
<li>
|
|
|
89 |
<img src="http://www.tela-botanica.org/commun/icones/glyphish/56-cloud.png" class="ui-li-icon"/>
|
|
|
90 |
<a href="#transmission" data-role="button">3 - Transmettre mes observations</a>
|
|
|
91 |
</li>
|
|
|
92 |
<li></li>
|
|
|
93 |
</ul>
|
|
|
94 |
</div>
|
|
|
95 |
<div data-role="footer" data-position="fixed"></div>
|
|
|
96 |
</div>
|
|
|
97 |
|
|
|
98 |
<div id="saisie" data-role="page">
|
|
|
99 |
<div data-role="header" data-position="inline">
|
|
|
100 |
<a href="#menu" data-icon="home" data-iconpos="notext" data-direction="reverse">Accueil</a>
|
|
|
101 |
<h1>Saisie</h1>
|
|
|
102 |
<a href="#infos" data-icon="info" data-iconpos="notext" class="ui-btn-right">Infos</a>
|
|
|
103 |
</div>
|
|
|
104 |
<form id="form-saisie-observation" method="post" action="#">
|
|
|
105 |
<div data-role="content">
|
|
|
106 |
<div id="obs-saisie-infos"></div>
|
|
|
107 |
<div data-role="fieldcontain">
|
|
|
108 |
<label for="nom">Espèce : </label>
|
|
|
109 |
<span id="nom"></span>
|
|
|
110 |
|
|
|
111 |
<br />
|
|
|
112 |
<a href="#saisie-popup" id="saisie-popup-btn"
|
|
|
113 |
data-role="button" data-icon="search" data-iconpos="right"
|
|
|
114 |
data-rel="dialog" data-transition="pop" data-theme="b">
|
|
|
115 |
Changer l'espèce
|
|
|
116 |
</a>
|
|
|
117 |
<hr />
|
|
|
118 |
|
|
|
119 |
<label for="date">
|
|
|
120 |
Date :
|
|
|
121 |
<span id="date"></span>
|
|
|
122 |
</label>
|
|
|
123 |
<hr />
|
|
|
124 |
|
|
|
125 |
<button id="geolocaliser"
|
|
|
126 |
data-role="button" data-icon="refresh" data-iconpos="" data-ajax="false">
|
|
|
127 |
Recalculer ma position
|
|
|
128 |
</button>
|
|
|
129 |
|
|
|
130 |
<label for="lat">
|
|
|
131 |
Latitude :
|
|
|
132 |
<span id="lat"></span>
|
|
|
133 |
</label>
|
|
|
134 |
|
|
|
135 |
<br />
|
|
|
136 |
<label for="lng">
|
|
|
137 |
Longitude :
|
|
|
138 |
<span id="lng"></span>
|
|
|
139 |
</label>
|
|
|
140 |
|
|
|
141 |
<br />
|
|
|
142 |
<label for="location">
|
|
|
143 |
Commune :
|
|
|
144 |
<span id="location"></span>
|
|
|
145 |
<input id="code-insee" type="hidden" name="code-insee" />
|
|
|
146 |
</label>
|
|
|
147 |
|
|
|
148 |
<br />
|
|
|
149 |
<hr />
|
|
|
150 |
<button id="sauver-obs" data-role="button" data-icon="check">Sauver</button>
|
|
|
151 |
|
|
|
152 |
<input id="referentiel" type="hidden" name="referentiel" />
|
|
|
153 |
<input id="nom-sci-select" type="hidden" name="nom-sci-select" />
|
|
|
154 |
<input id="num-nom-select" type="hidden" name="num-nom-select" />
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
<div data-role="footer" data-position="fixed">
|
|
|
158 |
<div data-role="navbar">
|
|
|
159 |
<ul>
|
|
|
160 |
<li><a href="#liste" data-role="button" data-icon="notepad" data-iconpos="notext">Liste de mes obs.</a></li>
|
|
|
161 |
<li><a href="#transmission" data-role="button" data-icon="cloud" data-iconpos="notext">Transmission</a></li>
|
|
|
162 |
</ul>
|
|
|
163 |
</div>
|
|
|
164 |
</div>
|
|
|
165 |
</form>
|
|
|
166 |
</div>
|
|
|
167 |
|
|
|
168 |
<div id="saisie-popup" data-role="page" data-history="false" data-close-btn="right">
|
|
|
169 |
<div data-role="header">
|
|
|
170 |
<h1></h1>
|
|
|
171 |
</div>
|
|
|
172 |
<div data-role="content">
|
|
|
173 |
<ul id="liste-noms-latins" data-role="listview"
|
|
|
174 |
data-inset="true" data-filter="true" data-filter-reveal="true"
|
|
|
175 |
data-filter-placeholder="Trouver une espèce...">
|
|
|
176 |
</ul>
|
|
|
177 |
<div class="hidden">
|
|
|
178 |
<button id="recherche-chargement" data-theme="a" data-textonly="true" data-textvisible="true" data-msgtext="Chargement des résultats..." ></button>
|
|
|
179 |
</div>
|
|
|
180 |
</div>
|
|
|
181 |
</div>
|
|
|
182 |
|
|
|
183 |
<div id="liste" data-role="page">
|
|
|
184 |
<div data-role="header" data-position="inline">
|
|
|
185 |
<a href="#menu" data-icon="home" data-iconpos="notext" data-direction="reverse">Accueil</a>
|
|
|
186 |
<h1>Observations</h1>
|
|
|
187 |
<a href="#infos" data-icon="info" data-iconpos="notext" class="ui-btn-right">Infos</a>
|
|
|
188 |
</div>
|
|
|
189 |
<div data-role="content">
|
|
|
190 |
<div id="obs-suppression-infos"></div>
|
|
|
191 |
<ul id="liste-obs" data-role="listview" data-split-icon="delete" data-split-theme="g" data-theme="g" data-inset="true"></ul>
|
|
|
192 |
</div>
|
|
|
193 |
<div data-role="footer" data-position="fixed">
|
|
|
194 |
<div data-role="navbar">
|
|
|
195 |
<ul>
|
|
|
196 |
<li><a href="#saisie" class="saisie" data-role="button" data-icon="pencil" data-iconpos="notext">Saisie</a></li>
|
|
|
197 |
<li><a href="#transmission" data-role="button" data-icon="cloud" data-iconpos="notext">Transmission</a></li>
|
|
|
198 |
</ul>
|
|
|
199 |
</div>
|
|
|
200 |
</div>
|
|
|
201 |
</div>
|
|
|
202 |
|
|
|
203 |
<div id="observation" data-role="page">
|
|
|
204 |
<div data-role="header" data-position="inline">
|
|
|
205 |
<a href="#menu" data-icon="home" data-iconpos="notext" data-direction="reverse">Accueil</a>
|
|
|
206 |
<h1>Détails de l'observation</h1>
|
|
|
207 |
<a href="#liste" data-icon="notepad" data-iconpos="notext" ></a>
|
|
|
208 |
</div>
|
|
|
209 |
<div data-role="content">
|
|
|
210 |
<label for="id-obs">Identifiant :</label> <span id="id-obs"></span>
|
|
|
211 |
<div id="details-obs"></div>
|
|
|
212 |
|
|
|
213 |
<input type="file" id="pic" name="photos-obs[]" accept="image/*" multiple>
|
|
|
214 |
<button id="valider-photos"
|
|
|
215 |
data-role="button" data-icon="search" data-iconpos="" data-ajax="false">
|
|
|
216 |
Ajouter les images sélectionnées
|
|
|
217 |
</button>
|
|
|
218 |
|
|
|
219 |
<div data-role="popup" id="cache-plein" class="ui-content" data-position-to="#valider-photos">
|
|
|
220 |
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
|
|
|
221 |
<p>
|
|
|
222 |
La mémoire de cette application est pleine. <br />
|
|
|
223 |
Veuillez supprimer des images ou transmettre vos observations.
|
|
|
224 |
</p>
|
|
|
225 |
</div>
|
|
|
226 |
|
|
|
227 |
<div data-role="popup" id="photo-zoom" class="ui-content">
|
|
|
228 |
<span id="photo-zoom-infos"></span>
|
|
|
229 |
<button data-role="button" data-theme="a" onclick="$('#photo-zoom').popup('close');">
|
|
|
230 |
Fermer cet aperçu
|
|
|
231 |
</button>
|
|
|
232 |
</div>
|
|
|
233 |
|
|
|
234 |
<div id="photo-suppression-infos"></div>
|
|
|
235 |
<ul id="photos-obs" data-role="listview" data-inset="true"></ul>
|
|
|
236 |
</div>
|
|
|
237 |
<div data-role="footer" data-position="fixed">
|
|
|
238 |
<div data-role="navbar">
|
|
|
239 |
<ul>
|
|
|
240 |
<li><a href="#saisie" class="saisie" data-role="button" data-icon="pencil" data-iconpos="notext">Saisie</a></li>
|
|
|
241 |
<li><a href="#liste" data-role="button" data-icon="notepad" data-iconpos="notext">Liste de mes obs.</a></li>
|
|
|
242 |
</ul>
|
|
|
243 |
</div>
|
|
|
244 |
</div>
|
|
|
245 |
</div>
|
|
|
246 |
|
|
|
247 |
<div id="transmission" data-role="page">
|
|
|
248 |
<div data-role="header">
|
|
|
249 |
<a href="#menu" data-icon="home" data-iconpos="notext" data-direction="reverse">Accueil</a>
|
|
|
250 |
<h1>Transmission</h1>
|
|
|
251 |
<a href="#infos" data-icon="info" data-iconpos="notext" class="ui-btn-right">Infos</a>
|
|
|
252 |
</div>
|
|
|
253 |
<div data-role="content" data-theme="d">
|
|
|
254 |
<p>
|
|
|
255 |
<span id="identification-texte">
|
|
|
256 |
Ajouter au compte
|
|
|
257 |
</span>
|
|
|
258 |
<strong><span id="utilisateur-compte"></span></strong>
|
|
|
259 |
</p>
|
|
|
260 |
<a href="#identification-popup" id="identification-btn"
|
|
|
261 |
data-role="button" data-icon="grid" data-iconpos="right"
|
|
|
262 |
data-rel="dialog" data-transition="pop" data-theme="b">
|
|
|
263 |
Modifier le compte
|
|
|
264 |
</a>
|
|
|
265 |
<div id="identification-infos"></div>
|
|
|
266 |
<hr />
|
|
|
267 |
<button data-role="button" data-icon="cloud-black" id="transmettre-obs" >
|
|
|
268 |
Transmettre
|
|
|
269 |
</button>
|
|
|
270 |
</div>
|
|
|
271 |
<div data-role="footer" data-position="fixed">
|
|
|
272 |
<div data-role="navbar">
|
|
|
273 |
<ul>
|
|
|
274 |
<li><a href="#saisie" class="saisie" data-role="button" data-icon="pencil" data-iconpos="notext">Saisie</a></li>
|
|
|
275 |
<li><a href="#liste" data-role="button" data-icon="notepad" data-iconpos="notext">Liste de mes obs.</a></li>
|
|
|
276 |
</ul>
|
|
|
277 |
</div>
|
|
|
278 |
</div>
|
|
|
279 |
</div>
|
|
|
280 |
|
|
|
281 |
<div id="identification-popup" data-role="page" data-history="false" data-close-btn="right">
|
|
|
282 |
<div data-role="header">
|
|
|
283 |
<h1>Compte Tela Botanica</h1>
|
|
|
284 |
</div>
|
|
|
285 |
<form id="form-transmission" method="post" action="#">
|
|
|
286 |
<div data-role="content">
|
|
|
287 |
<div data-role="fieldcontain">
|
|
|
288 |
<label for="courriel">Courriel * :</label>
|
|
|
289 |
<input id="courriel" type="email" name="courriel"/>
|
|
|
290 |
<input id="id-utilisateur" name="id-utilisateur" type="hidden"/>
|
|
|
291 |
|
|
|
292 |
<button id="valider-courriel" data-role="button"
|
|
|
293 |
data-icon="forward" data-iconpos="">
|
|
|
294 |
Vérifier ce compte Tela
|
|
|
295 |
</button>
|
|
|
296 |
</div>
|
|
|
297 |
<div id="zone-courriel-confirmation" data-role="fieldcontain" class="hidden">
|
|
|
298 |
<label for="courriel-confirmation">
|
|
|
299 |
<strong class="obligatoire">*</strong> Courriel (confirmation) :
|
|
|
300 |
</label>
|
|
|
301 |
<input id="courriel-confirmation" name="courriel-confirmation" type="text"/>
|
|
|
302 |
</div>
|
|
|
303 |
<div id="zone-prenom-nom" data-role="fieldcontain" class="hidden">
|
|
|
304 |
<div>
|
|
|
305 |
<label for="nom">Nom :</label>
|
|
|
306 |
<input id="nom-utilisateur" name="nom" type="text"/>
|
|
|
307 |
</div>
|
|
|
308 |
|
|
|
309 |
<div>
|
|
|
310 |
<label for="prenom">Prénom :</label>
|
|
|
311 |
<input id="prenom-utilisateur" name="prenom" type="text"/>
|
|
|
312 |
</div>
|
|
|
313 |
</div>
|
|
|
314 |
<input type="checkbox" name="courriel-memoire" id="courriel-memoire" checked="checked">
|
|
|
315 |
<label for="courriel-memoire">Se souvenir de moi</label>
|
|
|
316 |
|
|
|
317 |
<button id="valider-identification" data-role="button"
|
|
|
318 |
data-icon="check" data-iconpos="right" data-theme="b">
|
|
|
319 |
Valider le formulaire
|
|
|
320 |
</button>
|
|
|
321 |
</div>
|
|
|
322 |
</form>
|
|
|
323 |
<div data-role="footer"></div>
|
|
|
324 |
</div><!-- /page popup -->
|
|
|
325 |
|
|
|
326 |
<div id="infos" data-role="page" data-add-back-btn="true" data-back-btn-text="Retour">
|
|
|
327 |
<div data-role="header">
|
|
|
328 |
<h1>Infos</h1>
|
|
|
329 |
</div>
|
|
|
330 |
<div data-role="content">
|
|
|
331 |
<p>
|
|
|
332 |
Développement :
|
|
|
333 |
<ul>
|
|
|
334 |
<li>Jean-Pascal MILCENT</li>
|
|
|
335 |
<li>Isabelle NEMBROT</li>
|
|
|
336 |
</ul>
|
|
|
337 |
sur une idée originale de Aurélien PERONNET.
|
|
|
338 |
</p>
|
|
|
339 |
</div>
|
|
|
340 |
<div data-role="footer" data-position="fixed">
|
|
|
341 |
<p class="center">
|
|
|
342 |
Icônes par <a href="http://glyphish.com">Joseph Wain - Glyphish</a>. <br />
|
|
|
343 |
© Copyright <span id="annee"></span> - <a href="http://www.tela-botanica.org/site:accueil">Tela Botanica</a>
|
|
|
344 |
</p>
|
|
|
345 |
</div>
|
|
|
346 |
</div>
|
|
|
347 |
</body>
|
|
|
348 |
</html>
|