<?php

$page = @$_GET['page'];

if ($page=="dashboard") {
  $dashboardaktif ='active';
}
if ($page=="refferal") {
  $refferalaktif ='active';
}
if ($page=="kanca") {
  $refferalaktif ='active';
}
if ($page=="point") {
  $pointaktif ='active';
}
if ($page=="BOPurwodadi") {
  $menuopen1 ='menu-open';
  $menuaktif1 ='active';
  $upsaktif ='active';
}
if ($page=="BODemak") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $cctvaktif ='active';
}
if ($page=="BOKudus") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $dvraktif ='active';
}
if ($page=="BOJepara") {
  $menuopen1 ='menu-open';
 $menuaktif1 ='active';
  $coveraktif ='active';
}
if ($page=="ac") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $acaktif ='active';
}
if ($page=="tempatsampah") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $tempatsampahaktif ='active';
}
if ($page=="stiker") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $stikeraktif ='active';
}
if ($page=="signage") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $signageaktif ='active';
}
if ($page=="pylonatm") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $pylonatmaktif ='active';
}
if ($page=="kerangkeng") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $krangkengaktif ='active';
}
if ($page=="Camera1") {
  $menuopen1 ='menu-open';
$menuaktif1 ='active';
  $krangkengaktif ='active';
}

if ($page=="x") {
  $masteraktif2 ='';
  $masteraktif2 ='';
  $developeraktif ='';
}
if ($page=="kanca") {
  $masteraktif3 ='menu-open';
  $masteraktif3 ='';
  $kancaaktif ='';
}
 ?>



<a href="?page=dashboard" class="brand-link">
  <img src="assets/dist/img/SiMonLogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
       style="opacity: .8">
  <span class="brand-text font-weight-light">SiMon</span>
</a>

<!-- Sidebar -->
<div class="sidebar">
  <!-- Sidebar user panel (optional) -->

  <!-- Sidebar Menu -->
  <nav class="mt-2">
    <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
      <!-- Add icons to the links using the .nav-icon class
           with font-awesome or any other icon font library -->
           

           <li class="nav-item">
             <a href="?page=dashboard" class="nav-link <?php echo $dashboardaktif ?>">
               <i class="nav-icon fas fa-tachometer-alt"></i>
               <p>DASHBOARD</p>
             </a>
           </li>
          
           <li class="nav-header">MENU</li>
            <li class="nav-item <?php echo $menuopen1 ?>">
            <a href="#" class="nav-link <?php echo $$menuaktif1 ?>">
              <i class="nav-icon fab fa-cc-mastercard"></i>
              <p>
                Mikro
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="?page=BODemak" class="nav-link <?php echo $BODemak ?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>BO Demak</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?page=BOKudus" class="nav-link <?php echo $BOKudus ?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>BO Kudus</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?page=BOJepara" class="nav-link <?php echo $BOJepara ?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>BO Jepara</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?page=BOPurwodadi" class="nav-link <?php echo $BOPurwodadi ?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>BO Purwodadi</p>
                </a>
              </li>
          </li>  
    </ul>
  </nav>

  <!-- /.sidebar-menu -->
</div>
