-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
447 lines (401 loc) · 19.5 KB
/
Copy pathindex.html
File metadata and controls
447 lines (401 loc) · 19.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>AgMIP ACE-UI Prototype v1.0</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<!-- link rel="stylesheet" href="./css/jquery.mobile-1.1.0.min.css" />
<script src="./js/jquery-1.7.1.min.js"></script>
<script src="./js/jquery.mobile-1.1.0.min.js"></script -->
<link rel="stylesheet" href="./css/aceui.style.a.css" type="text/css">
<link rel="stylesheet" href="./css/aceui.style.b.css" type="text/css">
<!-- openlayer library -->
<script src="./js/OpenLayers.js?mobile"></script>
<script src="./js/aceui-pver2.0-raw-data.js"></script>
<script src="./js/aceui-pver2.0-base.js"></script>
<script src="./js/aceui-pver2.0-code.js"></script>
<script src="./js/aceui-pver2.0-search.js"></script>
<script src="./js/aceui-pver2.0-datatool.js"></script>
<script src="./js/aceui-pver2.0-map.js"></script>
<script src="./js/aceui-pver2.0-data-factory.js"></script>
<script src="./js/aceui-pver2.0-data-service.js"></script>
<!-- jeoquery library -->
<script type="text/javascript" src="./js/jeoquery.js"></script>
</head>
<body>
<!-- ---------------------------------------------------------------------------------- -->
<h1 id="title">AgMIP ACE-UI Prototype v1.0</h1>
<div id="tags">
AgMIP ACE-UI Prototype, jquery
</div>
<p id="shortdesc">
AgMIP ACE-UI Prototype, Using jQuery Mobile to display an OpenLayers map.
</p>
<!-- ---------------------------------------------------------------------------------- -->
<!-- main Map Page -->
<div data-role="page" id="mappage">
<!-- menu buttons in main Map page -->
<div data-role="header" class="ui-bar ui-bar-c">
<h3 style="display:inline-block;margin:0 0 0 0;">AgMIP ACE-UI Prototype (ver 0.5)
|<a href="#searchpage" data-icon="search" data-role="button" >Search</a>|
<a href="#datatoolsexportpage" data-icon="datatool" data-role="button">Export</a>|
<a href="#datatoolsimportpage" data-icon="gear" data-role="button">Imports</a>|
<a href="#userguidepage" data-icon="userguide" data-role="button">User Guide</a>|
<a href="#layerspage" data-icon="layers" data-role="button">Map Layers</a>|
</h3>
</div>
<!-- Map -->
<div data-role="content">
<div id="map"></div>
</div>
<!-- navigation buttons in map -->
<div id="navigation" data-role="controlgroup" data-type="vertical">
<a href="#" data-role="button" data-icon="plus" id="plus" data-iconpos="notext"></a>
<a href="#" data-role="button" data-icon="home" id="extent" data-iconpos="notext"></a>
<a href="#" data-role="button" data-icon="minus" id="minus" data-iconpos="notext"></a>
</div>
<!-- footer -->
<div data-role="footer" class="ui-bar ui-bar-a">
<h3 style="display:inline-block;margin:0 0 0 0;">
AgMIP ACE-UI Prototype (ver 0.5) : last updated at Aug, 2012
</h3>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- menu -> Search Page -->
<div data-role="page" id="searchpage" data-add-back-btn="true">
<div data-role="header" class="ui-bar ui-bar-c">
<h1 style="display:inline-block;margin:0 0 10px 0;">Search Simulation Data</h1>
<a href="#mappage" data-icon="home" >View Map</a>
<a href="#datatoolsexportpage" data-icon="gear" >Data Tools</a>
</div><br>
<!-- button group : four column layout -->
<div class="ui-grid-c">
<div class="ui-block-a"> </div>
<div class="ui-block-b">
<button type="submit" data-theme="a" data-mini="true" id="searchfeature">
Search
</button>
</div>
<div class="ui-block-c">
<button type="submit" data-theme="b" data-mini="true" id="resetoption">
Reset search options
</button>
</div>
<div class="ui-block-d"> </div>
</div><br>
<!-- search option pane : five column layout -->
<div class="ui-grid-d" style="height:90%">
<div class="ui-block-a" style="width:3%"> </div>
<!-- left side options -->
<div class="ui-block-b" style="width:40%">
<h3> * Select Options below</h3>
<div data-role="collapsible-set" data-content-theme="c" >
<!-- 1. location search -->
<div id="locCat" data-role="collapsible" data-theme="b" data-content-theme="b" data-mini="true" data-collapsed="true">
<h3>
<input type="checkbox" name="locationCB" id="locationCB" onchange='collapseChangedLoc()'
class="custom" data-mini="true" data-theme="b" style="width:150px"/>
<label for="locationCB">Location</label>
</h3>
<p>Select a country below list </p>
<div data-role="fieldcontain" id="countryinputele">
<label for="country" style="width:350px">-Country:
<select id="country" data-mini="true" onchange="updateLocCat()"><option value=""></option></select>
</label>
</div>
<p>or Enter an approximate longitude / latitude of a searching place</p>
<div data-role="fieldcontain" id="lonlatinputele">
<label for="lonquery">-Longitude:
<input type="textfield" name="lonquery" id="lonquery" onkeypress="return numeric_validation(event)"
value="" placeholder="longitude" autocomplete="off" data-mini="false"/>
</label> ( -180 ~ 180 )<br>
<label for="latquery">-Latitude:
<input type="textfield" name="latquery" id="latquery" onkeypress="return numeric_validation(event)"
value="" placeholder="latitude" autocomplete="off"/>
</label> ( -90 ~ 90 )
</div>
</div>
<!-- 2.crop search -->
<div id="cropCat" data-role="collapsible" data-theme="a" data-content-theme="b" data-collapsed="true">
<h3>
<input type="checkbox" name="cropCB" id="cropCB" onchange='collapseChangedCrop()'
class="custom" data-mini="true" data-theme="a" style="width:150px"/>
<label for="cropCB">Crop Type</label>
</h3>
<div data-role="fieldcontain" id="cropinputele">
<label for="crop" style="width:350px">- Crop:
<select id="crop" data-mini="true" onchange="updateCropCat()"><option value=""></option></select>
</label>
</div>
</div>
<!-- 3. date search -->
<div id="dateCat" data-role="collapsible" data-theme="e" data-content-theme="b" data-collapsed="true">
<h3>
<input type="checkbox" name="phdateCB" id="phdateCB" onchange='collapseChangedDate()'
class="custom" data-mini="true" data-theme="e" style="width:150px"/>
<label for="phdateCB">Planting / Harvesting Year</label>
</h3>
<p>Select Planting and (or) Harvesting Year</p>
<div data-role="fieldcontain" id="phyearinputele">
<label for="plantyear" style="width:250px">Planting Year:
<select id="plantyear" data-mini="true"><option value=""></option></select>
</label>
<p>and (or)</p>
<label for="harvestyear" style="width:250px">Harvesting Year:
<select id="harvestyear" data-mini="true"><option value=""></option></select>
</label>
</div>
</div>
<!-- 4. more search -->
<div data-role="collapsible" data-theme="c" data-content-theme="b" data-collapsed="true">
<h3>more</h3>
<p>...</p>
</div>
</div>
</div>
<!-- middle blank -->
<div class="ui-block-c" style="width:4%"> </div>
<!-- right side result -->
<div class="ui-block-d" style="width:50%">
<h3> * Search Results</h3>
|
<a href='#' onclick="select_all_search_result()">select all</a> |
<a href='#' onclick="reset_search_result_selection()">clear selection</a> |
<a href='#' id="addSelectionsToQueue">add to data queue</a> |<br>
|
<a href='#' onclick="remove_selected_search_result()">remove selected items</a> |
<a href='#' onclick="remove_all_search_result()">remove all items</a> |
<div class="ui-grid-a" >
<div class="ui-block-a ui-bar-e" style="margin: 15px 0 0 0;width:9%;">
<ul data-role="listview" data-inset="true" data-mini="true" id="search_results_chkbox"></ul>
</div>
<div class="ui-block-b" style="width:91%">
<ul data-role="listview" data-inset="true" id="search_results"></ul>
</div>
</div>
</div>
<!-- right blank -->
<div class="ui-block-e" style="width:3%"> </div>
</div><br><br><br><br><br><br><br><br><br>
<!-- footer -->
<div data-role="footer" class="ui-bar ui-bar-b">
<h3 style="display:inline-block;margin:0 0 0 0;">
AgMIP ACE-UI Prototype (ver 0.5) : last updated at Aug, 2012
</h3>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- menu -> Data Tools Page -->
<!-- data tools page for export -->
<div data-role="page" id="datatoolsexportpage" data-add-back-btn="true">
<div data-role="header" class="ui-bar ui-bar-c">
<h1 style="display:inline-block;margin:0 0 10px 0;">Data Export Tool</h1>
<a href="#mappage" data-icon="home" >View Map</a>
<a href="#searchpage" data-icon="search" >Search Data</a>
</div>
<!-- title pane : five column layout -->
<div class="ui-grid-d" style="height:70%">
<!-- left blank -->
<div class="ui-block-a" style="width:3%"> </div>
<!-- left list -->
<div class="ui-block-b" style="width:50%">
<h3 align=middle> * Items in Data Cart</h3>
|
<a href='#' onclick="select_all_items_in_queue()">select all</a> |
<a href='#' onclick="reset_queue_item_selection()">clear selection</a> |
<a href='#' id='refreshItemsInQueue'>refresh list</a> | <br>
|
<a href='#' onclick="remove_selected_items()">remove selected item</a> |
<a href='#' onclick="remove_all_items()">remove all items</a> |<br><br>
<div class="ui-grid-a" >
<div class="ui-block-a ui-bar-e" style="margin: 0px 0 0 0;width:9%;">
<ul style="align:middle" data-role="listview" data-inset="true" data-mini="true" id="datacart_items_chkbox"></ul>
</div>
<div class="ui-block-b" style="width:91%" >
<ul data-role="listview" data-inset="true" id="datacart_items"></ul>
</div>
</div>
</div>
<!-- middle blank -->
<div class="ui-block-c" style="width:4%"> </div>
<!-- right content view -->
<div class="ui-block-d" style="width:40%">
<h3 align=middle> * Export Data</h3>
<!-- export format selector-->
<div id="exportAppFormat" data-role="collapsible" data-theme="c" data-content-theme="b" data-mini="true" data-collapsed="false">
<h3>Choose download data format below:</h3>
<div data-role="fieldcontain" style="padding: 0 0 0 0;width:100%;">
<fieldset data-role="controlgroup">
<div class="ui-grid-b">
<div class="ui-block-a" style="width:33%;">
<input type="checkbox" name="export-apsim" id="export-apsim" data-mini="true" />
<label for="export-apsim">APSIM</label>
</div>
<div class="ui-block-b" style="width:33%;">
<input type="checkbox" name="export-aquacrop" id="export-aquacrop" data-mini="true" />
<label for="export-aquacrop">AquaCrop</label>
</div>
<div class="ui-block-c" style="width:33%;">
<input type="checkbox" name="export-dssat" id="export-dssat" data-mini="true" />
<label for="export-dssat">DSSAT</label>
</div>
</div>
<div class="ui-grid-b">
<div class="ui-block-a" style="width:33%;">
<input type="checkbox" name="export-stics" id="export-stics" data-mini="true" />
<label for="export-stics">STICS</label>
</div>
<div class="ui-block-b" style="width:33%;">
<input type="checkbox" name="export-wofost" id="export-wofost" data-mini="true" />
<label for="export-wofost">WOFOST</label>
</div>
<div class="ui-block-c">
</div>
</div>
</fieldset>
</div>
</div>
<!-- four column layout -->
<div class="ui-grid-c">
<div class="ui-block-a" style="width:10%"> </div>
<div class="ui-block-b" style="width:40%"><button type="submit" data-theme="a" data-mini="true" id="downloaddata">Download</button></div>
<div class="ui-block-c" style="width:40%"><button type="submit" data-theme="a" data-mini="true" id="requestdata">Request</button></div>
<div class="ui-block-d" style="width:10%"> </div>
</div>
<br>
<h3 align=middle> * Detail Data Information</h3>
<!-- selected data content view -->
<div class="ui-bar-d" style="padding: 0 0 0 0;height:400px">
<ul data-role="listview" data-inset="true" id="datacart_contentview"></ul>
</div>
</div>
<!-- right blank -->
<div class="ui-block-e" style="width:3%"> </div>
</div><br><br><br>
<!-- footer -->
<div data-role="footer" class="ui-bar ui-bar-b">
<h3 style="display:inline-block;margin:0 0 0 0;">
AgMIP ACE-UI Prototype (ver 0.5) : last updated at Aug, 2012
</h3>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- data tools sub page for import -->
<div data-role="page" id="datatoolsimportpage" data-add-back-btn="true">
<div data-role="header" class="ui-bar ui-bar-c">
<h1 style="display:inline-block;margin:0 0 10px 0;">Data Import Tool</h1>
<a href="#mappage" data-icon="home" >View Map</a>
<a href="#searchpage" data-icon="search" >Search Data</a>
</div>
<!-- title pane: five column layout -->
<div class="ui-grid-d" style="height:70%">
<h2 align=middle> Under construction </h3>
<div class="ui-block-a" style="width:3%"> </div>
<!-- left side otions -->
<div class="ui-block-b" style="width:3%"> </div>
<!-- middle blank -->
<div class="ui-block-c" style="width:4%"> </div>
<!-- right side result -->
<div class="ui-block-d" style="width:50%">
<!-- ul data-role="listview" data-inset="true" id="search_results"></ul -->
</div>
<!-- right blank -->
<div class="ui-block-e" style="width:40%">
</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br>
<!-- footer -->
<div data-role="footer" class="ui-bar ui-bar-b">
<h3 style="display:inline-block;margin:0 0 0 0;">
AgMIP ACE-UI Prototype (ver 0.5) : last updated at Aug, 2012
</h3>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- menu -> User Guide Page -->
<div data-role="page" id="userguidepage" data-add-back-btn="true">
<div data-role="header" class="ui-bar ui-bar-c">
<h1 style="display:inline-block;margin:0 0 10px 0;">User Guide</h1>
</div><br><br>
<div data-role="content" align='center'>
<div data-role="collapsible-set" style="width:70%" data-mini="true" data-theme="c" data-content-theme="d">
<div data-role="collapsible" data-collapsed="true" style="text-align:left">
<h3>1. Top Menus at Main Map Page</h3>
<p><h4>- Search :</h4></p>
<p>Data can be found by using specified filters and their specific values.</p>
<p><h4>- Data Tools :</h4></p>
<p>Data can be imported into database or exported as diverse data forms.</p>
<p><h4>- User Guide :</h4></p>
<p>Useful descriptions and tips are provided.</p>
<p><h4>- Layers :</h4></p>
<p>Layers displayed in the map can be manipulated.</p>
</div>
<div data-role="collapsible" style="text-align:left">
<h3>2. Map Control</h3>
<p><h4>- Zoom In/Out :</h4></p>
<p>1) mouse - use wheel forward/backward where mouse pointer is placed.</p>
<p>2) button - use '+'/'-' button at top-left.</p>
<p><h4>- Move Map Center :</h4></p>
<p>Drag map while pressing left mouse button.</p>
<p><h4>- Select data :</h4></p>
<p>1) clustered data : zoom into next level.</p>
<p>2) single data : show detail data into popup.</p>
</div>
<div data-role="collapsible" style="text-align:left">
<h3>3. Search Data</h3>
<p><h4>- How to search data :</h4></p>
<p>1) Search by checking desired filter items.<br>
2) Searching without any filter shows all data.<br>
3) Filter item can be activated/inactivated.</p>
<p><h4>- Data Filters :</h4></p>
<p>1) Location : select a country or enter longitude/latitude. (lon/lat searching shows results including data in (+/-) 5 ranges)<br>
2) Crop Type : select a crop type.<br>
3) Planting/Harvesting Year : select a year in both or one slot</p>
<p><h4>- How to manipulate search results :</h4></p>
<p>1) Each item can be kept in datacart or zoom-in at map without checking the item box.<br>
2) Selected items can be handled at a same time.<br>
3) Items in result list appear in the map.</p>
</div>
<div data-role="collapsible" style="text-align:left">
<h3>4. Control Layers</h3>
<p><h4>- Turn layers on/off :</h4></p>
<p>1) Base Layers - 'Open Street Map' is default. Additionally, features of Bing map can be showed.</p>
<p>2) Overlay Layers - searched items(black color) and items in data cart(red color) can be manipulated separately.</p>
</div>
</div>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- menu -> Layers Page -->
<div data-role="page" id="layerspage" data-add-back-btn="true">
<div data-role="header" class="ui-bar ui-bar-c">
<h1 style="display:inline-block;margin:0 0 10px 0;">Map Layers</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="d" data-dividertheme="c" id="layerslist"></ul>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
<!-- Popup Page when data point is selected-->
<div id="popup" data-role="dialog">
<div data-position="inline" data-theme="d" data-role="header">
<h1>Details</h1>
</div>
<div data-theme="c" data-role="content">
<ul id="details-list" data-role="listview">
</ul>
</div>
</div>
<!-- ---------------------------------------------------------------------------------- -->
</body>
</html>