-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgestione.php
173 lines (133 loc) · 5.48 KB
/
gestione.php
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
<?
session_start();
if($_SESSION["login"] != "ok")
{
header("Location: join.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hmap - Insert data</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="mattia" >
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
<script src="js/jquery.js"></script>
<script src="js/code.js"></script>
<script> click_attivi = true;</script>
</head>
<body>
<div class="container">
<div class="row" id="menu">
<div class="span3">
<center>
<img src="img/eli.png">
</center>
</div>
<div class="span9">
<ul>
<li><a href="index.php"> <img src="img/1354366054_pushpin-1.png"> home</a></li>
<li><a href="join.php"> <img src="img/1354396892_comment.png"> join with us</a></li>
<? if($_SESSION['login']=="ok")echo '<li><a href="logout.php" id="searchMenu"><img src="img/out.png"> Logout</a></li>' ?> </ul>
</div>
</div>
<div class="row" style="margin-top:40px;">
<div class="span12">
<? if(isset($_GET["s"]) && $_GET["s"] == "ok"): ?>
<div class="alert alert-success">
Ho fatto ho fatto =)
</div>
<? endif ?>
<? if(isset($_GET["s"]) && $_GET["s"] == "err"): ?>
<div class="alert alert-error">
Compila tutto prima di submittare roba
</div>
<? endif ?>
</div>
</div>
<div class="row" id="main">
<div class="span5" id="search">
<span class="title">Hi <? echo $_SESSION["nome"];?> </span>
<form id="insert" action="check_insert.php" method="POST" style="margin-top: 30px;">
<label>Name</label>
<input type="text" id="name" name="name"/>
<label>City</label>
<input type="text" id="city" name="city"/>
<label>Nation</label>
<input type="text" id="nation" name="nation"/>
<label>Latitude <span style="padding-left: 45px;"></span> Longitude
<small>(decimal degree representation)</small></label>
<input type="text" id="lat" name="lat" style="width:80px;" />
<input type="text" id="long" name="long" style="width:80px;"/>
<label>Hospital type</label>
<select name="hospital_type" required>
<option value ="1" selected>Basic Hospital</option>
<option value ="2">Advanced Hospital</option>
<option value ="3">Health Post</option>
<option value ="4">Health Hut</option>
</select>
<br />
<br />
<label>Ambulance
<input type="checkbox" value="0" id="ambulance" name="ambulance"/>
</label>
<br />
<label>Operating Block
<input type="checkbox" id="operatingblock" name="operatingblock"/>
</label>
<br />
<label>CD4 testing
<input type="checkbox" id="cd4" name="cd4"/>
</label>
<br />
<label>Size of catchment area</label>
<input type="number" id="sizeofcatarea" name="sizeofcatarea"/>
<label>Type</label>
<select name="type" required>
<option value ="public" selected>Public</option>
<option value ="private">Private</option>
</select>
<br />
<label>Nurse
<input type="checkbox" id="nurse" name="nurse"/>
</label>
<br />
<label>Doctor
<input type="checkbox" id="doctor" name="doctor"/>
</label>
<br />
<label>Midwife
<input type="checkbox" id="midwife" name="midwife"/>
</label>
<br/><br/>
<input class="btn btn-primary" value="Add hospital" type="submit">
</form>
</div>
<div class="span6" id="maps">
<div id="demoMap"></div>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
</div>
</div>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/bootstrap.js"></script>
<script src="js/jquery-cookie.js"></script>
</body>
</html>