-
Notifications
You must be signed in to change notification settings - Fork 0
/
bk_index.html
102 lines (90 loc) · 3.32 KB
/
bk_index.html
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
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="/static/darkTheme.css" />
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
</style>
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?sensor=true">
</script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(13.83808,100.546875);
var myOptions = {
zoom: 6,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
}
</script>
</head>
<body onload="initialize()">
<div id="header">
</div>
<div id="leftBar">
leftbar
</div>
<div>
<h2>{{title}}</h2>
<h5>{{e_msg}}</h5>
<form action="/{{title}}/" method="post">
<div class="input">
<table>
<tr><td>name</td>
<td><input type='text' name='name' value='name'></input></td>
</tr>
<tr><td>water level</td>
<td> <input type='text' name='water' value='1.0' size='2'></input> </td>
</tr>
<tr><td>urgent</td>
<td> <input type="radio" name="urgent" value="yes" /> Yes<br />
<input type="radio" name="urgent" value="no" checked="yes"/> No
</td>
</tr>
<tr><td>urgent report</td>
<td>
<textarea name ='text' rows="2" cols="20"></textarea>
</td>
</tr> <!-- <tr><td>upload image</td>-->
<!--<input id='upload' type="file" name="img">-->
<!--<td></td>-->
<!-- /tr> <-->
<tr><td>
<input type="submit" value="Submit">
<td>
</tr>
</table>
</div>
<div class="Report">
<table border=1px>
<tr><td>id </td>
<td>name</td>
<td>water level</td>
<td>urgent</td>
<td>urgent report</td>
<td>time</td>
</tr>
{% for rep in reports%}
<tr>
<td>{{rep.key.id}}
<td>{{rep.name}}</td>
<td>{{rep.water}}</td>
<td>{{rep.urgent}}</td>
<td>{{rep.text}}</td>
<td>{{rep.date}}</td>
</tr>
{% endfor %}
</table>
</div>
</form>
</div>
<div id="map_canvas" style=" width:100%; height:100%"></div>
<div class="footer">
</div>
</body>
</html>