-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-list.php
More file actions
244 lines (176 loc) · 8.05 KB
/
package-list.php
File metadata and controls
244 lines (176 loc) · 8.05 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?php
session_start();
error_reporting(0);
include('conFile/conection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
include "repeated/links.php";
?>
<script type="application/x-javascript">
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); }
</script>
<script>
new WOW().init();
</script>
</head>
<body>
<main>
<!-- navbar code -->
<?php
include "repeated/navbar.php";
?>
<!-- navbar code end -->
<!-- login-registerforms -->
<div class="wrapper">
<span class="icon-close"><ion-icon name="close"></ion-icon></span>
<div class="form-box login">
<h2>Login</h2>
<form action="" method="POST">
<div class="input-box">
<span class="icon"><ion-icon name="mail"></ion-icon></span>
<input type="email" name="user_email" required>
<label>Email</label>
</div>
<div class="input-box">
<span class="icon"><ion-icon name="lock-closed"></ion-icon></span>
<input type="Password" name="user_pass" required>
<label>Password</label>
</div>
<div class="remember-forgot">
<label><input type="checkbox">Remember me</label>
<a href="#">Forgot Password</a>
</div>
<button type="submit" name="logsubmit" class="btnn">Login</button>
<div class="login-register">
<p>Don't have an account? <a href="#" class="register-link">Register</a></p>
</div>
</form>
</div>
<!-- Register -->
<div class="form-box register">
<h2>Register</h2>
<form action="" method="POST" enctype="multipart/form-data">
<div class="input-box">
<span class="icon"><ion-icon name="person"></ion-icon></span>
<input type="text" name="user_name" required>
<label>Username</label>
</div>
<div class="input-box">
<span class="icon"><ion-icon name="mail"></ion-icon></span>
<input type="email" name="user_email" required>
<label>Email</label>
</div>
<div class="input-box">
<span class="icon"><ion-icon name="lock-closed"></ion-icon></span>
<input type="Password" name="user_pass" required>
<label>Password</label>
</div>
<div class="input-box">
<br>
<input type="file" name="user_image">
<label>Profile Picture</label>
</div>
<button type="submit" class="btnn" name="submit">Register</button>
<div class="login-register">
<p> Have an account? <a href="#" class="login-link">Login</a></p>
</div>
</form>
</div>
</div>
<!-- login-registerforms end -->
<header class="site-header d-flex flex-column justify-content-center align-items-center">
<div class="container">
<div class="row">
<div class="col-lg-12 col-12 text-center">
<h2 class="mb-0"> Events</h2>
</div>
</div>
</div>
</header>
<section class="section section-padding" id="section_2">
<div class="container">
<div class="row">
<div class="col-lg-12 col-12">
<div class="section-title-wrap mb-5">
<h4 class="section-title">Package List</h4>
</div>
</div>
<?php
// Query to select all tour packages
$sql = "SELECT * FROM tbltourpackages";
$result = $conn->query($sql);
// Check if query was successful
if ($result === false) {
die("Query failed: " . $conn->error);
}
// Fetch all results
if ($result->num_rows > 0) {
while ($row = $result->fetch_object()) {
?>
<div class=col-12 mb-4 mb-lg-0 itemvid video-fil" data-category="education">
<div class="custom-block d-flex">
<div class="">
<div class="custom-block-icon-wrap">
<img src="./admin/pacakgeimages/<?php echo htmlentities($row->PackageImage); ?>"
class="custom-block-image img-fluid" alt="">
</div>
</div>
<div class="custom-block-info">
<h5 class="mb-2">
<a href="details.php">
<?php echo htmlentities($row->PackageName); ?>
</a>
</h5>
<div class="profile-block d-flex">
<p>
<b>Package Location :</b> <?php echo htmlentities($row->PackageLocation); ?>
</p>
</div>
<div class="profile-block d-flex">
<p>
<b>Package Type :<?php echo htmlentities($row->PackageType); ?>
</p>
</div>
<p class="mb-0"><?php echo htmlentities($row->PackageDetails); ?></p>
<div class="custom-block-bottom d-flex justify-content-between mt-3">
<div class="mt-2">
<a href="package-details.php?pkgid=<?php echo htmlentities($row->PackageId); ?>"
class="btn custom-btn">
Details
</a>
</div>
<div class="mt-2">
<a href="" class="fa-regular fa-rupee-sign me-1">
<span>PKR <?php echo htmlentities($row->PackagePrice); ?></span>
</a>
</div>
</div>
</div>
</div>
</div>
<?php
}
}
$result->free();
$conn->close();
?>
</div>
</div>
</section>
</main>
<!-- footercode -->
<?php
include 'repeated/footer.php';
?>
<!-- footercode end -->
<!-- javaScript links -->
<?php
include 'repeated/jslinks.php';
?>
<!-- javaScript links end -->
</body>
</html>