<?php
$query="select * from staff where staff_id='".$_SESSION['user_id']."'";
$result=$db->execute($query);
$stfname=$result->fetch_assoc();
$_SESSION['strol']=$stfname['role_id'];
?>
<aside id="sidebar_left">
    <div class="user-info">
      <div class="media"> <a class="pull-left" href="#">
        <div class="media-object border border-purple br64 bw2 p2"> <img class="br64" src="../img/avatars/login.png" alt="..." /> </div>
        </a>
        <div class="mobile-link"> <span class="glyphicons glyphicons-show_big_thumbnails"></span> </div>
        <div class="media-body">
          <h5 class="media-heading mt5 mbn fw700 cursor"><?php echo $stfname['staff_name']?><span class="caret ml5"></span></h5>
          <div class="media-links fs11"><a href="#">Menu</a><i class="fa fa-circle text-muted fs3 p8 va-m"></i><a href="../controler/logout.php">Sign Out</a></div>
        </div>
      </div>
    </div>
    <div class="user-divider"></div>
    <div class="user-menu">
      <div class="row text-center mb15">
        <div class="col-xs-4"> <a href="dashboard.php"> <span class="glyphicons glyphicons-home fs22 text-blue2"></span>
          <h5 class="fs11">Home</h5>
          </a> </div>
        <div class="col-xs-4"> <a href="dashboard.php"> <span class="glyphicons glyphicons-inbox fs22 text-orange2"></span>
          <h5 class="fs11">Inbox</h5>
          </a> </div>
        <div class="col-xs-4"> <a href="dashboard.php"> <span class="glyphicons glyphicons-bell fs22 text-purple2"></span>
          <h5 class="fs11">Data</h5>
          </a> </div>
      </div>
      <div class="row text-center">
        <div class="col-xs-4 text-center"> <a href="dashboard.php"> <span class="glyphicons glyphicons-imac fs22 text-grey3"></span>
          <h5 class="fs11">Views</h5>
          </a> </div>
        <div class="col-xs-4"> <a href="dashboard.php"> <span class="glyphicons glyphicons-settings fs22 text-green2"></span>
          <h5 class="fs11">Settings</h5>
          </a> </div>
        <div class="col-xs-4"> <a href="dashboard.php"> <span class="glyphicons glyphicons-restart fs22 text-light6"></span>
          <h5 class="fs11">Images</h5>
          </a> </div>
      </div>
    </div>
    <div class="sidebar-menu">
      <ul class="nav">
      <li class="active"> <a href="dashboard.php" class="ajax-disable"><span class="glyphicons glyphicons-home"></span><span class="sidebar-title">Dashboard</span></a> </li>
      <li> <a href="./role_add.php" class="ajax-disable"><span class="glyphicons glyphicons-old_man"></span><span class="sidebar-title">Role</span></a> </li>
      <li> <a href="./department_add.php" class="ajax-disable"><span class="glyphicons glyphicons-iphone_exchange"></span><span class="sidebar-title">Department</span></a> </li>
      <li> <a href="./clients_add.php" class="ajax-disable"><span class="glyphicons glyphicons-parents"></span><span class="sidebar-title">Clients</span></a> </li>
      <li> <a href="./vendor_add.php" class="ajax-disable"><span class="glyphicons glyphicons-cargo"></span><span class="sidebar-title">Vendor</span></a> </li>
      <li> <a href="./staff_add.php" class="ajax-disable"><span class="glyphicons glyphicons-user"></span><span class="sidebar-title">Staff</span></a> </li>
      <li> <a href="./product_add.php" class="ajax-disable"><span class="fa fa-barcode"></span><span class="sidebar-title">Products</span></a> </li>
      <li> <a href="./machines_add.php" class="ajax-disable"><span class="fa fa-cogs"></span><span class="sidebar-title">Add Machines</span></a> </li>
      <li> <a href="./category_add.php" class="ajax-disable"><span class="fa fa-list"></span><span class="sidebar-title">Add Category</span></a> </li>
      <li> <a href="./view_stock.php" class="ajax-disable"><span class="fa fa-archive"></span><span class="sidebar-title">Stock</span></a> </li>
      <li> <a href="./purchase_page.php" class="ajax-disable"><span class="fa fa-shopping-cart"></span><span class="sidebar-title">Purchase</span></a> </li>
      <li> <a href="./estimate.php" class="ajax-disable"><span class="fa fa-pencil-square-o"></span><span class="sidebar-title">Estimate 1</span></a> </li>
      
      <!--<li> <a href="./estimatetwo.php" class="ajax-disable"><span class="fa fa-pencil-square-o"></span><span class="sidebar-title">Estimate 2</span></a> </li>
      <li> <a href="./estimatethree.php" class="ajax-disable"><span class="fa fa-pencil-square-o"></span><span class="sidebar-title">Estimate 3</span></a> </li>-->
      
      <li> <a href="./reports.php" class="ajax-disable"><span class="fa fa-book"></span><span class="sidebar-title">Reports</span></a> </li>
      <li> <a href="./settings.php" class="ajax-disable"><span class="fa fa-cog"></span><span class="sidebar-title">Settings</span></a> </li>
        
        
        
        <!--<li> <a class="accordion-toggle menu-open" href="#resources"><span class="glyphicons glyphicons-settings"></span><span class="sidebar-title">Resources</span><span class="caret"></span></a>
          <ul id="resources" class="nav sub-nav">
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-book"></span> Documentation </a></li>
            <li class="divider"></li>
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-power"></span> Login Page</a></li>
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-lock"></span> Screen Lock</a></li>
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-road"></span> Coming Soon</a></li>
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-circle_remove"></span> 404 Page</a></li>
            <li><a class="ajax-disable" href="#"><span class="glyphicons glyphicons-circle_exclamation_mark"></span> 500 Page</a></li>
          </ul>
        </li>-->
                
        
        
      </ul>
    </div>
  </aside>