-
Notifications
You must be signed in to change notification settings - Fork 0
/
Car.php
307 lines (302 loc) · 8.91 KB
/
Car.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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<?php include("connect.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>Car</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: 580px;
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:430px;
margin-left: 100px;
}
#scroll
{
height: 400px;
width: 450px;
background-color: white;
position: relative;
top: -300px;
margin-left: 700px;
overflow-y: scroll;
}
</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;">Car Repair</h2></div>
<div id="line"></div>
<div id="line1"></div>
<div id="im"><img src="images/CAR_REPAIR.jpeg" style="height: 250px;width:550px;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="service"><h3 style="position: relative;top: 15px;margin-left: 20px;font-family: sans-serif;color: red;">Service price</h3></div>
<div id="line3"></div>
<div id="line4"></div>
<div id="data">
<form method="post" action="Car.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;">AC Repair</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;">Problem Description</label></td><td><input type="textarea" name="problem" 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="Submit" style="position: relative;top: 70px;margin-left: 250px;width: 150px;background-color: white;">
</form>
</div>
<div id="scroll">
<table style="position: relative;top: 0px;">
<tr><td>AC Stabilizer Installation</td><td>RS. 180/-</td></tr>
<tr><td>AC Switch Installation</td><td>RS. 180/-</td></tr>
<tr><td>Cassate AC gas refilling @Rs.1499/-per tonn</td><td>RS. 1499/-</td></tr>
<tr><td>Cassate AC gas refilling @Rs.999/-per tonn</td><td>RS. 999/-</td></tr>
<tr><td>Cassate AC servicing @Rs.799/-</td><td>RS. 799/-</td></tr>
<tr><td>Cassate AC servicing @Rs.999/-</td><td>RS. 999/-</td></tr>
<tr><td>Split AC Fitting</td><td>RS. 1700/-</td></tr>
<tr><td>Split AC Gas filling-1 ton</td><td>RS. 1499/-</td></tr>
<tr><td>Split AC Gas filling-1.5 ton</td><td>RS. 1999/-</td></tr>
<tr><td>Split AC Gas filling-2 ton</td><td>RS. 1999/-</td></tr>
<tr><td>Split AC Gas filling-2.5 ton</td><td>RS. 2500/-</td></tr>
<tr><td>Split AC Removal</td><td>RS. 800/-</td></tr>
<tr><td>Split AC Servicing</td><td>RS. 199/-</td></tr>
<tr><td>Window AC Fitting</td><td>RS. 400/-</td></tr>
<tr><td>Window AC Fitting-With skirting</td><td>RS. 700/-</td></tr>
<tr><td>Window AC Fitting-With skirting and Material</td><td>RS. 1000/-</td></tr>
<tr><td>Window AC Fitting-1 ton</td><td>RS. 1499/-</td></tr>
<tr><td>Window AC Fitting-1.5 ton</td><td>RS. 1499/-</td></tr>
<tr><td>Window AC Fitting-2 ton</td><td>RS. 1499/-</td></tr>
<tr><td>Window AC Fitting-2.5 ton</td><td>RS. 1999/-</td></tr>
<tr><td>Window AC Removal</td><td>RS. 250/-</td></tr>
<tr><td>Window AC Servicing</td><td>RS. 180/-</td></tr>
</table>
</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'];
$problem=$_POST['problem'];
$query="insert into car(select_city,area_pin,area,date,problem)values('$city','$pin','$area','$date','$problem')";
$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();
}
}
?>