-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.php
400 lines (354 loc) · 14.5 KB
/
Home.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<?php
session_start();
include('Connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GWSC</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<!-- Boxicons CSS -->
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,1,0"
/>
<!-- translate -->
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
\
</head>
<body>
<!-- Main wrapper start -->
<div class="mainwrapper ">
<!-- header section start -->
<header class="header" id="header">
<nav id="gnav">
<div class="navbar" >
<i class='bx bx-menu sidebarOpen' ></i>
<div class="menu">
<div class="logo-toggle">
<i class='bx bx-x sidebarClose'></i>
</div>
<a class="gbrandlogo gsitem" href="Home.php"><span>G</span>WS<Span>C</Span></a>
<a class="gsitem gsitem2 active" href="Home.php">Home</a>
<a class="gsitem gsitem2 " href="Information.php">Information</a>
<a class="gsitem gsitem2" href="PitchAvailable.php">Pitch Available</a>
<a class="gsitem gsitem2" href="LA.php">Local-Attractions</a>
<a class="gsitem gsitem2" href="Features.php">Features</a>
<a class="gsitem gsitem2" href="Reviews.php">Reviews</a>
<a class="gsitem gsitem2" href="Contact.php">Contact Us</a>
<a class="gsitem gsitem2" href="CustomerLogin.php">Login</a>
</div>
</div>
</nav>
</header>
<!-- header section end -->
<div class="cookiewrapper" id="cookiewrapper">
<div class="cookieicon">
<i class="bx bx-cookie"></i>
<h2>Cookies Consent</h2>
</div>
<div class="gcookiedata">
<p>This website use cookies to help you have a superior and more relevant browsing experience on the website. <a href="Policy.php"> Read more...</a></p>
</div>
<div class="btn-gp">
<button class="btn btn-hover cbtn" id="acceptBtn">Accept</button>
<button class="btn btn-hover cbtn" id="declineBtn">Decline</button>
</div>
</div>
<br>
<br>
<br>
<!-- view -->
<div class="view">
<?php
if (!isset($_SESSION['CId'])) {
echo "<script>alert('Please Login!')</script>";
}
else{
$CId = $_SESSION['CId'];
$select = "SELECT * FROM Customer WHERE CustomerID = '$CId'";
$query = mysqli_query($connect, $select);
$count = mysqli_num_rows($query);
if ($count>0) {
$data = mysqli_fetch_array($query);
$view = $data['ViewCounts'];
echo "<h3><i class='fa-regular fa-user' ></i>ViewCounts:</h3>".$view;
}
}
?>
</div>
<a href="rss.php" class="rss"><i class="fa-solid fa-square-rss"></i>RSS</a>
<br>
<!-- BreadCrumb Section Start -->
<div class="bread c-bread">
<ul class="breadcrumbs">
<li><a href="Home.php" class="active">Home</a></li>
</ul>
</div>
<!-- BreadCrumb Section End -->
<!-- Slider Banner Start -->
<section class="s-container underdeco">
<div class="slide-container active2">
<div class="slide">
<div class="s-content">
<h3>WELCOME TO <span class="gbrandlogo"><span>G</span>WS<Span>C</Span></span></h3>
<button class="btn"><a href="#aboutus">Learn More!</a></button>
</div>
<div class="banner-img">
<img src="./GWS/slider-2.png" alt="gwsc">
</div>
</div>
</div>
<div class="slide-container ">
<div class="slide">
<div class="s-content">
<h3>Camp with <Span class="s-2">Loved</Span> Ones</h3>
<button class="btn"><a href="#aboutus">Learn More!</a></button>
</div>
<div class="banner-img">
<img src="./GWS/slider-4.png" alt="gwsc">
</div>
</div>
</div>
<div class="slide-container">
<div class="slide">
<div class="s-content">
<h3>CAMP ALONE WITH <span class="s-3">NATURE</span></h3>
<button class="btn"><a href="#aboutus">Learn More!</a></button>
</div>
<div class="banner-img">
<img src="./GWS/h3.png" alt="gwsc">
</div>
</div>
</div>
<div class="slide-container">
<div class="slide">
<div class="s-content">
<h3>LET'S SWIM IN THE <SPAN class="s-4">WILD</SPAN></h3>
<button class="btn"><a href="#aboutus">Learn More!</a></button>
</div>
<div class="banner-img">
<img src="./GWS/s7.png" alt="gwsc">
</div>
</div>
</div>
<div class="slide-container ">
<div class="slide">
<div class="s-content">
<h3>CAMPING AT THE NIGHT WITH <span class="s-5">STARRY SKY</span></h3>
<a href="#aboutus" class=" btn">Learn More!</a>
</div>
<div class="banner-img">
<img src="./GWS/slider-5.png" alt="gwsc">
</div>
</div>
</div>
<div id="prev" onclick="prev()"> < </div>
<div id="nex" onclick="next()"> > </div>
</div>
</section>
<!-- Slider Banner End -->
<!-- Package Start-->
<div class="display container underdeco">
<div class="sub">
<h3>Available Pitches</h3>
</div>
<div class="spackage">
<a href="PitchAvailable.php"><input type="text" name="search" placeholder="Search available.."></a>
</div>
<div class="product Manage container">
<?php
$query = "SELECT * FROM Pitch ORDER BY PitchID";
$ret = mysqli_query($connect, $query);
$count = mysqli_num_rows($ret);
if ($count == 0) {
echo "<p>No Pitches are available!</p>";
} else {
echo "<div class='prosec'>";
while ($data = mysqli_fetch_array($ret)) {
$PitchID = $data['PitchID'];
$PitchName = $data['PitchName'];
$PitchPrice = $data['PitchPricePerNight'];
$PitchImg = $data['PitchImg'];
?>
<div class="prosec-wrapper">
<div class="prosec-top">
<img src="<?php echo $PitchImg ?>" class="M-Image" alt="img">
</div>
<div class="prosec-bottom btn-gp">
<p class="pname"><?php echo $PitchName ?></p><br>
<p class="pprice">$<?php echo $PitchPrice ?></p><br>
<button class="btn"><a href="Information.php?PID=<?php echo $PitchID ?>">See More>></a></button>
</div>
</div>
<?php
}
echo "</div>";
}
?>
</div>
</div>
<!-- package End-->
<!-- About us start -->
<section class="aboutus" id="aboutus">
<div class="container about">
<div class="circle container">
<div class="cir-img">
<div class="circular-img">
<div class="circular-img-inner">
<div class="circular-img-circle"></div>
<img src="./GWS/about.png" alt="gws">
</div>
</div>
</div>
</div>
<div class="us-content">
<h3>About Us</h3>
<p>Since <strong>2014</strong> , we have been pursuing our mission of sharing the joy of nature. We provide the best attention when providing camping services to people all around the world. You can take part in this serene journey by yourself, with family, friends, or loved ones. You guys can choose from a variety of packages that we offer. <span>Let's embrace nature.</span> </p>
</div>
</div>
</section>
<!-- About us end -->
<!-- Activities start -->
<div class="awrapper" id="act">
<h3 class="gwscheader gfocus-in-expand">Activities</h3>
<div class="acontainer">
<img src="./GWS/a2.jpg" alt="activities">
<div class="alay">
<i class="fa-solid fa-fire"></i>
</div>
</div>
<div class="acontainer">
<img src="./GWS/a3.jpg" alt="activities">
<div class="alay">
<i class="fa-solid fa-person-hiking"></i>
</div>
</div>
<div class="acontainer">
<img src="./GWS/a4.jpg" alt="activities">
<div class="alay">
<i class="fa-solid fa-person-swimming"></i>
</div>
</div>
<div class="acontainer">
<img src="./GWS/a5.jpg" alt="activities">
<div class="alay">
<i class="fa-solid fa-fish"></i>
</div>
</div>
<div class="acontainer">
<img src="./GWS/a6.jpg" alt="activities">
<div class="alay">
<i class="fa-solid fa-person-biking"></i>
</div>
</div>
</div>
<!-- Activities end -->
<!-- Video Start -->
<div class="v-container underdeco">
<div class="video">
<iframe src="https://www.youtube.com/embed/2iozAU1mcC8?si=0SuZUG6HbHZf9FSC" title="YouTube video player" allow="accelerometer; autoplay" allowfullscreen></iframe>
</div>
</div>
<!-- Video End -->
<!-- Subscribe start -->
<div class="gsm">
<div class="scribecontainer">
<h3>Would you like to know our promotion and activities?</h3>
<div class="scribe">
<input type="text" placeholder="Enter your Email.....">
<div class="btn-gp">
<button class="sendbtns1 btn-hover" type="submit" name="btnrate" required>
<span class="sending" >
Subscribe
</span>
<i class="fa-solid fa-paper-plane"></i>
<span class="sent">Done✔</span>
</button>
</div>
</div>
</div>
<div class="gmap ">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d105757.27081173284!2d-118.95683630848114!3d34.071700503253595!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x80e83f33b9501fd9%3A0xe8a6114f3ed959ba!2sSycamore%20Canyon%20Campground!5e0!3m2!1sen!2smm!4v1697037691248!5m2!1sen!2smm" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</div>
<!-- Subscribe end -->
<button onclick="topFunction()" id="topbtn" title="Go to top"><i class="fa-solid fa-circle-arrow-up"></i></button>
<!-- footer section start -->
<footer class="footer">
<div class="footer-top">
<div class="container">
<div class="footer-item">
<h3 class="gbrandlogo">
<span>G</span>WS<Span>C</Span>
</h3>
<ul>
<li><a href="Home.php#aboutus">about us</a></li>
<li><a href="Home.php#act">Activities</a></li>
<li><a href="information.php">Pitch Types</a></li>
<li><a href="Features.php">Features</a></li>
<li><a href="Policy.php">Privacy and Policy</a></li>
</ul>
</div>
<div class="footer-item">
<h3>Contact Us</h3>
<ul>
<li>Email: <b class="cs">gwsc2014@gmail.com</b></li>
<li>PhoneNo: <b >(+95)096327879524</b></li>
<li>Location: <b >Brooklyn A2,USA</b></li>
<img src="./GWS/payment.png" alt="pay">
</ul>
</div>
<div class="footer-item">
<h3>get in touch</h3>
<ul>
<li>
<a href="#"
><i class="fab fa-linkedin social-icon"> </i>linkedin</a
>
</li>
<li>
<a href="#"
><i class="fab fa-facebook social-icon">
</i>facebook</a
>
</li>
<li>
<a href="#"
><i class="fab fa-twitter social-icon"> </i>twitter</a
>
</li>
<li>
<a href="#"
><i class="fab fa-instagram social-icon">
</i
>instagram</a
>
</li>
<li>
<a href="#"
><i class="fab fa-youtube social-icon"> </i>youtube</a
>
</li>
</ul>
</div>
</div>
<div id="google_translate_element"></div>
<b class="divider">---------<i class="fa-brands fa-canadian-maple-leaf"></i>---------</b>
<p>You are here at the <span>Home</span> Page</p>
<hr>
<p class="CopyRIght">© 2023 <span class="gbrandlogo"><span>G</span>WS<Span>C</Span></span> | All Rights Reserved.</p>
<p>This is An Education Website.</p>
</div>
</footer>
<!-- footer section end-->
</div>
<!-- Main wrapper end -->
\
<script src="script.js"></script>
<script type="text/javascript"></script>
</body>
</html>