-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
117 lines (94 loc) · 3.12 KB
/
test.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
<?php
include 'test2.php';
$rt=new dbhelper();
$node = $rt->get_distinct_stopies();
?>
<html>
<head>
<style>
input[type=text], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius:12px;
box-sizing: border-box;
}
input[type=date], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=password], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input [type=radio]{
}
input[type=submit] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
div {
margin-left: 10cm;
margin-right: 10cm;
margin-top: 2cm;
border-radius: 5px;
background-color: whitesmoke;
padding: 40px;
}
</style>
</head>
<body background="images/map.png">
<div>
<h1><font color="blue">Select Your Choice of Journey</font></h1>
<form action="map.php" method="post">
from<select name="node1" >
<?php
for($i=0;$i<count($node);$i++){ ?>
<option value="<?php echo $node[$i]; ?>"> <?php echo $node[$i]; ?> </option>
< <?php } ?>
</select>
to<select name="node2">
<?php
for($i=0;$i<count($node);$i++){
?>
<option value="<?php echo $node[$i]; ?>"> <?php echo $node[$i]; ?> </option>
<?php
}
?>
</select><br>
time of journay:<br>
<input type="time" name="schedule" required > <br> <br>
save:<br>
<input type ="checkbox" name="distance" value="distance">Minimam Distance<br>
<input type ="checkbox" name="cost" value="cost">Minimam Cost<br>
<input type ="checkbox" name="time" value="time">Shortest time<br>
<input type ="checkbox" name="jam" value="jam">Avoid jam<br>
<input type ="checkbox" name="jam" value="jam">Avoid School breaking time<br>
<br>
<input type="submit" value="submit" name="submit">
<br>
</form>
</div>
</body>
</html>