<?php
ob_start();
session_start();
// if($_SESSION['status']!="login"){
// cek apakah yang mengakses halaman ini sudah login
if($_SESSION['level']==""){
    header("location:../index.php?pesan=belum_login");
}
include_once "../library/inc.connection.php";
include_once "../library/inc.library.php";
?>

<?php include '../header.php'; ?>
<body>
    <div id="preloader">
        <div class="loader"></div>
    </div>
    <!-- preloader area end -->

    <!-- page container area start -->
    <div class="page-container">

        <!-- sidebar menu area start -->
        <?php include '../file/menu.php'; ?>
        <!-- sidebar menu area end -->

        <!-- main content area start -->
        <div class="main-content">
            <!-- header area start -->
         <!--    <div class="header-area">
            <div class="row align-items-center"> -->
                <!-- nav and search button -->
               <!--      <div class="col-md-6 col-sm-8 clearfix">
                        <div class="nav-btn pull-left">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                    </div> -->
                    <!-- profile info & task notification -->
          <!--           <div class="col-md-6 col-sm-4 clearfix">
                        <ul class="notification-area pull-right">
                            <li id="full-view"><i class="ti-fullscreen"></i></li>
                            <li id="full-view-exit"><i class="ti-zoom-out"></i></li>
                        </ul>
                    </div>
                </div>
            </div> -->
            <!-- header area end -->
            
            <!-- page title area start -->
            <div class="page-title-area">
                <div class="row align-items-center">
                  <div class="col-md-4 col-sm-4 clearfix">
                    <div class="nav-btn pull-left">
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </div>
                <div class="col-sm-8 clearfix">
                    <div class="user-profile pull-right">
                        <img class="avatar user-thumb" src="../assets/images/author/avatar.png" alt="avatar">
                        <h4 class="user-name dropdown-toggle" data-toggle="dropdown"><?php echo $_SESSION['nama']; ?>
                            <!-- <i class="fa fa-angle-down"></i> -->
                        </h4>
                        <!-- <div class="dropdown-menu">
                            <a class="dropdown-item" href="#">Settings</a>
                            <a class="dropdown-item" href="#">Log Out</a>
                        </div> -->
                    </div>
                </div>
            </div>
        </div>
        <!-- page title area end -->

        <div class="main-content-inner">
            <!-- alert srea start -->
            <div class="alert-area">
                <div class="row">
                 <?php include '../file/load_file.php'; ?>
             </div>
         </div>
     </div>
 </div>
 <!-- main content area end -->

 <!-- footer area start-->
 <?php include '../footer.php'; ?>
 <!-- footer area end-->
</div>
<!-- page container area end -->

<?php include '../js.php'; ?>
<?php ob_end_flush(); ?>
</body>
</html>
