| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /wamp/www/sipkd_2016/application/modules/bkus/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Bkus extends Aktivitas_Controller {
public function __construct()
{
parent::__construct();
$this->modul_name = 'bkus';
$this->modul_display = 'BKU Pengeluaran';
$this->view_form = 'bkus_form';
$this->view_daftar = 'bkus_view';
$this->load->model('bkus_model', 'data_model');
}
function validasi()
{
$this->form_validation->set_rules('id_skpd', 'SKPD', 'required|trim|integer');
$this->form_validation->set_rules('kaskpd', 'Kepala SKPD', 'trim|integer');
$this->form_validation->set_rules('bt', 'Bendahara Penerimaan', 'trim|integer');
}
public function rinci($id=0)
{
$result = $this->data_model->get_rinci_by_id($id);
$response = (object) NULL;
if ($result){
for($i=0; $i<count($result); $i++)
{
$response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS_SUMBER'];
$response->rows[$i]['cell']=array(
$result[$i]['NO_BKU'],
$result[$i]['TIPE'],
$result[$i]['NO_TRANSAKSI'],
$result[$i]['TANGGAL_CAIR'],
$result[$i]['DESKRIPSI'],
$result[$i]['KODE_REKENING'],
$result[$i]['NAMA_REKENING'],
$result[$i]['DEBET'],
$result[$i]['KREDIT'],
);
}
}
echo json_encode($response);
}
}