-
Notifications
You must be signed in to change notification settings - Fork 0
/
department_head.php
114 lines (105 loc) · 5.45 KB
/
department_head.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
session_start();
if($_SERVER['REQUEST_METHOD']==='POST' and isset($_POST['logout'])){
unset($_SESSION['head']);
session_destroy();
header('location:login.php');
}
if(isset($_SESSION['head'])==false){
header('location:login.php');
}
if(isset($_SESSION['head'])){
?>
<!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">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />-->
<link rel="stylesheet" href="css/fontawesome-free-6.2.1-web/css/fontawesome.min.css">
<link rel="stylesheet" href="css/fontawesome-free-6.2.1-web/css/fontawesome.css">
<link rel="stylesheet" href="css/fontawesome-free-6.2.1-web/css/solid.css">
<link rel="stylesheet" href="css/fontawesome-free-6.2.1-web/css/solid.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/mycss.css">
<title>Department Head</title>
</head>
<body>
<div class="d-flex" id="wrapper">
<!--Sidebar start here-->
<div class="bg-white" id="sidebar-wrapper">
<div class="sidebar-heading text-center py-4 primary-text fs-4 fw-bold text-uppercase border-bottom">
<i class="fa-solid fa-user"></i>Department Head
</div>
<div class="list-group list-group-flush my-3 secondary-bg" style="height:100%;">
<a href="#" class="list-group-item list-group-item-action bg-transparent second-text active">
<i class="fas fa-tachometer-alt me-2"></i>Dashboard
</a>
<a href="manage_request/view.php" target="ifr" class="list-group-item list-group-item-action bg-transparent second-text fw-bold">
<i class="fas fa-tachometer-alt me-2"></i>Manage request
</a>
<a href="staffop/view.php" target="ifr" class="list-group-item list-group-item-action bg-transparent second-text fw-bold">
<i class="fas fa-tachometer-alt me-2"></i>View Item
</a>
<a href="dep'top/view_disposal.php" target="ifr" class="list-group-item list-group-item-action bg-transparent second-text fw-bold">
<i class="fas fa-tachometer-alt me-2"></i>Manage disposal
</a>
<form action="" method="post">
<button name="logout" class="list-group-item list-group-item-action bg-transparent text-danger fw-bold">
<i class="fas fa-power-off me-2"></i>Log out
</button>
</form>
</div>
</div>
<!--Sidebar end here-->
<div id="page-content-wrapper" class="second-bg ">
<nav class="navbar navbar-expand-lg navbar-light bg-transparent py-4 px-4">
<div class="d-flex align-items-center">
<i class="fas fa-align-left primary-text fs-4 me-3" id="menu-toggle"></i>
<h2 class="fs-2 m-0">Dashboard</h2>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="#navbarSupportedContent" aria-expanded="false" aria-label="toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle second-text fw-bold" href="#" id="navbarDropdown"
role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-user me-2"></i><?php echo $_SESSION['head'];?>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li>
<form action="" method="post">
<button type="submit" class="dropdown-item" name="logout">Logout</button>
</form>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="container-fluid px-4 blue">
<iframe src="" width="100%" height="100%" name="ifr">
</iframe>
</div>
</div>
</div>
<script src="js/bootstrap.js"></script>
<script>
var el = document.getElementById("wrapper");
var toggleButton=document.getElementById("menu-toggle");
toggleButton.onclick=function(){
el.classList.toggle("toggled");
};
</script>
</body>
</html>
<?php }?>