-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
94 lines (93 loc) · 3.55 KB
/
menu.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rasai - Authentic Sri Lankan Cuisine</title>
<link rel="icon" href="/images/FaviconImage.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="css/footer.css">
</head>
<body>
<header class="site-header">
<img src="images/R_white_transparentbg.png" alt="Rasai Logo" class="logo">
<div class="header-title">Menu</div>
<div class="menu-toggle" id="menu-toggle">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</header>
<nav class="main-nav" id="main-nav">
<ul class="nav-list">
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="menu.php">Menu</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="about.php">About</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="contact.php">Contact</a></li>
<hr class="space">
<li class="nav-title">Rasai Members</li>
<?php
if (isset($_SESSION['username'])) {
// Display "My Account" link and"Logout" link when there is a stored username in the session
if ($_SESSION['username'] == "admin") {
// If the username is "admin", redirect to admin.php
?>
<li class="nav-item"><a class="nav-link" href="admin.php">My Account</a></li>
<?php
} else {
// For other users, continue to user.php
?>
<li class="nav-item"><a class="nav-link" href="user.php">My Account</a></li>
<?php
}
?>
<li class="nav-item" id="user-logout-btn"><a class="nav-link" href="index.php">Logout</a></li>
<?php
} else {
// Display "Login" and "Register" links only when there is no stored username in the session
?>
<li class="nav-item"><a class="nav-link" href="login.php">Login</a></li>
<li class="nav-item"><a class="nav-link" href="registration.php">Register</a></li>
<?php
}
?>
</ul>
</nav>
<main>
<div class="centered-image">
<img src="images/MenuImages-removebg-preview.png" alt="Featured Dish" loading="lazy">
</div>
<div class="box-container" id="menu-items-container"></div>
</main>
<footer class="site-footer">
<div class="container">
<div>
<div class="footer-bottom">
© 2024, Rasai NZ ||
<a href="privacypolicy.php" class="footer-button">Privacy Policy</a>
<a href="termsofservice.php" class="footer-button">Terms of Service</a>
</div>
</div>
<div class="footer-social">
<div class="social-links">
<a href="https://facebook.com" target="_blank" class="fa fa-facebook"></a>
<a href="https://instagram.com" target="_blank" class="fa fa-instagram"></a>
<a href="https://twitter.com" target="_blank" class="fa fa-twitter"></a>
</div>
</div>
</div>
</footer>
</body>
<script src="js/rasi.js"></script>
<script src="js/menuphoto.js"></script>
<script src="js/navigationham.js"></script>
<script src="js/menu.js"></script>
</html>