-
Notifications
You must be signed in to change notification settings - Fork 0
/
left_sidebar.php
37 lines (32 loc) · 2.05 KB
/
left_sidebar.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
<div class="container-fluid">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>User Management</h4>
<ul class="nav nav-pills nav-stacked">
<?php
if($core->activeAuth == true){
if($core->is_loggedIn()){ ;?>
<li class="<?= ($core->currentPage == 'dashboard.php') ? 'active' : '' ;?>"><a href="dashboard.php">Dashboard</a></li>
<li class="<?= ($core->currentPage == 'user.php') ? 'active' : '' ;?>"><a href="user.php">User Datatable VIA JS</a></li>
<li class="<?= ($core->currentPage == 'user_datatable.php') ? 'active' : '' ;?>"><a href="user_datatable.php">User Datatable Via PHP</a></li>
<li class="<?= ($core->currentPage == 'role.php') ? 'active' : '' ;?>"><a href="role.php">Role</a></li>
<li><a href="?signout=true">Sign Out</a></li>
<?php }else{ ?>
<li class="<?= ($core->currentPage == 'login.php') ? 'active' : '' ;?>"><a href="login.php">Sign In</a></li>
<li class="<?= ($core->currentPage == 'add_user.php') ? 'active' : '' ;?>"><a href="add_user.php">Sign Up</a></li>
<?php }
}else{
?>
<li class="<?= ($core->currentPage == 'dashboard.php') ? 'active' : '' ;?>"><a href="dashboard.php">Dashboard</a></li>
<li class="<?= ($core->currentPage == 'user.php') ? 'active' : '' ;?>"><a href="user.php">User Datatable VIA JS</a></li>
<li class="<?= ($core->currentPage == 'user_datatable.php') ? 'active' : '' ;?>"><a href="user_datatable.php">User Datatable Via PHP</a></li>
<li class="<?= ($core->currentPage == 'role.php') ? 'active' : '' ;?>"><a href="role.php">Role</a></li>
<li><a href="?signout=true">Sign Out</a></li>
<li class="<?= ($core->currentPage == 'login.php') ? 'active' : '' ;?>"><a href="login.php">Sign In</a></li>
<li class="<?= ($core->currentPage == 'add_user.php') ? 'active' : '' ;?>"><a href="add_user.php">Sign Up</a></li>
<?php
}
?>
</ul><br>
</div>
<div class="col-sm-9">