| 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/sipapbd_2018_sekolah_geser/application/modules/rka22/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Rka22 extends Rka_Controller {
public function __construct()
{
parent::__construct();
$this->modul_name = 'rka22';
$this->modul_display = 'RKA 2.2';
$this->view_form = 'rka22_form';
$this->view_daftar = 'rka22_view';
$this->report_daftar = 'DAFTAR RKA22';
$this->report_form = 'FORM RKA22';
$this->load->model('rka22_model', 'data_model');
$this->message_dihapus = 'RKA 2.2 telah dihapus.';
$this->message_gagal_dihapus = 'RKA 2.2 tidak bisa dihapus.';
}
function validasi()
{
//$this->form_validation->set_rules('id_sd', 'Sumber Dana', 'required|trim|integer');
//$this->form_validation->set_rules('kaskpd', 'Kepala SKPD', 'trim|integer');
}
/* override fungsi rincian dari RKA Controller */
function rincian($id_skpd = 0)
{
$result = $this->data_model->get_rincian($id_skpd,$this->conf_sumberdana);
$response = (object) NULL;
if ($result){
for($i=0; $i<count($result); $i++)
{
$response->rows[$i]['id'] = $i;
$response->rows[$i]['cell'][] = $result[$i]['LVL'] == 1 ? $result[$i]['KODE_PROGRAM_SKPD'] : $result[$i]['KODE_KEGIATAN_SKPD'];
$response->rows[$i]['cell'][] = $result[$i]['LVL'] !== 1 && $result[$i]['LANJUTAN'] == 1 ? 'L' : '';
$response->rows[$i]['cell'][] = $result[$i]['LVL'] == 1 ? $result[$i]['NAMA_PROGRAM'] : $result[$i]['NAMA_KEGIATAN'];
$response->rows[$i]['cell'][] = $result[$i]['LOKASI'];
$response->rows[$i]['cell'][] = $result[$i]['SUMBER_DANA'];;
$response->rows[$i]['cell'][] = $result[$i]['NOMINAL'];
$response->rows[$i]['cell'][] = $result[$i]['LVL'] == 1 ? 1 : '';
}
}
$response->sql = $this->db->queries;
echo json_encode($response);
}
}