-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
76 lines (74 loc) · 3.84 KB
/
index.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
<?php
session_start();
require_once("src/general/security.php");
//check the authentication
if(!Security::userAuthentication(logInCheck: FALSE, acceptingUserRoles:['user'])){ //cannot access (NOT operator)
Security::redirectUserBase();
}
else{
?>
<!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>Sports Complex</title>
<link rel="stylesheet" href="./styles/general/styles.css">
<link rel="stylesheet" href="./styles/general/index.css">
<link rel="stylesheet" href="./styles/general/notification.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
</head>
<body>
<?php
require_once("./public/general/header.php");
?>
<main>
<div id="system-notify"></div>
<div class="search">
<input type="checkbox" id="searchCheck">
<div class="search-box">
<form action="/public/general/search_results.php" method="get" id="searchBar" style="min-width:80%">
<input class="search-input" type="text" name="sportName" placeholder="Search a Sport" pattern="[a-zA-Z]+" title="Enter The Name Correctly" required>
<label for="searchCheck" class="search-icon">
<i class="fa-solid fa-magnifying-glass" ></i>
</label>
</form>
</div>
</div>
<div class="slider">
<div class="slides">
<input type="radio" name="radio-btn" id="radio1">
<input type="radio" name="radio-btn" id="radio2">
<div class="slide first">
<img class="landing-img" id="landing-img1" src="/styles/landing_res.webp">
<button id="reservationBtn" onclick="window.location.href='/public/general/our_sports.php'">Make a Reservation Now!</button>
</div>
<div class="slide">
<img class="landing-img" id="landing-img2" src="/styles/landing_coach.webp">
<button id="coachBtn" onclick="window.location.href='/public/general/reg_coaches.php'">Choose Your Trainer!</button>
</div>
<div class="navigation-auto">
<div class="auto-btn1"></div>
<div class="auto-btn2"></div>
</div>
</div>
<div class="navigation-manual">
<label for="radio1" class="manual-btn active"></label>
<label for="radio2" class="manual-btn"></label>
</div>
</div>
</main>
<?php
require_once("./public/general/footer.php");
?>
</body>
<script src="/js/general/search_validation.js"></script>
<script src="/js/general/index_animation.js"></script>
<script src="/js/user/account_links.js"></script>
<script src="/js/general/system_maintenance_notify.js"></script>
<script type="module" src="/js/general/notifications.js"></script>
</html>
<?php
}
?>