<?php 
	error_reporting(0);
	include "config/session.php"?>
<?php 
	ob_start();
	include"config/config-url.php";
	include"config/function.php";
?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Sistem</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link href="<?php echo $base?>bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $base?>font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $base?>plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $base?>dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $base?>dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
    
	<script src="<?php echo $base?>plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <script src="<?php echo $base?>bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src='<?php echo $base?>plugins/fastclick/fastclick.min.js'></script>
    <script src="<?php echo $base?>dist/js/app.min.js" type="text/javascript"></script>
    
    <script src="<?php echo $base?>dist/js/demo.js" type="text/javascript"></script>
  </head>
  <body class="skin-blue sidebar-mini">
    <div class="wrapper">
      <?php include "include/header.php"?>
      <aside class="main-sidebar">
        <section class="sidebar">
          <div class="user-panel">
            <div class="pull-left image">
              <?php if ($_SESSION['foto'] == ''){?>	
                <img src="<?php echo $base?>dist/img/user2-160x160.png" class="img-circle" alt="User Image" />
              <?php }else{?>  
            	<img src="<?php echo $base?>img/<?php echo $_SESSION['foto'];?>" class="img-circle" alt="User Image" width="50"/>
			  <?php } ?>
            </div>
            <div class="pull-left info">
              <p><?php echo $_SESSION["NamaOperator"]; ?></p>
              <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
          </div>
          <?php include "include/menu-utama.php"?>
        </section>
      </aside>
      <div class="content-wrapper">
       	<?php
			include $content;
		?>
      </div>
		<?php include "include/footer.php"?>
        <!-- Control Sidebar -->      
      <aside class="control-sidebar control-sidebar-dark">                
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
          <li  class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
          <!-- Home tab content -->
          <div class="tab-pane active" id="control-sidebar-home-tab">
            <h3 class="control-sidebar-heading">Daftar setting</h3>
            <ul class='control-sidebar-menu'>
              <li>
                <a href='<?php echo $base?>setting-laporan'>
                  <i class="menu-icon fa fa-file-code-o bg-green"></i>
                  <div class="menu-info">
                    <h4 class="control-sidebar-subheading">Setting Laporan</h4>
                    <p>Atur nama perusahaan, alamat, dan footer</p>
                  </div>
                </a>
              </li>
            </ul><!-- /.control-sidebar-menu -->
          </div><!-- /.tab-pane -->
          <!-- Stats tab content -->
        </div>
      </aside><!-- /.control-sidebar -->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class='control-sidebar-bg'></div>
    </div>
  </body>
</html>