-
Notifications
You must be signed in to change notification settings - Fork 0
/
All_Services.php
271 lines (263 loc) · 7.11 KB
/
All_Services.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
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
<?php include("connect.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>All Services</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
#background
{
height: 1200px;
width: 100%;
background-color: grey;
}
#menu
{
z-index: 5;
top: 0px;
position: fixed;
background-attachment: fixed;
margin-bottom: 80px;
box-shadow: 10 4px 8px 10 rgba(0,0,0,0.2);
}
.sidenav
{
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top:0;
left: 0;
background-color:#111;
overflow-x:hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a
{
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
}
.sidenav a:hover
{
position: relative;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
@media screen and (max-height: 450px)
{
.sidenav{padding-top: 15px;}
.sidenav a{font-size: 18px;}
}
ul
{
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
background-color:white;
top: -60px;
margin-right: 1px;
}
li{
float:right;
border:1px solid #8B0000;
}
li a{
display:block;
color:black;
text-align:center;
padding:14px 16px;
text-decoration:none;
}
li a:hover
{
background-color:#FFE4C4;
}
#background2
{
height: 1500px;
width: 81.5%;
background-color: #E6E6FA;
position: relative;
bottom: 486px;
margin-left: 130px;
}
#ac
{
height: 40px;
width: 150px;
position: relative;
top: 420px;
}
#line
{
height: 7px;
width: 125px;
background-color: red;
position: relative;
top: 420px;
margin-left: 15px;
}
#line1
{
height: 6px;
width: 97%;
background-color: red;
position: relative;
top: 420px;
margin-left: 15px;
}
#im
{
height: 350px;
width: 90%;
background-color: white;
position: relative;
top: 450px;
margin-left: 50px;
border-radius: 5px;
}
#service
{
height: 50px;
width:150px;
position: relative;
top: 80px;
margin-left: 670px;
}
#line3
{
height: 6px;
width: 125px;
background-color: red;
position: relative;
left: 690px;
top: 70px;
}
#line4
{
height: 6px;
width: 490px;
background-color: red;
position: relative;
margin-left: 690px;
top: 70px;
}
#price
{
height: 270px;
width: 450px;
background-color: white ;
position: relative;
margin-left: 690px;
top: 100px;
overflow-y: scroll;
}
#data
{
height: 400px;
width: 600px;
background-color: #E6E6FA;
position: relative;
top:450px;
margin-left: 350px;
}
</style>
</head>
<body>
<div id="background">
<div id="menu" style="width:1200px;height:80px;background-color: white;position: relative;margin-left: 130px;">
<div id="mySlidenav" class="sidenav" style="background-attachment: fixed;">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="#"><i class="material-icons">local_airport</i>Air Tickets</a>
<a href="#"><i class="material-icons"></i>Apply for Loans</a>
<a href="#"><i class="material-icons">directions_car</i>Auto care</a>
<a href="#"><i class="material-icons"></i>Book Hotel</a>
<a href="#"><i class="material-icons"></i>Books</a>
</div>
<span style="font-size: 30px;cursor: pointer; background-attachment: fixed;position: relative;top:15px;
" onclick="openNav()">☰Home</span>
<form action="">
<input type="text" placeholder="Search.." name="search" style="position: relative;margin-left: 120px;
top: -20px;width:250px;height: 20px;">
<button type="submit" style="position: relative;margin-left: -5px;top: -15px;height: 25px;width: 15px;"><i class="fa fa-search"></i></button>
</form>
<ul style=" position: relative; width: 26%; float: right;">
<li><a href="login.php">Login</a></li>
<li><a href="Register.php">Register</a></li>
<li><a href="index.php">Home</a></li>
</ul>
</div>
<div id="background2">
<div id="ac"><h2 style="color: red;position: relative;margin-left: 15px;top: 5px;font-family: sans-serif;">Catering</h2></div>
<div id="line"></div>
<div id="line1"></div>
<div id="im"><img src="images/CATERERS.jpg" style="height: 250px;width:95%;position: relative;top: 14px;margin-left: 14px; ">
<p style="position: relative;margin-left: 10px;font-family: sans-serif;">Ensure long life of your air conditioners. Getting it regularly serviced by our experienced professionals, who are well trained to undertake work on both window as well as split air conditioners Services offered: • AC servicing • AC repair • AC gas refilling</p>
</div>
<div id="data">
<form method="post" action="form_restaurant.php">
<table style="position: relative;margin-left: 150px;top: 40px;" align="center">
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Selected City</label></td>
<td><select style="width: 170px;height: 30px;font-size: 15px;" name="select_city">
<option value="delhi" >Delhi</option>
<option value="mumbai">Mumbai</option>
<option value="Banglore">Banglore</option>
<option value="up">U.P.</option>
<option value="mp">M.P.</option>
<option value="Rajesthan">Rajesthan</option>
<option value="Gujarat">Gujarat</option>
</select></td></tr>
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Desired Service</label></td><td><label style="font-family: sans-serif;font-size: 15px;" >Catering Service</label></td></tr>
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Enter Area Pin code</label></td><td><input type="text" name="pin_code" style="width: 170px;height: 30px;font-size: 15px;"></td></tr>
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Desired Area</label></td><td><input type="text" name="area" style="width: 170px;height: 30px;font-size: 15px;"></td></tr>
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Select date</label></td><td><input type="text" name="date" style="width: 170px;height: 30px;font-size: 15px;"></td></tr>
<tr><td><label style="font-family: sans-serif;font-size: 20px;">Restaurant name</label></td><td><input type="text" name="restaurant" style="width: 170px;height: 30px;font-size: 15px;"></td></tr>
</table>
<input type="checkbox" name="yes" style="position: relative;top: 60px;margin-left: 150px;"><label style="position: relative;top: 60px;font-size: 18px;">I agree to terms and conditions</label><br>
<input type="submit" name="submit" value="Book table" style="position: relative;top: 70px;margin-left: 250px;width: 150px;background-color: white;">
</form>
</div>
</div>
</div>
<script type="text/javascript">
function openNav()
{
document.getElementById("mySlidenav").style.width="250px";
}
function closeNav()
{
document.getElementById("mySlidenav").style.width="0";
}
</script>
</body>
</html>
<?php
if(isset($_POST['submit']))
{
$city=$_POST['select_city'];
$pin=$_POST['pin_code'];
$area=$_POST['area'];
$date=$_POST['date'];
$restaurant=$_POST['restaurant'];
$query="insert into book_table(select_city,area_pin,area,date,restaurant)values('$city','$pin','$area','$date','$restaurant')";
$run=mysql_query($query);
if($run)
{
echo "<script>window.open('index.php?booking=booking completed!','_self')</script>";
exit();
}
else{
echo "<script>alert('booking failed')</script>";
exit();
}
}
?>