-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar-menu.php
83 lines (82 loc) · 4.24 KB
/
sidebar-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
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="."><img src="assets/images/icon/sipenyulak.png" alt="logo"></a>
</div>
<div class="sub-logo">
Sistem Informasi Penyuluhan Pajak
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<nav>
<ul class="metismenu" id="menu">
<li class="active">
<li class="active"><a href="dashboard.php"><i class="ti-dashboard"></i><span>Dashboard</span></a></li>
</li>
<?php if ($_SESSION['role'] == 8 || $_SESSION['role'] == 9 || $_SESSION['role'] == 1 || $_SESSION['role'] == 2 || $_SESSION['role'] == 3) {
echo '<li>';
echo '<a href="javascript:void(0)" aria-expanded="true"><i class="ti-pie-chart"></i><span>Perencanaan</span></a>';
echo '<ul class="collapse">';
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 9) {
echo '<li><a id="sidebar-perencanaan" href="javascript:void(0)">Perencanaan</a></li>';
};
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 1 || $_SESSION['role'] == 2 || $_SESSION['role'] == 3) {
echo '<li><a id="sidebar-setuju" href="javascript:void(0)">Persetujuan</a></li>';
}
echo '</ul>';
echo '</li>';
}
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 9 || $_SESSION['role'] == 4 ) {
echo '<li>';
echo '<a href="javascript:void(0)"><i class="ti-palette"></i><span>Pelaksanaan</span></a>';
echo '<ul class="collapse">';
echo '<li><a href="javascript:void(0)" id="sidebar-pelaksanaan">Pelaksanaan</a></li>';
echo '<li><a href="javascript:void(0)" id="sidebar-undangan">Undangan Peserta</a></li>';
echo '</ul>';
echo '</li>';
}
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 9 || $_SESSION['role'] == 3 || $_SESSION['role'] == 4) {
echo '<li>';
echo '<a href="javascript:void(0)" aria-expanded="true"><i class="ti-slice"></i><span>Evaluasi</span></a>';
echo '<ul class="collapse">';
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 9 || $_SESSION['role'] == 4) {
echo '<li><a href="javascript:void(0)" id="sidebar-laporan">Laporan</a></li>';
}
if ($_SESSION['role'] == 8 || $_SESSION['role'] == 3) {
echo '<li><a href="javascript:void(0)" id="sidebar-setujulap">Persetujuan Laporan</a></li>';
}
echo '</ul>';
echo '</li>';
}
?>
<li>
<a href="javascript:void(0)"><i class="ti-map-alt"></i><span>Monitoring</span></a>
<ul class="collapse">
<li><a href="javascript:void(0)" id="sidebar-monpenyul">Penyuluhan</a></li>
<li><a href="javascript:void(0)" id="sidebar-monpatuh">Kepatuhan & Pembayaran</a></li>
</ul>
</li>
<?php if ($_SESSION['role'] == 8) { ?>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-layers-alt"></i><span>Menu SuperAdmin</span></a>
<ul class="collapse">
<li><a href="javascript:void(0)" id=sidebar-role>Role</a></li>
</ul>
</li>
<?php
}
?>
<li>
</ul>
</nav>
</div>
</div>
</div>
<style>
.sub-logo {
color : #fff;
font-size : 12px;
font-family : 'Poppins', sans-serif;
}
</style>