Code restructure push
This commit is contained in:
73
src/pages/memberships/membership.php
Normal file
73
src/pages/memberships/membership.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
$headerStyle = 'light';
|
||||
include_once(dirname(dirname(dirname(__DIR__))) . '/header.php');
|
||||
|
||||
// Assuming you have the user ID stored in the session
|
||||
if (isset($_SESSION['user_id']) && isset($conn) && $conn !== null) {
|
||||
$user_id = $_SESSION['user_id'];
|
||||
// Fetch user data from the database
|
||||
$sql = "SELECT * FROM users WHERE user_id = ?";
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->bind_param("i", $user_id);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
$user = $result->fetch_assoc();
|
||||
} else {
|
||||
$user = null;
|
||||
}
|
||||
?><?php
|
||||
$pageTitle = 'Membership';
|
||||
$breadcrumbs = [['Home' => 'index.php']];
|
||||
require_once(dirname(dirname(dirname(__DIR__))) . '/components/banner.php');
|
||||
?>
|
||||
<!-- Contact Form Area start -->
|
||||
<section class="about-us-area py-100 rpb-90 rel z-1">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-xl-5 col-lg-6">
|
||||
<div class="about-us-content rmb-55" data-aos="fade-left" data-aos-duration="1500"
|
||||
data-aos-offset="50">
|
||||
<div class="section-title mb-25">
|
||||
<h2>Become a member of 4WDCSA</h2>
|
||||
|
||||
<p>Sign up for an annual membership and receive:</p>
|
||||
<ul class="list-style-two mt-35 mb-30">
|
||||
<li>Year round access to BASE4</li>
|
||||
<li>FREE Camping at BASE4</li>
|
||||
<li>Up to 95% Discount on Training Courses</li>
|
||||
<li>Exclusive Member discounts for all trips and events</li>
|
||||
<li>... and many more!</li>
|
||||
</ul>
|
||||
</div>
|
||||
<h2>R 2,500/year</h2>
|
||||
<p>We go above and beyond to make your travel dreams reality hidden gems and must-see
|
||||
attractions</p>
|
||||
<a href="membership_application" class="theme-btn mt-10 style-two">
|
||||
<span data-hover="Start Application">Start Application</span>
|
||||
<i class="fal fa-arrow-right"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-7 col-lg-6" data-aos="fade-right" data-aos-duration="1500" data-aos-offset="50">
|
||||
<div class="about-us-image">
|
||||
<!-- <div class="shape"><img src="assets/images/about/shape1.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape2.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape3.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape4.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape5.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape6.png" alt="Shape"></div>
|
||||
<div class="shape"><img src="assets/images/about/shape7.png" alt="Shape"></div> -->
|
||||
<img src="assets/images/logos/weblogo.png" alt="About">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php include_once(dirname(dirname(dirname(__DIR__))) . '/components/insta_footer.php'); ?>
|
||||
Reference in New Issue
Block a user