-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpromo.php
More file actions
228 lines (147 loc) · 8.99 KB
/
promo.php
File metadata and controls
228 lines (147 loc) · 8.99 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Promo • LeggoTravel</title>
<link rel="icon" href="style/resources/logo_orange_black.png">
<!-- fontawesome -->
<script src="https://kit.fontawesome.com/674b5b9445.js" crossorigin="anonymous"></script>
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- styling -->
<link rel="stylesheet" href="style/index.css">
</head>
<body>
<nav class="navagation-other">
<a href="index.php" class="banner-wrapper">
<div class="banner-flex-logo">
<p class="text-danger">Leggo</p><i class="fab fa-telegram orange"></i><p class="text-danger">travel</p>
</div>
</a>
<ul class="">
<li>
<a href="index.php">home</a>
</li>
<li>
<a href="adventures.php">adventures</a>
</li>
<li>
<a href="blogs.php">blogs</a>
</li>
<li>
<a href="contact.php">contact us</a>
</li>
<li>
<a class="active" href="about.php">about</a>
</li>
<?php
session_start();
if(!isset($_SESSION["id"])) {
echo "<li>".
"<a href='login.php'>Login</a>".
"</li>";
} else {
echo "<li>".
"<a href='db/db_logout_user.php'>Logout</a>".
"</li>";
}
?>
</ul>
</nav>
<br><br><br><br>
<div class="custom-container mt-5">
<div class="title-packages-promo d-flex justify-content-between align-items-center">
<h1>PROMO 15%+ OFF</h1>
</div>
<p class="poppins fs-m mt-3">Patch things up with a huge discount in booking travel. We offer deals and promo that are almost half the price! Hurry up and take the limited offers! Good things come to those who book a vacation. Book now and feel the early travel gifts!</p>
<div class="packages-promo-list mt-4">
<?php
include_once 'db/db_connect.php';
$sql = "SELECT * FROM tbl_adventures";
$result = mysqli_query($connect, $sql);
if(mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
if($row["promo"] > 15) {
echo "<div class='card-package-promo'>".
"<img src='db/uploads/".$row["adventure_img"]."' alt='".$row["adventure_img"]."'>".
"<div class='card-title-location d-flex align-items-center my-2'>".
"<i class='fas fa-map-marked-alt fs-xl'></i>".
"<p class='fs-xl mx-2 scheherazade fw-bold text-capitalize'>".$row["location_name"]."</p>".
"</div>".
"<div class='card-description-place my-2'>".
"<p class='fs-m poppins'>".$row["description"]."</p>".
"</div>".
"<div class='card-promo-holder-price my-2'>".
"<div class='d-flex'>".
"<p class='dark-blue poppins fs-m fw-bold'>₱".$row["price"] - ($row["price"] * ($row["promo"]/100))."</p><p class='fs-m poppins text-muted'>/head</p>".
"<p class='mx-2 poppins fs-m text-danger old-price'>(₱".$row["price"].")</p>".
"<p class='mx-2 poppins fs-m text-muted'>".$row["promo"]."% Off</p>".
"</div>".
"</div>".
"<div class='card-promo-button my-3'>".
"<a href='booking.php?id=".$row["adventure_id"]."' class='btn btn-warning fw-bold w-100 p-2'>View details</a>".
"</div>".
"</div>";
}
}
}
?>
</div>
</div>
<div class="custom-container mt-5">
<div class="title-packages-promo d-flex justify-content-between align-items-center">
<h1>Deals & Promo</h1>
<a href="adventures.php" class="text-muted">See all adventures<i class="fas fa-arrow-right mx-3"></i></a>
</div>
<div class="packages-promo-list mt-4">
<?php
include_once 'db/db_connect.php';
$sql = "SELECT * FROM tbl_adventures";
$result = mysqli_query($connect, $sql);
if(mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
if($row["promo"] > 0) {
echo "<div class='card-package-promo'>".
"<img src='db/uploads/".$row["adventure_img"]."' alt='".$row["adventure_img"]."'>".
"<div class='card-title-location d-flex align-items-center my-2'>".
"<i class='fas fa-map-marked-alt fs-xl'></i>".
"<p class='fs-xl mx-2 scheherazade fw-bold text-capitalize'>".$row["location_name"]."</p>".
"</div>".
"<div class='card-description-place my-2'>".
"<p class='fs-m poppins'>".$row["description"]."</p>".
"</div>".
"<div class='card-promo-holder-price my-2'>".
"<div class='d-flex'>".
"<p class='dark-blue poppins fs-m fw-bold'>₱".$row["price"] - ($row["price"] * ($row["promo"]/100))."</p><p class='fs-m poppins text-muted'>/head</p>".
"<p class='mx-2 poppins fs-m text-danger old-price'>(₱".$row["price"].")</p>".
"<p class='mx-2 poppins fs-m text-muted'>".$row["promo"]."% Off</p>".
"</div>".
"</div>".
"<div class='card-promo-button my-3'>".
"<a href='booking.php?id=".$row["adventure_id"]."' class='btn btn-warning fw-bold w-100 p-2'>View details</a>".
"</div>".
"</div>";
}
}
}
?>
</div>
</div>
<div class="bg-success p-5 mt-5">
<p class="fs-m poppins text-white">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam voluptatibus explicabo voluptate consequatur eius maiores sunt alias aperiam ipsum quaerat, iure dolor id obcaecati dignissimos voluptatem magnam veniam minus illo corrupti distinctio ipsam suscipit at quasi vel? Nostrum vitae voluptatem provident magni eum velit itaque nulla nisi veritatis voluptatibus quidem, nam non possimus omnis deleniti?</p>
<br>
<p class="fs-m poppins text-white">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam voluptatibus explicabo voluptate consequatur eius maiores sunt alias aperiam ipsum quaerat, iure dolor id obcaecati dignissimos voluptatem magnam veniam minus illo corrupti distinctio ipsam suscipit at quasi vel? Nostrum vitae voluptatem provident magni eum velit itaque nulla nisi veritatis voluptatibus quidem, nam non possimus omnis deleniti?</p>
</div>
<footer>
<p>Let's go anywhere, life is an adventure!</p>
</footer>
<!-- jquery cdn -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- bootstrap script -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- custom js -->
<script src="js/index.js"></script>
</body>
</html>