-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook.php
235 lines (214 loc) · 5.41 KB
/
book.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
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
<?php
session_start();
?>
<!doctype html>
<html>
<head>
<title>Booking</title>
<style>
#menu1{
width:100%;
z-index:999;
top:0px;
}
.dropbtn button:hover{
cursor: pointer;
}
nav{
font-family: Open Sans;
background-color: #33414f;
height: 65px;
display: flex;
align-items: center;
padding: 0 0 0 25px;
}
.type{
margin-left: 35em;
cursor: pointer;
}
.dropbtn {
background-color: #33414f;
color: white;
padding: 16px;
font-size: 25px;
border: none;
border-bottom: 2px solid #fff;
height: 48px;
margin-bottom:12px;
cursor: pointer;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;cursor: pointer;}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn:hover {opacity:0.6;cursor: pointer;}
a{
text-decoration:none;
color:white;
cursor: pointer;
}
a:hover{
opacity:0.6;}
.headercar{
color: #fff;
text-decoration-line: none;
margin: 0 15px;
margin-top: 0px;
margin-right: 15px;
margin-bottom: 0px;
margin-left: 15px;
font-size: 25px;
border-bottom: 2px solid #fff;
padding-bottom: 4px;
}
.component-progress-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 40px;
padding:0px 40px;
}
.component-progress-bar .progress-bar {
display: flex;
justify-content: space-between;
flex-direction: row;
width: 595px;
}
.component-progress-bar .progress-bar .item {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
width: 110px;
}
.component-progress-bar .progress-bar .item .circle.selected {
border-color: #70ad4d;
background-color: #70ad4d;
}
.component-progress-bar .progress-bar .item .state-name {
width: 150px;
text-align: center;
}
.component-progress-bar .progress-bar .item,.item1 {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
width: 110px;
}
.component-progress-bar .progress-bar .item .circle,.item1 .circle {
width: 25px;
height: 25px;
border-radius: 50%;
border: 1px solid #bdbdbd;
position: relative;
background-color: #fff;
}
.component-progress-bar .progress-bar .item:after {
content: "";
position: absolute;
top: 12px;
left: 67px;
width: 218px;
height: 1px;
background-color: #bdbdbd;
}
p{
font-size:50px;
}
.butt{
padding: 10px 60px;
background-color: #70ad4d;
color: #fff;
border-radius: 3px;
margin-right: 80px;
margin-top: 120px;
position: relative;
float:right;
}
</style>
</head>
<body>
<nav id="menu1">
<img src="img/logo1.jpg" alt="Logo" width="105px" height="30px">
<div class="type">
<a href="" class="headercar">WheelWave</a>
</div>
<div class="type">
<?php
if(isset($_SESSION['loginstatus'])){ ?>
<div class="dropdown">
<button class="dropbtn"> <?php echo($_SESSION['username']); ?></button>
<div class="dropdown-content">
<a href="profile3.php">Profile</a>
<a href="logout.php">Logout</a>
</div>
</div>
<?php }
else {
?>
<a href="logsign.php" class="headercar">Login/SignUp</a>
<?php
}
?>
<!---<a href="logsign.php" class="headercar">Login/SignUp</a>--->
</div>
</nav>
<div class="component-progress-bar">
<div class="progress-bar">
<div class="item">
<div class="circle selected"></div>
<div class="state-name">Starting Point</div>
</div>
<div class="item">
<div class="circle">
</div>
<div class="state-name">
Pickup Time</div>
</div>
<div class="item1">
<div class="circle"></div>
<div class="state-name">Dropoff Time</div>
</div></div>
<a href="index.php">
<img src="img/home.png" alt="Home" class="home" width="50px" height="50px" style="padding:10px 60px;"></a>
</div>
<br><div class="location" style="padding:0px 60px;">
<form action="book1.php" method="POST">
<p> Tell Us Your Starting Point</p>
<input type="text" name="startloc" placeholder=" Tell Us Your Starting Point" style="height:40px;width:520px;font-size:25px" required />
<p> Tell Us Your Ending Point</p>
<input type="text" name="endloc" placeholder=" Tell Us Your Ending Point" required style="height:40px;width:520px;font-size:25px">
<script>
function myFunction() {
document.getElementByName('startloc').validity.valid;
document.getElementByName('endloc').validity.valid;
}
</script>
<button class="butt" name="submit" type="submit" value="submit">NEXT</button>
</form>
</div>
</body>
</html>