-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
209 lines (178 loc) · 7.34 KB
/
index.php
File metadata and controls
209 lines (178 loc) · 7.34 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
<?php
session_start();
if (!empty($_SESSION['userID'])) {
if (!empty($_SESSION['lastVisited'])) {
header("Location: " . $_SESSION['lastVisited']);
exit();
}
// Fallback
if ($_SESSION['role'] === 'admin') {
header("Location: /GymBoost.com/admin/index.php");
} else {
header("Location: /GymBoost.com/user/index.php?page=dashboard");
}
exit();
}
$page = "home";
if (isset($_GET['page'])) {
$page = $_GET['page'];
switch ($page) {
case "home":
$page = "home";
break;
case "faqs":
$page = "faqs";
break;
case "membership-plans":
$page = "membership-plans";
break;
default:
header("Location: ?page=home");
break;
}
} else {
header("Location: ?page=home");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GymBoost</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4Q6Gf2aSP4eDXB8Miphtr37CMZZQ5oXLH2yaXMJ2w8e2ZtHTl7GptT4jmndRuHDT" crossorigin="anonymous" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="icon" type="image/png" href="assets/img/logo/officialLogo.png">
<link href="assets/css/styles.css" rel="stylesheet" />
<link href="assets/css/web.css" rel="stylesheet" />
</head>
<body>
<!-- Navbar -->
<div class="container-fluid px-0 fixed-top">
<nav class="navbar navbar-expand-lg px-3 custom-navbar">
<!-- Logo -->
<a class="navbar-brand" href="?page=home">
<img src="./assets/img/logo/officialLogo.png" width="40" height="40" alt="Logo">
</a>
<!-- Navbar Toggler (for mobile view) -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navigation Links -->
<div class="collapse navbar-collapse justify-content-center" id="navbarNav">
<ul class="navbar-nav text-start" style="font-weight:bold;">
<li class="nav-item py-1 mx-2">
<a class="nav-link px-4 py-1 <?php if ($page == 'home')
echo 'active'; ?>" href="?page=home">HOME</a>
</li>
<li class="nav-item py-1 mx-2">
<a class="nav-link px-4 py-1 <?php if ($page == 'membership-plans')
echo 'active'; ?>" href="?page=membership-plans">MEMBERSHIP PLANS</a>
</li>
<li class="nav-item py-1 mx-2">
<a class="nav-link px-4 py-1 <?php if ($page == 'faqs')
echo 'active'; ?>" href="?page=faqs">FAQs</a>
</li>
<li class="nav-item d-lg-none py-1 mx-2">
<a class="btn btn-login mt-2" href="login.php">LOGIN</a>
</li>
</ul>
</div>
<!-- Login Button -->
<div class="d-none d-lg-flex align-items-center ms-auto">
<a class="btn btn-login ms-3" href="login.php">LOGIN</a>
</div>
</nav>
</div>
<!-- Pages -->
<?php include("web/" . $page . ".php"); ?>
<!-- Footer -->
<footer class="footer py-5 text-white">
<div class="container">
<div class="row align-items-center mb-2">
<div class="col-12 col-md-3 text-center text-md-start">
<img src="assets/img/logo/officialLogo.png" class="logo" height="40">
</div>
</div>
<hr class="text-white my-4">
<div class="row mb-3 text-center text-md-start">
<div class="col-12 col-md-4 mb-1">
<ul class="list-unstyled mb-1">
<li class="subheading"><a href="" class="text-white text-decoration-none text-uppercase">GYMBOOST</a></li>
</ul>
<ul class="list-unstyled">
<li><a href="?page=home#about" class="text-white text-decoration-none">About Us</a></li>
<li><a href="?page=home#coaches" class="text-white text-decoration-none">Coaches</a></li>
<li><a href="?page=membership-plans" class="text-white text-decoration-none">Membership</a></li>
<li><a href="?page=membership-plans#plans" class="text-white text-decoration-none">Plans</a></li>
<li><a href="?page=faqs" class="text-white text-decoration-none">FAQs</a></li>
</ul>
</div>
<div class="col-12 col-md-4 mb-1">
<ul class="list-unstyled mb-1">
<li class="subheading"><a href="" class="text-white text-decoration-none text-uppercase">CONTACT US</a></li>
</ul>
<ul class="list-unstyled">
<li class="me-3 mb-1">
<a href="https://www.facebook.com/hardmusclebodyfitnessgym" class="text-white" target="_blank">
<i class="bi bi-facebook me-2"></i>Hard Body Fitness Gym
</a>
</li>
<li class="me-3 mb-1">
<a href="https://mail.google.com/mail/?view=cm&fs=1&to=hardbodyfitnessgym13@gmail.com" class="text-white" target="_blank">
<i class="bi bi-envelope-fill me-2"></i>hardbodyfitnessgym13@gmail.com
</a>
</li>
<ul class="list-unstyled">
<li>
<i class="bi bi-telephone-fill mb-1 me-2"></i>
<a href="tel:+639279904177" class="text-white">
+63 927 990 4177
</a>
</li>
</ul>
</ul>
</div>
<div class="col-12 col-md-4 text-center text-md-start">
<ul class="list-unstyled mb-1">
<li class="subheading "><a href="" class="text-white text-uppercase">ADDRESS</a></li>
</ul>
<ul class="list-unstyled">
<li>
<i class="bi bi-building-fill me-2"></i>
<a href="https://www.google.com/maps?q=Purok+1,+Maharlika+Highway,+Brgy.+San+Rafael,+Sto.+Tomas+City,+Batangas"
target="_blank"
class="text-white">
Purok 3, Maharlika Highway, Brgy. San Rafael, Sto. Tomas City, Batangas
</a>
</li>
</ul>
</div>
</div>
<hr class="text-white my-4">
<div class="row align-items-center">
<div class="col-12 text-center text-md-start mb-3 mb-md-0">
<p class="mb-0">© 2026 GymBoost. All rights reserved.</p>
</div>
</div>
</div>
</footer>
<script>
document.querySelectorAll('.navbar-nav .nav-link').forEach(link => {
link.addEventListener('click', () => {
document.querySelectorAll('.navbar-nav .nav-link').forEach(el => el.classList.remove('active'));
link.classList.add('active');
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.bundle.min.js"
integrity="sha384-j1CDi7MgGQ12Z7Qab0qlWQ/Qqz24Gc6BM0thvEMVjHnfYGF0rmFCozFSxQBxwHKO"
crossorigin="anonymous"></script>
</body>
</html>