Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 832 Rev 1348
Line 30... Line 30...
30
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
30
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
31
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
31
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
32
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
32
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
33
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/proj4js/1.0.1/proj4js-compressed.js"></script>
33
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/proj4js/1.0.1/proj4js-compressed.js"></script>
34
		<script src="<?=$url_base?>saisie?projet=biodiversite34&service=taxons" type="text/javascript"></script>
34
		<script src="<?=$url_base?>saisie?projet=biodiversite34&service=taxons" type="text/javascript"></script>
-
 
35
		
-
 
36
		<!-- Javascript : appli saisie -->
-
 
37
		<script type="text/javascript">
-
 
38
		//<![CDATA[
-
 
39
			// La présence du parametre 'debug' dans l'URL enclenche le dégogage
-
 
40
			var DEBUG = <?=isset($_GET['debug']) ? 'true' : 'false'?>; 
-
 
41
			// URL du web service réalisant l'insertion des données dans la base du CEL.
-
 
42
			var SERVICE_SAISIE_URL = "<?=$url_ws_saisie?>";
-
 
43
			// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
-
 
44
			var SERVICE_NOM_COMMUNE_URL = "http://www.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
-
 
45
		//]]>
-
 
46
		</script>
35
		<script type="text/javascript" src="<?=$url_base?>modules/saisie/squelettes/biodiversite34/js/biodiversite34.js"></script>
47
		<script type="text/javascript" src="<?=$url_base?>modules/saisie/squelettes/biodiversite34/js/biodiversite34.js"></script>
Line 36... Line 48...
36
		
48
		
37
		<!-- CSS -->
49
		<!-- CSS -->
38
		<link href="<?=$url_base?>modules/saisie/squelettes/biodiversite34/css/biodiversite34.css" rel="stylesheet" type="text/css" media="screen" />
50
		<link href="<?=$url_base?>modules/saisie/squelettes/biodiversite34/css/biodiversite34.css" rel="stylesheet" type="text/css" media="screen" />
39
		<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.13/css/ui-darkness/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" />
51
		<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.13/css/ui-darkness/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" />
40
		<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
52
		<link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
Line 41... Line 53...
41
	</head>
53
	</head>
-
 
54
 
42
 
55
	<body>
43
	<body>
56
		<div id="zone-appli">
44
		<h1>Biodiversité 34</h1>
57
			<h1>Biodiversité 34</h1>
45
		
58
			
46
		<h2>Saisie des observations</h2>
59
			<h2>Saisie des observations</h2>
47
		<form id="saisie-obs" action="#">
60
			<form id="saisie-obs" action="#">
48
			<fieldset id="partie-identification">
61
				<fieldset id="partie-identification">
49
				<legend>1. Identification</legend>
62
					<legend>1. Identification</legend>
50
				<ul>
63
					<ul>
51
					<li>
64
						<li>
52
						<label for="prenom"><span class="obligatoire" title="Champ obligatoire">*</span> Prénom</label>
65
							<label for="prenom"><span class="obligatoire" title="Champ obligatoire">*</span> Prénom</label>
53
						<input id="prenom" name="prenom" type="text" value=""/>
66
							<input id="prenom" name="prenom" type="text" value=""/>
54
					</li>
67
						</li>
55
					<li>
68
						<li>
56
						<label for="nom"><span class="obligatoire" title="Champ obligatoire">*</span> NOM</label>
69
							<label for="nom"><span class="obligatoire" title="Champ obligatoire">*</span> NOM</label>
57
						<input id="nom" name="nom" type="text" value=""/>
70
							<input id="nom" name="nom" type="text" value=""/>
58
					</li>
71
						</li>
59
					<li>
72
						<li>
60
						<label for="courriel"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel</label>
73
							<label for="courriel"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel</label>
61
						<input id="courriel" name="courriel" type="text" value=""/>
74
							<input id="courriel" name="courriel" type="text" value=""/>
62
					</li>
75
						</li>
63
					<li>
76
						<li>
64
						<label for="courriel_confirmation"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel (confirmation)</label>
77
							<label for="courriel_confirmation"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel (confirmation)</label>
65
						<input id="courriel_confirmation" name="courriel_confirmation" type="text" value=""/>
78
							<input id="courriel_confirmation" name="courriel_confirmation" type="text" value=""/>
66
					</li>
79
						</li>
67
				</ul>
80
					</ul>
68
			</fieldset>
81
				</fieldset>
69
			<fieldset id="partie-station">
82
				<fieldset id="partie-station">
70
				<legend>2. Station / Localisation</legend>
83
					<legend>2. Station / Localisation</legend>
71
				<input id="commune_nom" name="commune_nom" type="hidden" value="" />
84
					<input id="commune_nom" name="commune_nom" type="hidden" value="" />
72
				<input id="commune_code_insee" name="commune_code_insee" type="hidden" value="" />
85
					<input id="commune_code_insee" name="commune_code_insee" type="hidden" value="" />
73
				<ul>
86
					<ul>
74
					<li>
87
						<li>
75
						<label for="milieu"><span class="obligatoire" title="Champ obligatoire">*</span> Milieu</label>
88
							<label for="milieu"><span class="obligatoire" title="Champ obligatoire">*</span> Milieu</label>
76
						<select id="milieu" name="milieu">
89
							<select id="milieu" name="milieu">
77
							<option value="">Sélectionner un milieu</option>
90
								<option value="">Sélectionner un milieu</option>
-
 
91
								<?php foreach ($milieux as $milieu => $description) : ?>
-
 
92
								<option value="<?=$milieu?>" <?=($description != '') ? 'title="'.$description.'"': '' ?>><?=$milieu?></option>
-
 
93
								<?php endforeach; ?>
-
 
94
							</select>
-
 
95
						</li>
-
 
96
						<li><a id="localiser-gg-map" href="#gg-map-localisation">Localiser votre station sur une carte Google Map</a></li>
-
 
97
						<li id="partie-lat-lon">
-
 
98
							<label for="latitude"><span class="obligatoire" title="Champ obligatoire">*</span> Latitude</label>
-
 
99
							<input id="latitude" name="latitude" type="text" value=""/>
-
 
100
							<label for="longitude"><span class="obligatoire" title="Champ obligatoire">*</span> Longitude</label>
-
 
101
							<input id="longitude" name="longitude" type="text" value=""/>
-
 
102
							<span id="lat-lon-info" class="info">(WGS84)</span>
-
 
103
						</li>
-
 
104
					</ul>
-
 
105
				</fieldset>
-
 
106
				<fieldset id="partie-observation">
-
 
107
					<legend>3. Observation</legend>
-
 
108
					<ul>
-
 
109
						<li>
-
 
110
							<label for="date"><span class="obligatoire" title="Champ obligatoire">*</span> Date</label>
-
 
111
							<input id="date" name="date" type="text" value="" />
-
 
112
						</li>
-
 
113
						<li>
-
 
114
							<label for="taxon"><span class="obligatoire" title="Champ obligatoire">*</span> Espèce</label>
-
 
115
							<select id="taxon" name="taxon">
-
 
116
								<option value="">Sélectionner un taxon</option>
78
							<?php foreach ($milieux as $milieu => $description) : ?>
117
							<?php foreach ($taxons as $taxon) : ?>
79
							<option value="<?=$milieu?>" <?=($description != '') ? 'title="'.$description.'"': '' ?>><?=$milieu?></option>
118
								<option value="<?=$taxon['num_nom_sel']?>" title="<?=$taxon['nom_sel'].($taxon['nom_fr_autre'] != '' ? ' - '.$taxon['nom_fr_autre'] : '' )?>"><?=$taxon['nom_fr']?></option>
80
							<?php endforeach; ?>
-
 
81
						</select>
-
 
82
					</li>
-
 
83
					<li><a id="localiser-gg-map" href="#gg-map-localisation">Localiser votre station sur une carte Google Map</a></li>
-
 
84
					<li id="partie-lat-lon">
-
 
85
						<label for="latitude"><span class="obligatoire" title="Champ obligatoire">*</span> Latitude</label>
-
 
86
						<input id="latitude" name="latitude" type="text" value=""/>
-
 
87
						<label for="longitude"><span class="obligatoire" title="Champ obligatoire">*</span> Longitude</label>
-
 
88
						<input id="longitude" name="longitude" type="text" value=""/>
-
 
89
						<span id="lat-lon-info" class="info">(WGS84)</span>
-
 
90
					</li>
-
 
91
				</ul>
-
 
92
			</fieldset>
-
 
93
			<fieldset id="partie-observation">
-
 
94
				<legend>3. Observation</legend>
-
 
95
				<ul>
-
 
96
					<li>
-
 
97
						<label for="date"><span class="obligatoire" title="Champ obligatoire">*</span> Date</label>
-
 
98
						<input id="date" name="date" type="text" value="" />
-
 
99
					</li>
-
 
100
					<li>
-
 
101
						<label for="taxon"><span class="obligatoire" title="Champ obligatoire">*</span> Espèce</label>
-
 
102
						<select id="taxon" name="taxon">
-
 
103
							<option value="">Sélectionner un taxon</option>
-
 
104
						<?php foreach ($taxons as $taxon) : ?>
-
 
105
							<option value="<?=$taxon['num_nom_sel']?>" title="<?=$taxon['nom_sel'].($taxon['nom_fr_autre'] != '' ? ' - '.$taxon['nom_fr_autre'] : '' )?>"><?=$taxon['nom_fr']?></option>
-
 
106
						<?php endforeach; ?>
119
							<?php endforeach; ?>
107
						</select>
120
							</select>
108
					</li>
121
						</li>
109
					<li>
122
						<li>
110
						<label for="notes">Notes</label>
123
							<label for="notes">Notes</label>
111
						<textarea id="notes" name="notes"></textarea>
124
							<textarea id="notes" name="notes"></textarea>
112
					</li>
125
						</li>
113
				</ul>
126
					</ul>
-
 
127
					<button id="ajouter-obs" type="button">Ajouter</button>
-
 
128
				</fieldset>
Line 114... Line -...
114
				<button id="ajouter-obs" type="button">Ajouter</button>
-
 
115
			</fieldset>
-
 
116
			
129
				
117
		</form>
130
			</form>
118
		
131
			
119
		<h2>Liste des observations à transmettre</h2>
132
			<h2>Liste des observations à transmettre</h2>
120
		<form action="#">
133
			<form action="#">
121
			<table id="liste-obs">
134
				<table id="liste-obs">
122
				<thead><tr><th>Numéro</th><th>Date</th><th>Nom</th><th>Milieu</th><th>Latitude</th><th>Longitude</th><th>Notes</th><th>Suppression</th></tr></thead>
135
					<thead><tr><th>Numéro</th><th>Date</th><th>Nom</th><th>Milieu</th><th>Latitude</th><th>Longitude</th><th>Notes</th><th>Suppression</th></tr></thead>
123
				<tbody></tbody>
136
					<tbody></tbody>
-
 
137
				</table>
Line 124... Line 138...
124
			</table>
138
				<button id="tramsmettre-obs" type="button">Transmettre</button>
125
			<button id="tramsmettre-obs" type="button">Transmettre</button>
139
			</form>
126
		</form>
140
		</div>
127
		
141
		
128
		<div id="gg-map" style="display: none;">
142
		<div id="gg-map" style="display: none;">
129
			<div id="gg-map-localisation">
143
			<div id="gg-map-localisation">
130
				<div id="gg-map-carte">Carte en cours de chargement...</div>
144
				<div id="gg-map-carte">Carte en cours de chargement...</div>
131
				<ul id="gg-map-info">
145
					<ul id="gg-map-info">
132
					<li>
146
						<li>
133
						<span class="champ">Marqueur de station</span> 
147
							<span class="champ">Marqueur de station</span> 
134
						<span id="marqueur-statut">Déplacer le marqueur sur le centre de votre station.</span>
148
							<span id="marqueur-statut">Déplacer le marqueur sur le centre de votre station.</span>
135
					</li>
149
						</li>
136
					<li>
150
						<li>
137
						<span class="champ">Coordonnées du marqueur</span>
151
							<span class="champ">Coordonnées du marqueur</span>
138
			    		<span id="marqueur-coordonnees"><span title="Système géodésique mondial, révision de 1984 - Coordonnées non projetées">WGS84 : <span id="marqueur-wgs84">&nbsp;</span></span> / <span title="Système géodésique RGF93 - Coordonnées en projection Lambert 93">Lambert 93 : <span id="marqueur-lambert93">&nbsp;</span></span></span>
152
				    		<span id="marqueur-coordonnees"><span title="Système géodésique mondial, révision de 1984 - Coordonnées non projetées">WGS84 : <span id="marqueur-wgs84">&nbsp;</span></span> / <span title="Système géodésique RGF93 - Coordonnées en projection Lambert 93">Lambert 93 : <span id="marqueur-lambert93">&nbsp;</span></span></span>
139
			    	</li>
153
				    	</li>
140
			    	<li>
154
				    	<li>
141
			    		<span class="champ">Commune</span>
155
				    		<span class="champ">Commune</span>
142
			    		<span id="marqueur-commune">
156
				    		<span id="marqueur-commune">
143
			    			<span id="commune-nom" class="commune-info">&nbsp;</span>
157
				    			<span id="commune-nom" class="commune-info">&nbsp;</span>
144
			    			(<span id="commune-code-insee" class="commune-info" title="Code INSEE de la commune">&nbsp;</span>)
158
				    			(<span id="commune-code-insee" class="commune-info" title="Code INSEE de la commune">&nbsp;</span>)
145
			    		</span>
159
				    		</span>
146
			    		<span class="champ">Adresse</span>
160
				    		<span class="champ">Adresse</span>
147
		    			<span id="marqueur-adresse">&nbsp;</span>
161
			    			<span id="marqueur-adresse">&nbsp;</span>
148
		    		</li>
162
			    		</li>
149
		    	</ul>
163
			    	</ul>
150
			    <form id="gg-map-form">
164
				    <form id="gg-map-form">
151
			    	<button id="valider-coordonnees" type="button">Valider</button>
165
				    	<button id="valider-coordonnees" type="button">Valider</button>
152
			    	<button id="annuler-coordonnees" type="button">Annuler</button>
-
 
153
		    	</form>
166
				    	<button id="annuler-coordonnees" type="button">Annuler</button>
Line 154... Line 167...
154
		    </div>
167
			    	</form>
155
		</div>
168
		    	</div>