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/sipapbd_2019/application/modules/laporan_lain/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipapbd_2019/application/modules/laporan_lain/models/laporan_lain_model.php
<?php
class Laporan_lain_model extends Base_Model {

  function __construct()
  {
    // Call the Model constructor
    parent::__construct();
  }

  function getRKA($id_skpd)
  {
    $this->db->select("
          fa.id_skpd,
          sum(iif(fa.tipe = 'RKA1' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka1,
          sum(iif(fa.tipe = 'RKA21' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka21,
          sum(iif(fa.tipe = 'RKA221' and fa.lanjutan = 0, 1, 0)) rka221,
          sum(iif(fa.tipe = 'RKA221' and fa.lanjutan = 1, 1, 0)) rkal,
          sum(iif(fa.tipe = 'RKA22' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka22,
          sum(iif(fa.tipe = 'RKA31' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka31,
          sum(iif(fa.tipe = 'RKA32' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka32,
          sum(iif(fa.tipe = 'RKA' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) rka,
          sum(iif(fa.tipe = 'DPA1' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa1,
          sum(iif(fa.tipe = 'DPA21' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa21,
          sum(iif(fa.tipe = 'DPA221' and fa.lanjutan = 0, 1, 0)) dpa221,
          sum(iif(fa.tipe = 'DPA221' and fa.lanjutan = 1, 1, 0)) dpal,
          sum(iif(fa.tipe = 'DPA22' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa22,
          sum(iif(fa.tipe = 'DPA31' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa31,
          sum(iif(fa.tipe = 'DPA32' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa32,
          sum(iif(fa.tipe = 'DPA' and fa.id_form_anggaran is not null, fa.id_form_anggaran, 0)) dpa
    ");
    $this->db->from('v_form_anggaran_lkp fa');
    $this->db->join('v_skpd vs','vs.id_skpd=fa.id_skpd');
    $this->db->where('fa.tahun', $this->tahun);
    $this->db->where('fa.status', $this->status);
    if($id_skpd > 0){
      $this->db->where('fa.id_skpd', $id_skpd);
    }
    $this->db->group_by('fa.id_skpd, vs.kode_skpd_lkp');
    $this->db->order_by('vs.kode_skpd_lkp');
    $result = $this->db->get()->result_array();
    return $result;
  }

  function getDPASKPD($id_skpd)
  {
    $this->db->select("(fa.id_form_anggaran ) DPA, fa.id_skpd");
    $this->db->from('v_form_anggaran_lkp fa');
    $this->db->where('fa.tahun', $this->tahun);
    $this->db->where('fa.status', $this->status);
    $this->db->where('fa.tipe', 'DPA');
    if($id_skpd > 0){
      $this->db->where('fa.id_skpd', $id_skpd);
    }
    $this->db->order_by('fa.id_skpd');
    $result = $this->db->get()->result_array();
    return $result;
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit