-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
272 lines (250 loc) · 12.1 KB
/
index.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
<?php
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="MYMECHANIC_CSS/style.css">
<!-- css liabraries start-->
<!-- css liabraries End-->
<title>MyMechanic</title>
</head>
<body>
<!-- include navbar start -->
<?php include 'partials\_navbar.php';?>
<!-- include navbar End -->
<!-- include navbar start -->
<?php include 'partials\_dbconnect.php';?>
<!-- include navbar End -->
<?php
if(isset($_GET['login']) && ($_GET['login'])== 'success'){
echo '<div class="alert alert-success alert-dismissible fade show my-2 mx-2" role="alert">
<i class="bi bi-check-circle-fill"> </i><strong>Congratulations!! </strong>
You are logged in successfully!!
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<audio controls autoplay style="display:none">
<source src="images/horn.mp3" type="audio/ogg">
<source src="images/horn.mp3" type="audio/mpeg">
</audio>
';
}
?>
<!-- carausal start -->
<div id="carouselExampleCaptions" style="z-index: -1;" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="images/back1.jpg" style="opacity: 0.89;" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h1 style="font-size: 100px; font-weight:700; text-shadow: 5px 5px 9px black;">Keep Your Car Newer</h1>
</div>
</div>
<div class="carousel-item">
<img src="images/back2.jpg" style="opacity: 0.89;" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h1 style="font-size: 100px; font-weight:700; text-shadow: 5px 5px 9px black;">Quality Service For You</h1>
</div>
</div>
<div class="carousel-item">
<img src="images/back3.jpg" style="opacity: 0.89;" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h1 style="font-size: 100px; font-weight:700; text-shadow: 5px 5px 9px black;">Service Before You Sleep</h1>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<!-- carausal end -->
<!-- About card strip_tags -->
<div class="about">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6">
<div class="about-img">
<img src="images/about1.jpg" alt="Image">
</div>
</div>
<div class="col-lg-6">
<div class="section-header text-left">
<p>About Us</p>
<h2>We are providing Online Booking system for Car Service.</h2>
</div>
<div class="about-content">
<p>
MyMechanic is a network of technology-enabled car service centres, offering a seamless car service experience at the convenience of a tap. With our highly skilled technicians, manufacturer recommended procedures and the promise of genuine spare parts we are your best bet.
</p>
<ul>
<li><i class="bi bi-check-circle"></i>Best Service</li>
<li><i class="bi bi-check-circle"></i>Best Pricing</li>
<li><i class="bi bi-check-circle"></i>Value For Time</li>
<li><i class="bi bi-check-circle"></i>Trustable Plateform</li>
</ul>
<a href="category.php" type="button" class="btn btn-secondary">View Services</a>
</div>
</div>
</div>
</div>
</div>
<!-- About card End -->
<!-- popular services start -->
<div class="service">
<div class="container">
<div class="section-header text-center">
<p>What We Do?</p>
<h2>Popular Categories</h2>
</div>
<div class="row">
<?php
$sql1 = "SELECT *FROM `category` WHERE `cat_status`= 'Active' AND `cat_by` = 'mymechanic' LIMIT 4";
$result1 = mysqli_query($conn, $sql1);
while($row1 = mysqli_fetch_assoc($result1)){
$catimage = "data:image/jpg;base64," . base64_encode($row1['cat_image']);
$catname = $row1['cat_name'];
$catdes = $row1['cat_description'];
echo '<div class="col-lg-3 col-md-6">
<div class="service-item">
<img src='.$catimage.'>
<h3>'.$catname.'</h3>
<p>'.$catdes.'</p>
<a href="category.php" type="button" class="btn btn-secondary mt-2">View All Categories</a>
</div>
</div>';
}
?>
</div>
</div>
</div>
<!-- popular services End -->
<!-- customer reviews Start -->
<div class="testimonial">
<div class="container">
<div class="section-header text-center">
<p>Reviews</p>
<h2>What our customer say</h2>
</div>
<div class="owl-carousel testimonials-carousel">
<div class="testimonial-item">
<img src="images/customer1.JPG" alt="Image">
<div class="testimonial-text">
<h3>Haresh Padshala</h3>
<h4>Profession</h4>
<p><i class="bi bi-patch-check-fill" style="font-size: 1.5rem; color: #cc1a2c;"></i>
Booking an online car service is a hassle when going for an authorized service center. So I use the Mymechanic web to book car services Very smooth process!
</p>
</div>
</div>
<div class="testimonial-item">
<img src="images/customer2.JPG" alt="Image">
<div class="testimonial-text">
<h3>Brijesh Choudhary</h3>
<h4>Profession</h4>
<p><i class="bi bi-patch-check-fill" style="font-size: 1.5rem; color: #cc1a2c;"></i>
Getting your car serviced at regular intervals is very crucial and GoMyMechanic’s app makes it even easier to book your car services.this is really great
</p>
</div>
</div>
<div class="testimonial-item">
<img src="images/customer3.JPG" alt="Image">
<div class="testimonial-text">
<h3>Kishan Padshala</h3>
<h4>Profession</h4>
<p><i class="bi bi-patch-check-fill" style="font-size: 1.5rem; color: #cc1a2c;"></i>
Comprehensive package at Mymechanic was really a good choice. I book it after every 200k kms and my car is thoroughly inspected and fixed for any problems every time!
</p>
</div>
</div>
</div>
</div>
</div>
<!-- customer reviews end -->
<!-- Facts Start -->
<div class="facts">
<div class="container">
<div class="section-header text-center">
<p>Facts</p>
<h2>About Our Successful Journy</h2>
</div>
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="facts-item">
<i class="bi bi-geo-alt-fill"></i>
<div class="facts-text">
<?php
$totalgr = "SELECT *FROM `garages`";
$totalres = mysqli_query($conn,$totalgr);
$num1 = mysqli_num_rows($totalres);
?>
<h3><?php echo $num1?></h3>
<h5>Total Garages</h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="facts-item">
<i class="bi bi-person-fill"></i>
<div class="facts-text">
<?php
$totalsr = "SELECT *FROM `service`";
$totalres2 = mysqli_query($conn,$totalsr);
$num2 = mysqli_num_rows($totalres2);
?>
<h3><?php echo $num2?></h3>
<h5>Total Services</h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="facts-item">
<i class="bi bi-people-fill"></i>
<div class="facts-text">
<?php
$totalcr = "SELECT *FROM `customer`";
$totalres3 = mysqli_query($conn,$totalcr);
$num3 = mysqli_num_rows($totalres3);
?>
<h3><?php echo $num3?></h3>
<h5>Total Customers</h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="facts-item">
<i class="bi bi-check-all"></i>
<div class="facts-text">
<?php
$totalbk = "SELECT *FROM `booking` WHERE `bk_status` = 'complete'";
$totalres4 = mysqli_query($conn,$totalbk);
$num4 = mysqli_num_rows($totalres4);
?>
<h3><?php echo $num4?></h3>
<h5>Total Services complete</h5>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Facts End -->
<!-- Footer Start -->
<?php include 'partials/_footer.php';?>
<!-- Footer End -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="MYMECHANIC_JS/mechanic.js"></script>
</body>
</html>