<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>SIM LAB-Pakan | Dashboard</title>
	<link rel="shortcut icon" href="<?php echo base_url();?>/assets/img/logo.png">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />

	<!-- ================== BEGIN BASE CSS STYLE ================== -->
	<link href="https://fonts.googleapis.com/css?family=Nunito:400,300,700" rel="stylesheet" id="fontFamilySrc" />
	<link href="<?php echo base_url();?>/assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap/bootstrap-4.1.1/css/bootstrap.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/font-awesome/5.1/css/all.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/css/animate.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/css/style.min.css" rel="stylesheet" />
	<!-- ================== END BASE CSS STYLE ================== -->

	<!-- ================== BEGIN PAGE LEVEL CSS STYLE ================== -->
    <link href="<?php echo base_url();?>/assets/plugins/bootstrap-calendar/css/bootstrap_calendar.css" rel="stylesheet" />
    <link href="<?php echo base_url();?>/assets/plugins/jquery-jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/gritter/css/jquery.gritter.css" rel="stylesheet" />

	<!-- ================== BEGIN PAGE LEVEL CSS STYLE ================== -->
	<link href="<?php echo base_url();?>/assets/plugins/ionRangeSlider/css/ion.rangeSlider.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/ionRangeSlider/css/ion.rangeSlider.skinNice.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/strength-js/strength.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap-combobox/css/bootstrap-combobox.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput.css" rel="stylesheet" />
	<link href="<?php echo base_url();?>/assets/plugins/jquery-tag-it/css/jquery.tagit.css" rel="stylesheet" />
    <link href="<?php echo base_url();?>/assets/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" />
    <link href="<?php echo base_url();?>/assets/plugins/select2/dist/css/select2.min.css" rel="stylesheet" />
    <link href="<?php echo base_url();?>/assets/plugins/bootstrap-eonasdan-datetimepicker/build/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
		<!-- <link href="<?php echo base_url();?>/assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker.css" rel="stylesheet" />
		<link href="<?php echo base_url();?>/assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.css" rel="stylesheet" /> -->
	<style>.login-page{background:url("<?php echo base_url('assets/img/background/background-pakan.jpg') ?>");background-size:cover; background-attachment: fixed;}.powered{color:#fff;font-size:15px;text-shadow:0 0 4px #000;}</style>
	<!-- ================== END PAGE LEVEL CSS STYLE ================== -->

	<!-- ================== BEGIN BASE JS ================== -->
	<script src="<?php echo base_url();?>/assets/plugins/pace/pace.min.js"></script>
	<!-- ================== END BASE JS ================== -->

	<!--[if lt IE 9]>
	    <script src="<?php echo base_url();?>/assets/crossbrowserjs/excanvas.min.js"></script>
	<![endif]-->
	<script src="<?php echo base_url();?>/assets/plugins/jquery/jquery-3.3.1.min.js"></script>

</head>
<body class="">
    <?php
        if(empty($halaman)) $halaman = '';
		if(empty($sub_halaman)) $sub_halaman = '';

		$disposisi = $this->session->userdata('r_groupName');
    ?>
	<!-- begin #page-loader -->
	<div id="page-loader" class="page-loader fade in"><span class="spinner">Loading...</span></div>
	<!-- end #page-loader -->

	<!-- begin #page-container -->
	<div id="page-container" class="fade page-container page-header-fixed page-sidebar-fixed page-with-two-sidebar page-with-footer">
		<!-- begin #header -->
		<div id="header" class="header navbar navbar-fixed-top navbar-default">
			<!-- begin container-fluid -->
			<div class="container-fluid">
				<!-- begin mobile sidebar expand / collapse button -->
				<div class="navbar-header">
					<a href="index.html" class="navbar-brand"><img style="border: 1px solid #fff; background-color: #fff" src="<?php echo base_url();?>/assets/img/logo.png" class="logo" alt="" /> SIM LAPAK</a>
					<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				<!-- end mobile sidebar expand / collapse button -->

				<!-- begin navbar-right -->
				<ul class="nav navbar-nav navbar-right">
					<li class="dropdown navbar-user">
						<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
							<span class="image"><img src="<?php echo base_url();?>/assets/img/admin.png" alt="" /></span>
							<span class="hidden-xs"><?php echo $username; ?></span> <b class="caret"></b>
						</a>
						<ul class="dropdown-menu pull-right">
							<li><a href="javascript:;">Edit Akun</a></li>
                            <li class="divider"></li>
							<li><a href="<?php echo site_url('logout'); ?>">Log Out</a></li>
						</ul>
					</li>
				</ul>
				<!-- end navbar-right -->
			</div>
			<!-- end container-fluid -->
		</div>
		<!-- end #header -->

		<!-- begin #sidebar -->
		<div id="sidebar" class="sidebar sidebar-highlight-primary sidebar-inverse">
			<!-- begin sidebar scrollbar -->
			<div data-scrollbar="true" data-height="100%">
				<!-- begin sidebar nav -->
				<ul class="nav">
				    <li class="nav-user">
				        <div class="image">
				            <img src="<?php echo base_url();?>/assets/img/admin.png" alt="" />
				        </div>
				        <div class="info">
				            <div class="name dropdown">
				                <a href="javascript:;" data-toggle="dropdown"><?php echo $username; ?> <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="javascript:;">Edit Akun</a></li>
                                    <li class="divider"></li>
                                    <li><a href="<?php echo site_url('logout'); ?>">Log Out</a></li>
                                </ul>
				            </div>
				            <div class="position"></div>
				        </div>
				    </li>
					<li class="nav-header">Navigation</li>
					<li class="has-sub <?php echo preg_match("#^index#", uri_string()) ? 'active' : '';?>">
						<a href="<?php echo site_url();?>/index/">
						    <i class="fa fa-home"></i>
						    <span>Dashboard </span>
					    </a>
					<?php if(in_array($idGroup, array('1'))) { ?>
					</li>
                    <li class="has-sub <?php echo
                    preg_match("#^akun/data_user#", uri_string()) ||
										preg_match("#^akun/create_edit#", uri_string()) ||
                    preg_match("#^akun/data_personil#", uri_string())
                    ? 'active' : '';?>"
                    >
						<a href="javascript:;">
						    <b class="caret pull-right"></b>
						    <i class="fa fa-users"></i>
						    <span>User</span>
					    </a>
					    <ul class="sub-menu">
					        <li class="<?php echo preg_match("#^akun/data_user#", uri_string()) ? 'active' : '';?>">
                                <a href="<?php echo site_url('akun/data_user'); ?>">Data User</a>
                            </li>
					        <li class="<?php echo preg_match("#^akun/data_personil#", uri_string()) ? 'active' : '';?>">
                                <a href="<?php echo site_url('akun/data_personil'); ?>">Data personil</a>
                            </li>
					    </ul>
					</li>
					<?php } ?>
                    <li class="has-sub <?php echo
                        preg_match("#^sampel/pendaftaran#", uri_string()) ||
                        preg_match("#^sampel/pengajuan#", uri_string()) ||
												preg_match("#^sampel/analis#", uri_string()) ||
                        preg_match("#^sampel/verifikasi#", uri_string())
                        ? 'active' : '';?>">

						<a href="javascript:;">
						    <b class="caret pull-right"></b>
						    <i class="fa fa-eye-dropper"></i>
						    <span>Sampel</span>
					    </a>
					    <ul class="sub-menu">
							<?php if(in_array($idGroup, array('1','2','4'))) { ?>
					        <li class="<?php echo preg_match("#^sampel/pendaftaran#", uri_string()) ? 'active' : '';?>">
                                <a href="<?php echo site_url('sampel/pendaftaran'); ?>">Daftar Permintaan Uji</a>
                            </li>
							<?php } ?>
							<li class="<?php echo preg_match("#^sampel/pengajuan#", uri_string()) && strpos(uri_string(), 'disposisi_history') == false || preg_match("#^sampel/analis#", uri_string()) ? 'active' : '';?>">
								<a href="<?php echo site_url('sampel/pengajuan'); ?>"><?php echo ($idGroup == '1' ? 'Disposisi' : $disposisi);?></a>
							</li>
							<li class="<?php echo preg_match("#^sampel/pengajuan/disposisi_history#", uri_string()) ? 'active' : '';?>">
								<a href="<?php echo site_url('sampel/pengajuan/disposisi_history'); ?>">Data History</a>
							</li>
						</ul>
					</li>
                    <li class="has-sub <?php echo
                    preg_match("#^inventaris/peralatan#", uri_string()) ||
                    preg_match("#^inventaris/bahan_kimia#", uri_string()) ||
                    preg_match("#^inventaris/data_sampel#", uri_string()) ||
										preg_match("#^inventaris/glassware#", uri_string()) ||
										preg_match("#^inventaris/bahan_habis_pakai#", uri_string())
                    ? 'active' : '';?>"
                    >
						<a href="javascript:;">
						    <b class="caret pull-right"></b>
						    <i class="fa fa-database"></i>
						    <span>Inventaris/Stockis</span>
					    </a>
					    <ul class="sub-menu">
					        <li class="<?php echo preg_match("#^inventaris/peralatan#", uri_string()) ? 'active' : '';?>">
                      <a href="<?php echo site_url('inventaris/peralatan'); ?>">Peralatan</a>
                  </li>
					        <li class="<?php echo preg_match("#^inventaris/bahan_kimia#", uri_string()) ? 'active' : '';?>">
                      <a href="<?php echo site_url('inventaris/bahan_kimia'); ?>">Bahan Kimia</a>
                  </li>
									<li class="<?php echo preg_match("#^inventaris/bahan_habis_pakai#", uri_string()) ? 'active' : '';?>">
                      <a href="<?php echo site_url('inventaris/bahan_habis_pakai'); ?>">Lab Pakai Habis</a>
                  </li>
									<li class="<?php echo preg_match("#^inventaris/glassware#", uri_string()) ? 'active' : '';?>">
                      <a href="<?php echo site_url('inventaris/glassware'); ?>">Glassware</a>
                  </li>
					        <li class="<?php echo preg_match("#^inventaris/data_sampel#", uri_string()) ? 'active' : '';?>">
                      <a href="<?php echo site_url('inventaris/data_sampel'); ?>">Data Sampel</a>
                  </li>
					    </ul>
					</li>
					<li class="has-sub <?php echo preg_match("#^inventaris/pad#", uri_string()) ? 'active' : '';?>">
						<a href="<?php echo site_url('inventaris/pad');?>">
						    <i class="fa fa-dollar-sign"></i>
						    <span>Data PAD </span>
					    </a>
					</li>
                    <li class="has-sub <?php echo preg_match("#^akun/akun_saya#", uri_string()) ? 'active' : '';?>">
						<a href="<?php echo site_url('akun/akun_saya');?>">
						    <i class="fa fa-user"></i>
						    <span>Akun Saya </span>
					    </a>
					</li>
					<li class="divider has-minify-btn">
                        <!-- begin sidebar minify button -->
                        <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify"><i class="fa fa-angle-left"></i></a>
                        <!-- end sidebar minify button -->
					</li>

				</ul>
				<!-- end sidebar nav -->
			</div>
			<!-- end sidebar scrollbar -->
		</div>
		<div class="sidebar-bg"></div>
		<!-- end #sidebar -->

		<!-- begin #content -->
		<div id="content" class="content bg-default">
				<h1 style="font-size: 30px; font-weight:bold;" class="page-header"><?php echo $halaman; ?> <small><?php echo $sub_halaman ?></small></h1>
				<hr style="color: #000;">
			<!-- end page-header -->
			<!-- begin row -->
			<?php if($this->session->flashdata('msg')) { ?>
				<div class="alert-1 panel panel-success overflow-hidden m-b-10">
            <div class="panel-heading">
                <h4 class="panel-title">Success!</h4>
								<p><?php echo $this->session->flashdata('msg'); ?></p>
            </div>
        </div>
			<?php } ?>
			<?php if($this->session->flashdata('msgw')) { ?>
				<div class="alert-1 panel panel-warning overflow-hidden m-b-10">
            <div class="panel-heading">
                <h4 class="panel-title">Warning!</h4>
								<p><?php echo $this->session->flashdata('msgw'); ?></p>
            </div>
        </div>
			<?php } ?>
            {CONTENT}

            <!-- begin #footer -->
            <div id="footer" class="footer">
                <span class="pull-right">
                    <a href="javascript:;" class="btn-scroll-to-top" data-click="scroll-top">
                        <i class="fa fa-arrow-up"></i> <span class="hidden-xs">Back to Top</span>
                    </a>
                </span>
                &copy; 2019 <b>PT. Delta Sinergi Prima</b> All Right Reserved
            </div>
            <!-- end #footer -->
		</div>
		<!-- end #content -->

	</div>
	<!-- end page container -->

	<!-- ================== BEGIN BASE JS ================== -->
	<script src="<?php echo base_url();?>/assets/plugins/jquery-ui/jquery-ui.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap/bootstrap-4.1.1/js/bootstrap.bundle.min.js"></script>
	<!--[if lt IE 9]>
		<script src="<?php echo base_url();?>/assets/crossbrowserjs/html5shiv.js"></script>
		<script src="<?php echo base_url();?>/assets/crossbrowserjs/respond.min.js"></script>
	<![endif]-->
	<script src="<?php echo base_url();?>/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-cookie/jquery.cookie.js"></script>
	<!-- ================== END BASE JS ================== -->

	<!-- ================== BEGIN PAGE LEVEL JS ================== -->
  <script src="<?php echo base_url();?>/assets/plugins/bootstrap-calendar/js/bootstrap_calendar.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/sparkline/jquery.sparkline.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.time.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.resize.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.pie.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.stack.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.crosshair.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.categories.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/CurvedLines/curvedLines.js"></script>
  <script src="<?php echo base_url();?>/assets/plugins/jquery-jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
  <script src="<?php echo base_url();?>/assets/plugins/jquery-jvectormap/jquery-jvectormap-world-merc-en.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/gritter/js/jquery.gritter.js"></script>

	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/ionRangeSlider/js/ion-rangeSlider/ion.rangeSlider.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/masked-input/masked-input.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/strength-js/strength.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-combobox/js/bootstrap-combobox.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-select/bootstrap-select.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput-typeahead.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-tag-it/js/tag-it.min.js"></script>
    <script src="<?php echo base_url();?>/assets/plugins/bootstrap-daterangepicker/moment.js"></script>
    <script src="<?php echo base_url();?>/assets/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script src="<?php echo base_url();?>/assets/plugins/select2/dist/js/select2.min.js"></script>
    <script src="<?php echo base_url();?>/assets/plugins/bootstrap-eonasdan-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>

    <script src="<?php echo base_url();?>/assets/js/page-index.demo.js"></script>
    <script src="<?php echo base_url();?>/assets/js/demo.min.js"></script>

    <script src="<?php echo base_url();?>/assets/js/apps.min.js"></script>
	<!-- ================== END PAGE LEVEL JS ================== -->

	<script>
		function goBack() {
	        window.history.back();
	    }

		$(".datetimepicker1").datetimepicker({
			format: "DD/MM/YYYY HH:mm"
		});

		$(".datepicker-default").datetimepicker({
			format: 'DD/MM/YYYY'
		});

		$(".default-select2").select2({
    		placeholder: "Pilih Salah Satu"
		});

		$(document).ready(function() {
		    App.init();
		    Demo.init();
		    PageDemo.init();
		});

		$(".timepicker").timepicker({showMeridian: false});

		function klik_tgl(x){
			var tgl = $('#'+x).val();
			if(tgl != ''){
				tgl = tgl.split('-');
				if(x == 'nomor_batch2') {
					$('#c_'+x).val(tgl[2]+tgl[1]+tgl[0]);
				}else {
					$('#c_'+x).val(tgl[2]+'/'+tgl[1]+'/'+tgl[0]);
				}
			}else{
				$('#c_'+x).val('');
			}
		}

	</script>

<script type="application/javascript">
  /** After windod Load */
  $(window).bind("load", function() {
    window.setTimeout(function() {
      $(".alert-1").fadeTo(5000, 0).slideUp(200, function() {
        $(this).remove();
      });
    }, 500);
  });
</script>



</body>
</html>
