include "excel_reader.php";
$menu_id = 10;
            $SessionUser = $SESSION->get_session_user();
            ($SessionUser['ses_uid']!='') ? $Session = $SessionUser : $Session = $SESSION->get_session(array('title'=>'GuestMenu', 'ses_name'=>'menu_without_login')); 
            $USERAUTH->FrontEnd_check_akses_menu($menu_id, $Session);

// $get_data_filter = $RETRIEVE->retrieve_kontrak();
// pr($get_data_filter);
?>

<?php
	include"$path/meta.php";
	include"$path/header.php";
	include"$path/menu.php";

	$RETRIEVE_INVENTARISASI = new RETRIEVE_INVENTARISASI;
	if(isset($_GET['id'])){
		// $dataArr = $RETRIEVE_PEROLEHAN->get_kontrak($_GET['id']);
		// $xlsData = $RETRIEVE_PEROLEHAN->get_tmpData('tmp_asetlain');

		$POST['page'] = intval($_GET['pid']);
		$par_data_table="bup_tahun={$POST['bup_tahun']}&bup_nokontrak={$POST['bup_nokontrak']}&jenisaset={$POST['jenisaset'][0]}&kodeSatker={$POST['kodeSatker']}&page={$POST['page']}";

	} else{
		$dataArr = $RETRIEVE_INVENTARISASI->importing_xls2html_kibb($_FILES,$_POST);
	}
	
?>

	<script>
		$(function(){
<?php
include "../../../config/config.php";
include "excel_reader.php";

include"$path/meta.php";
include"$path/header.php";
include"$path/menu.php";

$menu_id = 10;
            $SessionUser = $SESSION->get_session_user();
            ($SessionUser['ses_uid']!='') ? $Session = $SessionUser : $Session = $SESSION->get_session(array('title'=>'GuestMenu', 'ses_name'=>'menu_without_login')); 
            $USERAUTH->FrontEnd_check_akses_menu($menu_id, $Session);
$RETRIEVE_INVENTARISASI = new RETRIEVE_INVENTARISASI;

$dataArr = $RETRIEVE_INVENTARISASI->getImportLog($_SESSION['ses_uname']);

?>

	<script type="text/javascript">
		$(document).ready(function() {
			$('#importxls').dataTable();
			$('#livefeed')[0].click();
		});

		function goclicky(meh)
		{
		    var x = screen.width/2 - 700/2;
		    var y = screen.height/2 - 450/2;
		    window.open(meh.href, 'sharegplus','height=285,width=700,left='+x+',top='+y);
		}
	</script>