<?php
include "../../config/config.php";

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

$menu_id = 5;
$SessionUser = $SESSION->get_session_user();
$USERAUTH->FrontEnd_check_akses_menu($menu_id,$SessionUser);


$paging = $LOAD_DATA->paging($_GET['pid']);	
if (isset($_POST['submit']))	
{
// echo "<pre>";
// print_r($_POST);
// echo "</pre>";

	unset($_SESSION['ses_retrieve_filter_'.$parameter['menuID'].'_'.$SessionUser->UserSes['ses_uid']]);
	// $get_data_filter = $RETRIEVE->retrieve_rkb_filter(array('param'=>$_POST, 'menuID'=>$menu_id, 'type'=>'', 'paging'=>$paging));
} else
		{
	    $sess = $_SESSION['ses_retrieve_filter_'.$parameter['menuID'].'_'.$SessionUser->UserSes['ses_uid']];
		// $get_data_filter = $RETRIEVE->retrieve_rkb_filter(array('param'=>$sess, 'menuID'=>$menu_id, 'type'=>'', 'paging'=>$paging));
	    }  

	// echo '<pre>';	    
	// print_r($get_data_filter);
	// echo '</pre>';	
?>
<?php
	include"$path/meta.php";
<?php
include "../../../config/config.php"; 

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

// pr($_POST);
// exit;
$dataStore = $PERENCANAAN->store_rencanaPemeliharaan($_POST);
echo "<script>alert('Data Sudah Disimpan'); document.location='prcn_pemeliharaan_buat_filter.php';</script>";

?>
<?php
include "../../config/config.php";

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

$menu_id = 3;
$SessionUser = $SESSION->get_session_user();
$USERAUTH->FrontEnd_check_akses_menu($menu_id,$SessionUser);


$paging = $LOAD_DATA->paging($_GET['pid']);
	//echo '<pre>';
	//print_r($_SESSION);
	    if (isset($_POST['submit']))
	    {
		//echo 'ada';
			//$_SESSION['ses_retrieve_filter_'.$parameter['menuID'].'_'.$this->UserSes['ses_uid']]
		unset($_SESSION['ses_retrieve_filter_'.$parameter['menuID'].'_'.$SessionUser->UserSes['ses_uid']]);
						
		// parameter yang dimasukan adalah menuID, type, post dan paging
		// $get_data_filter = $RETRIEVE->retrieve_harga_barang_filter(array('param'=>$_POST, 'menuID'=>$menu_id, 'type'=>'', 'paging'=>$paging));
		
	    }else
		{
	    $sess = $_SESSION['ses_retrieve_filter_'.$parameter['menuID'].'_'.$SessionUser->UserSes['ses_uid']];
		// $get_data_filter = $RETRIEVE->retrieve_harga_barang_filter(array('param'=>$sess, 'menuID'=>$menu_id, 'type'=>'', 'paging'=>$paging));
	    }
?>
<?php
	include"$path/meta.php";
	include"$path/header.php";
<?php
include "../../../config/config.php";

	$PERENCANAAN = new RETRIEVE_PERENCANAAN;
$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";
	
?>
	<!-- SQL Sementara -->
	<?php
	// //pr($_SESSION);

	// 	$POST['page'] = intval($_GET['pid']);
	// pr($_POST);
	//     $par_data_table="kodeKelompok={$POST['kodeKelompok']}&kdRekening={$POST['kdRekening']}";

$data = $PERENCANAAN->retrieve_daftar_perencanaan_pengadaanPemeliharaan($_POST); 
// pr($data);
		// $data = $PENGHAPUSAN->retrieve_daftar_penetapan_penghapusan_pmd($_POST);
		//////pr($data);
<?php
include "../../../config/config.php";

	$PERENCANAAN = new RETRIEVE_PERENCANAAN;

$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";
	
?>
	<!-- SQL Sementara -->
	<?php

		// if(isset($_POST['kodeKelompok'])){
		//     if($_POST['Aset_ID'] == "")
		//     {
		//       	$dataArr = $STORE->store_inventarisasi($_POST);
		//     }  else
		//     {
		//       $dataArr = $STORE->store_edit_aset($_POST,$_POST['Aset_ID']);
 */
// $dataParam['jenisaset'][0]=$_GET['jenisaset'];
// if($_GET['jenisaset']=="2")
//      $merk="m.Merk";
// else
//      $merk="";
$aColumns = array('r.Rencana_ID', 'r.Kode_Kelompok', 'r.Kode_Rekening', 'k.Uraian', 'rek.NamaRekening', 'r.Rencana_ID', 'r.Rencana_ID', 'r.Rencana_ID', 'r.Rencana_ID');
/* Indexed column (used for fast and accurate table cardinality) */
$sIndexColumn = "Rencana_ID";
/* DB table to use */
$sTable = "rencana";
$dataParam['kodeKelompok'] = $_GET['kodeKelompok'];
$dataParam['kdRekening'] = $_GET['kdRekening'];
// $dataParam['kodeSatker']=$_GET['kodeSatker'];
// $dataParam['page']=$_GET['page'];
$PERENCANAAN = new RETRIEVE_PERENCANAAN();
////pr($data);
//exit;
$sLimit = "";
if (isset($_GET['iDisplayStart']) && $_GET['iDisplayLength'] != '-1') {
    $sLimit = " " . intval($_GET['iDisplayStart']) . ", " . intval($_GET['iDisplayLength']);
}
/*
 * Ordering
 */
$sOrder = "";
if (isset($_GET['iSortCol_0'])) {
    $sOrder = "ORDER BY  ";
    for ($i = 0; $i < intval($_GET['iSortingCols']); $i++) {
        if ($_GET['bSortable_' . intval($_GET['iSortCol_' . $i])] == "true") {
            //$sOrder .= "'" . $aColumns[intval($_GET['iSortCol_' . $i])] . "' " .
<?php
include "../../../config/config.php"; 

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

// pr($_POST);
// exit;
$dataStore = $PERENCANAAN->store_rencanaPengadaan($_POST);
echo "<script>alert('Data Sudah Disimpan'); document.location='prcn_pengadaan_tambah.php';</script>";

?>
<?php
include "../../../config/config.php";

	$PERENCANAAN = new RETRIEVE_PERENCANAAN;
$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";
	
?>
	<!-- SQL Sementara -->
	<?php
	// //pr($_SESSION);

	// 	$POST['page'] = intval($_GET['pid']);
	// pr($_POST);
	//     $par_data_table="kodeKelompok={$POST['kodeKelompok']}&kdRekening={$POST['kdRekening']}";
if($_POST){
$data = $PERENCANAAN->retrieve_daftar_perencanaan_pengadaan($_POST);
}else{

$data = $PERENCANAAN->retrieve_daftar_perencanaan_pengadaan($_GET);
<?php
include "../../../config/config.php"; 

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

// pr($_POST);
// exit;
$dataStore = $PERENCANAAN->delete_rencanaPengadaan($_GET);
echo "<script>alert('Data Sudah Dihapus'); document.location='prcn_pengadaan_data.php?jenisaset=".$_GET['tipe']."&kodeSatker=".$_GET['satker']."';</script>";

?>
<?php
include "../../config/config.php";

$PERENCANAAN = new RETRIEVE_PERENCANAAN;

$menu_id = 2;
$SessionUser = $SESSION->get_session_user();
$USERAUTH->FrontEnd_check_akses_menu($menu_id,$SessionUser);

if (isset($_POST['submit']))
{	

	$get_data_filter = $PERENCANAAN->store_shb_data($_POST);

// $get_data_filter = $STORE->store_shb_data(array('param'=>$_POST, 'menuID'=>$menu_id, 'type'=>'', 'paging'=>''));
}
?>

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

	 $menu_id = 1;
     $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);
	 $resetDataView = $DBVAR->is_table_exists('lihat_daftar_aset_'.$SessionUser['ses_uoperatorid'], 0);