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