| 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 : D:/wamp/www/sipkd_2016/application/modules/sisa_panjar/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Sisa_panjar extends Aktivitas_Controller {
public function __construct()
{
parent::__construct();
$this->modul_name = 'sisa_panjar';
$this->modul_display = 'Setoran Sisa Panjar';
$this->view_form = 'sisa_panjar_form';
$this->view_daftar = 'sisa_panjar_view';
$this->report_daftar = 'Daftar Setoran Sisa Panjar';
$this->report_form = 'Form Setoran Sisa Panjar';
$this->load->model('sisa_panjar_model', 'data_model');
$this->message_aktivitas_dihapus = 'Sisa Panjar telah dihapus.';
$this->message_aktivitas_gagal_dihapus = 'Sisa Panjar tidak bisa dihapus.';
}
function validasi()
{
$this->form_validation->set_rules('id_keg', 'Kegiatan', 'required|trim|integer');
$this->form_validation->set_rules('id_pekas', 'Akun Bendahara', 'required|trim|integer');
$this->form_validation->set_rules('id_rek_pptk', 'Akun PPTK', 'required|trim|integer');
}
public function sisa_skpd()
{
$idr = $this->input->post('idsk') ? $this->input->post('idsk') : 0;
$param = array(
'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
'tanggal' => $this->input->post('tanggal') ? $this->input->post('tanggal') : '',
'id_aktivitas' => $this->input->post('id') ? $this->input->post('id') : 0,
'id_kegiatan' => $this->input->post('id_kegiatan') ? $this->input->post('id_kegiatan') : 0,
);
$result = $this->data_model->get_sisa_skpd($param);
$response = (object) NULL;
$response = array(
'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
'sisa_tgl' => isset($result['NOMINAL_TANGGAL']) ? $result['NOMINAL_TANGGAL'] : 0,
'sql' => $this->db->queries
);
echo json_encode($response);
}
}