<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Administrator</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="index, follow">
<meta http-equiv="Copyright" content="Athip M. Syafii">
<meta name="author" content="Athip M. Syafii">
<meta http-equiv="imagetoolbar" content="no">
<meta name="language" content="Indonesia">
<meta name="revisit-after" content="7">
<meta name="webcrawlers" content="all">
<meta name="rating" content="general">
<meta name="spiders" content="all">

<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asset/css/layout.css">
<link href="<?php echo base_url();?>asset/css/fonts/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asset/css/themes/pepper-grinder/easyui.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asset/css/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asset/css/smoothness/jquery-ui-1.7.2.custom.css">

<script type="text/javascript" src="<?php echo base_url();?>asset/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>asset/js/clock.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>asset/js/jquery.easyui.min.js"></script>

<!--datepicker-->
<script type="text/javascript" src="<?php echo base_url(); ?>asset/js/ui.core.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>asset/js/ui.datepicker-id.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>asset/js/ui.datepicker.js"></script>

<!--Polling-->
<script type="text/javascript" src="<?php echo base_url();?>asset/js/highcharts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>asset/js/exporting.js"></script>

<!-- notifikasi -->
<script type="text/javascript" src="<?php echo base_url();?>asset/js/notifikasi.js"></script>

<script type="text/javascript">
$(function() {
	$("#dataTable tr:even").addClass("stripe1");
	$("#dataTable tr:odd").addClass("stripe2");
	$("#dataTable tr").hover(
		function() {
			$(this).toggleClass("highlight");
		},
		function() {
			$(this).toggleClass("highlight");
		}
	);
});
</script>

<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<body onLoad="goforit()">
<div class="header" style="height: 70px; background: #DCD1AB; padding: 2px; margin: 0; color: #D0C397; text-shadow: 0px 0px #E3D69E;">	
		<div style="float:right; padding:0px; margin:0px;">
        <img src='<?php echo base_url();?>asset/images/logo_depan.png' style="padding:0; margin:0;" width="222" height="70">
        </div>
        <div class="judul" style="float:left; line-height:3px; margin-top:0px; padding:2px 5px;">
        <h2 class="style1" style="font:Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', serif"><?php echo $instansi;?></h2>

      <p class="style1"><?php echo $alamat_instansi;?></p>
  </div>
		<div style="float:right; line-height:3px; text-align:center;">
        <br /><br />
        </div>
</div>	
	
	<div class="panel-header" fit="true" style="height:21px;padding-top:1px;padding-right:20px">
		<div style="float:left;">
			<a style="color:#000000;" href="<?php echo base_url();?>index.php/home" class="easyui-linkbutton" data-options="plain:true" iconCls="icon-home">Home</a>
            <a style="color:#000000;" href="<?php echo base_url();?>index.php/login/logout" class="easyui-linkbutton" data-options="plain:true" iconCls="icon-logout">Keluar</a>		</div>
		<div style="float:right; padding-top:5px;">
			Selamat Datang <?php echo $this->app_model->CariNamaPengguna();?> &rarr;
            <span id="clock"></span>		
		</div>
	</div>
	<!-- awal kiri -->
    <div id="kiri" style="float:left;">
    	<div id="Profil" class="easyui-panel" title="Profil Pengguna" style="float:left;width:170px;height:100px;padding:5px;">
        <a href="<?php echo base_url();?>index.php/foto" title="Edit Foto"><center>
     <img style="float:left;padding:2px;" src="<?php echo base_url();?>asset/foto_profil/<?php echo $this->app_model->CariFotoPengguna();?>" width="60" height="60" align="middle" /> </center>
        </a>
        <p style="line-height:15px;"><b><?php echo $this->app_model->CariNamaPengguna();?></b><br />
            <a href="<?php echo base_url();?>index.php/profil">Edit Profil</a>
        <center>
        </center></div>		
        <div class="easyui-accordion" style="float:left;width:170px;">
        	<?php
			if($this->session->userdata('level')=='01'){
        		echo $this->load->view('menu_admin');
			}elseif($this->session->userdata('level')=='02'){
				echo $this->load->view('menu_karyawan');
			}elseif($this->session->userdata('level')=='03'){
				echo $this->load->view('menu_gudang');
			}else{
				echo $this->load->view('menu_pemasaran');
			}
			?>
		</div>
	</div>       
    <div id="tt" class="easyui-tabs" style="height: 570px; text-shadow: 0px 0px #B5E915;">
        <div style="padding:10px" title="<?php echo $judul;?>">
		<?php echo $content;?>        </div>
    </div>	
			

<div class="panel-header" fit="true" style="height:20px;text-align:center;">	    
Copyright &copy; <?php echo $instansi;?> 2022.
</div>
</body>
</html>
