-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtop.inc.php
73 lines (73 loc) · 3.31 KB
/
top.inc.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
<?php
require('db.inc.php');
if(!isset($_SESSION['ROLE'])){
header('location:login.php');
die();
}
?>
<!doctype html>
<html class="no-js" lang="">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dashboard Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/pe-icon-7-filled.css">
<link rel="stylesheet" href="assets/css/flag-icon.min.css">
<link rel="stylesheet" href="assets/css/cs-skin-elastic.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800' rel='stylesheet' type='text/css'>
</head>
<body>
<aside id="left-panel" class="left-panel">
<nav class="navbar navbar-expand-sm navbar-default">
<div id="main-menu" class="main-menu collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="menu-title">Menu</li>
<?php if($_SESSION['ROLE']==1){ ?>
<li class="menu-item-has-children dropdown">
<a href="index.php" > Department Master</a>
</li>
<li class="menu-item-has-children dropdown">
<a href="leave_type.php" > Leave Type Master</a>
</li>
<li class="menu-item-has-children dropdown">
<a href="employee.php" > Employee Master</a>
</li>
<?php } else { ?>
<li class="menu-item-has-children dropdown">
<a href="add_employee.php?id=<?php echo $_SESSION['USER_ID']?>" > Profile</a>
</li>
<?php } ?>
<li class="menu-item-has-children dropdown">
<a href="leave.php" > Leave</a>
</li>
</ul>
</div>
</nav>
</aside>
<div id="right-panel" class="right-panel">
<header id="header" class="header">
<div class="top-left">
<div class="navbar-header">
<a class="navbar-brand" href="index.php"><img src="images/logo.png" alt="Logo"></a>
<a class="navbar-brand hidden" href="index.php"><img src="images/logo2.png" alt="Logo"></a>
<a id="menuToggle" class="menutoggle"><i class="fa fa-bars"></i></a>
</div>
</div>
<div class="top-right">
<div class="header-menu">
<div class="user-area dropdown float-right">
<a href="#" class="dropdown-toggle active" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Welcome <?php echo $_SESSION['USER_NAME']?></a>
<div class="user-menu dropdown-menu">
<a class="nav-link" href="logout.php"><i class="fa fa-power-off"></i>Logout</a>
</div>
</div>
</div>
</div>
</header>