-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
52 lines (46 loc) · 3.03 KB
/
header.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/Banner-Heading-Image.css">
<link rel="stylesheet" href="assets/css/Navbar-Right-Links-Dark.css">
<link rel="stylesheet" href="assets/css/styles.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar navbar-light navbar-expand-md py-3">
<div class="container"><a class="navbar-brand d-flex align-items-center" href="landing.php"><img src="assets/img/logomsl.png" style="width: 45px;"></path>
</svg></span><span>MySimpleLife</span></a><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navcol-3"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navcol-3">
<ul class="navbar-nav mx-auto">
<a class="btn btn-primary" role="button" style="background: #61b4cd; border-color: #61b4cd;margin: 4px" href="notes.php">Notes</a>
<a class="btn btn-primary" role="button" style="background: #61b4cd; border-color: #61b4cd;margin: 4px" href="shopping.php">Shopping</a>
<a class="btn btn-primary" role="button" style="background: #61b4cd; border-color: #61b4cd;margin: 4px" href="tasks.php">Tasks</a>
<a class="btn btn-primary" role="button" style="background: #61b4cd; border-color: #61b4cd;margin: 4px" href="food.php">Food</a>
</li>
</ul>
<?php if($_SESSION['user_type'] == 'admin'): ?>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" href="#" role="button" style="background: var(--bs-green);border-color: var(--bs-green);margin: 14px;" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
AdminCP</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<li><a class="dropdown-item" href="notes_admin.php">Manage Notes</a></li>
<li><a class="dropdown-item" href="shopping_admin.php">Manage Shopping</a></li>
<li><a class="dropdown-item" href="tasks_admin.php">Manage Tasks</a></li>
<li><a class="dropdown-item" href="food_admin.php">Manage Food</a></li>
<li><a class="dropdown-item" href="adduser.php">Add User</a></li>
</div>
</div>
</ul>
<?php endif;?>
<a class="btn btn-primary" role="button" style="background: var(--bs-red);border-color: var(--bs-red);" href="logout.php">Logout</a></ul>
</div>
</nav>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>