-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshwrm.php
216 lines (180 loc) · 8.75 KB
/
shwrm.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
<?php session_start(); ?>
<?php require_once('inc/Connection.php'); ?>
<?php require_once('inc/functions.php'); ?>
<!DOCTYPE html>
<html>
<head>
<title>Tripplin Car Rent</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css" integrity="sha256-46r060N2LrChLLb5zowXQ72/iKKNiw/lAmygmHExk/o=" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="css/shwrm.css">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<?php require_once('inc/hdr.php'); ?>
<div class="Cont">
<div class="Content3 clearfix">
<div class="Advice">
<h2>Get great deals on a car rental and save big</h2>
<h5>Trying to find the best car rental deal?</h5>
<p>There is no need to look further – you can always find a special offer and save big on NinoRentaCar.com!<br><br>Cooperating with hundreds of global and local car rental suppliers, we provide a wide choice of vehicles of all classes and find the perfect car for your journey. NinoRentaCar.com is ready to assist you whatever your question is and wherever you are in the world.</p>
</div><!-- Advice -->
<div class="Hotline">
<h2>Hot-Line:</h2>
<h1><i class="fas fa-phone-alt"></i></h1>
<h3>+94 (011) 678 90 21</h3>
<h6>Call Center Working Hours</h6>
<h6>Mon – Fri: 8:00 AM — 11:00 PM GMT</h6>
<h6>Sat – Sun: 8:00 AM — 9:00 PM GMT</h6>
</div><!-- Hotline -->
<div class="Advertiesment1">
<img src="img/5Banner-advertising-in-India-2018-HTML-Ad.png" alt="Advertiesment1">
</div><!-- Advertiesment1 -->
<div class="Resp-ad">
<img src="img/BOAT-728x90.png" alt="Advertiesment1">
</div><!-- Resp-ad -->
</div><!-- Content3 -->
</div><!-- Cont -->
<div class="empty"></div>
<div class="Content">
<div class="Itemhead">
<h1>RENTED CARS <a href="singlesetshwrm.php?print=Cars"><span>View All</span><i class="fas fa-hand-point-right"></i></a></h1>
<?php
$query = "SELECT * FROM rented_vehicles WHERE kind_of_vehicle = 'Hatchback' OR kind_of_vehicle = 'Wagon' OR kind_of_vehicle = 'Sedan' OR kind_of_vehicle = 'Coupe' OR kind_of_vehicle = 'Sport' ORDER BY post_id DESC";
$result = mysqli_query($Connection, $query);
// echo $query;
// die();
if ($result) {
if(mysqli_num_rows($result) > 0){
$i = 0;
while ($data = mysqli_fetch_assoc($result)) {
if($i<4){
$kind = print_kind($data['kind_of_vehicle']);
?><div class="Item">
<img src="web_img/<?php echo($kind); ?>/<?php echo($data['kind_of_vehicle']); ?>/<?php echo($data['post_id']); ?>/<?php echo($data['front_side_img']); ?>" alt="Vehicl photo here">
<h3><?php echo $data['vehical_name']; ?></h3>
<p><?php echo $data['mnf_year']; ?></p>
<p><?php echo $data['province']; ?> Province</p>
<p><?php echo $data['district']; ?> District</p>
<h3 style="color: yellow"><?php echo $data['price']; ?> /=<br><span style="color: #808080;">LKR per day</span></h3>
<a href="singlevehicle.php?post_id=<?php echo($data['post_id']) ?>"><button type="submit" name="take_a_look">Take A Look</button></a>
</div><!-- car --><?php
}
$i++;
}
}else{
echo "<h3 style=\"padding: 10px 0 20px 0; text-align: center; color: #aaa; font-family: sans-serif;\">No rented cars are found</h3>";
}
}else{
echo "Databade query failed";
}
?>
<div class="empty"></div>
</div><!-- Itemhead -->
<div class="Itemhead">
<h1>RENTED VANS <a href="singlesetshwrm.php?print=Vans"><span>View All</span><i class="fas fa-hand-point-right"></i></a></h1>
<?php
$query = "SELECT * FROM rented_vehicles WHERE kind_of_vehicle = 'Van' ORDER BY post_id DESC";
$result = mysqli_query($Connection, $query);
// echo $query;
// die();
if ($result) {
if(mysqli_num_rows($result) > 0){
$i = 0;
while ($data = mysqli_fetch_assoc($result)) {
if($i<4){
$kind = print_kind($data['kind_of_vehicle']);
?><div class="Item">
<img src="web_img/<?php echo($kind); ?>/<?php echo($data['kind_of_vehicle']); ?>/<?php echo($data['post_id']); ?>/<?php echo($data['front_side_img']); ?>" alt="Vehicl photo here">
<h3><?php echo $data['vehical_name']; ?></h3>
<p><?php echo $data['mnf_year']; ?></p>
<p><?php echo $data['province']; ?> Province</p>
<p><?php echo $data['district']; ?> District</p>
<h3 style="color: yellow"><?php echo $data['price']; ?> /=<br><span style="color: #808080;">LKR per day</span></h3>
<a href="singlevehicle.php?post_id=<?php echo($data['post_id']) ?>"><button type="submit" name="take_a_look">Take A Look</button></a>
</div><!-- car --><?php
}
$i++;
}
}else{
echo "<h3 style=\"padding: 10px 0 20px 0; text-align: center; color: #aaa; font-family: sans-serif;\">No rented vans are found</h3>";
}
}else{
echo "Databade query failed";
}
?>
<div class="empty"></div>
</div><!-- Itemhead -->
<div class="Itemhead">
<h1>RENTED OFF ROADS <a href="singlesetshwrm.php?print=Off_Road_and_Jeeps"><span>View All</span><i class="fas fa-hand-point-right"></i></a></h1>
<?php
$query = "SELECT * FROM rented_vehicles WHERE kind_of_vehicle = 'Off Road' OR kind_of_vehicle = 'Pickup' OR kind_of_vehicle = 'SUV' ORDER BY post_id DESC";
$result = mysqli_query($Connection, $query);
// echo $query;
// die();
if ($result) {
if(mysqli_num_rows($result) > 0){
$i = 0;
while ($data = mysqli_fetch_assoc($result)) {
if($i<4){
$kind = print_kind($data['kind_of_vehicle']);
?><div class="Item">
<img src="web_img/<?php echo($kind); ?>/<?php echo($data['kind_of_vehicle']); ?>/<?php echo($data['post_id']); ?>/<?php echo($data['front_side_img']); ?>" alt="Vehicl photo here">
<h3><?php echo $data['vehical_name']; ?></h3>
<p><?php echo $data['mnf_year']; ?></p>
<p><?php echo $data['province']; ?> Province</p>
<p><?php echo $data['district']; ?> District</p>
<h3 style="color: yellow"><?php echo $data['price']; ?> /=<br><span style="color: #808080;">LKR per day</span></h3>
<a href="singlevehicle.php?post_id=<?php echo($data['post_id']) ?>"><button type="submit" name="take_a_look">Take A Look</button></a>
</div><!-- car --><?php
}
$i++;
}
}else{
echo "<h3 style=\"padding: 10px 0 20px 0; text-align: center; color: #aaa; font-family: sans-serif;\">No rented off roads are found</h3>";
}
}else{
echo "Databade query failed";
}
?>
<div class="empty"></div>
</div><!-- Itemhead -->
<div class="Itemhead">
<h1>RENTED BUSSES <a href="singlesetshwrm.php?print=Busses"><span>View All</span><i class="fas fa-hand-point-right"></i></a></h1>
<?php
$query = "SELECT * FROM rented_vehicles WHERE kind_of_vehicle = 'Bus' ORDER BY post_id DESC";
$result = mysqli_query($Connection, $query);
// echo $query;
// die();
if ($result) {
if(mysqli_num_rows($result) > 0){
$i = 0;
while ($data = mysqli_fetch_assoc($result)) {
if($i<4){
$kind = print_kind($data['kind_of_vehicle']);
?><div class="Item">
<img src="web_img/<?php echo($kind); ?>/<?php echo($data['kind_of_vehicle']); ?>/<?php echo($data['post_id']); ?>/<?php echo($data['front_side_img']); ?>" alt="Vehicl photo here">
<h3><?php echo $data['vehical_name']; ?></h3>
<p><?php echo $data['mnf_year']; ?></p>
<p><?php echo $data['province']; ?> Province</p>
<p><?php echo $data['district']; ?> District</p>
<h3 style="color: yellow"><?php echo $data['price']; ?> /=<br><span style="color: #808080;">LKR per day</span></h3>
<a href="singlevehicle.php?post_id=<?php echo($data['post_id']) ?>"><button type="submit" name="take_a_look">Take A Look</button></a>
</div><!-- car --><?php
}
$i++;
}
}else{
echo "<h3 style=\"padding: 10px 0 20px 0; text-align: center; color: #aaa; font-family: sans-serif;\">No rented busses are found</h3>";
}
}else{
echo "Databade query failed";
}
?>
<div class="empty"></div>
</div><!-- Itemhead -->
</div><!-- Content -->
<?php require_once('inc/ftr.php');?>
<?php mysqli_close($Connection); ?>
</body>
</html>