Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php defined("\102\101\x53\x45\120\x41\124\x48") or die("\116\157\40\x64\151\x72\145\14..

Decoded Output download

<?php 
 defined("BASEPATH") or die("No direct script access allowed"); class Admdashboard_enc extends CI_Controller { private $filename = "import_data"; function __construct() { parent::__construct(); $this->load->helper("url"); $this->load->library("session"); $this->load->helper("tgl_indo"); $this->load->model("Belanjasipkd_model"); $this->load->model("Transaksi_model"); $this->load->model("Pembelian_model"); $this->load->model("Barangskpd_model"); if (!isset($_SESSION["status"])) { redirect("login"); } if (!is_null($this->session->userdata("kode_skpd"))) { redirect("login"); } } public function index() { error_reporting(0); $data["belanja_lra"] = $this->Belanjasipkd_model->adm_get_lraskpd(); $data["belanja_persediaan"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan(); $x = 0; foreach ($data["belanja_lra"] as $row_lra) { $nilai[$x]["kode_skpd"] = $row_lra->kode_skpd; $nilai[$x]["nama_skpd"] = $row_lra->nama_skpd; $nilai[$x]["belanja_lra"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["belanja_persediaan"] = 0; foreach ($data["belanja_persediaan"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["belanja_persediaan"] = $row_persediaan->harga_total; } } $x++; } $data["data_belanja"] = $nilai; $wkt_update = $this->Belanjasipkd_model->get_wkt_update(); $date1 = $wkt_update; $date = new DateTime($date1); $date_plus = $date->modify("+7 hours"); $data["jam_baru"] = $date_plus; $data["tgl_update"] = $date_plus->format("Y-m-d"); $data["jam_update"] = $date_plus->format("H:i:s"); $this->load->view("visitor/admin/dashboard_enc", $data); } public function index_exc() { error_reporting(0); $data["belanja_lra"] = $this->Belanjasipkd_model->adm_get_lraskpd(); $data["belanja_persediaan"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan(); $x = 0; foreach ($data["belanja_lra"] as $row_lra) { $nilai[$x]["kode_skpd"] = $row_lra->kode_skpd; $nilai[$x]["nama_skpd"] = $row_lra->nama_skpd; $nilai[$x]["belanja_lra"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["belanja_persediaan"] = 0; foreach ($data["belanja_persediaan"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["belanja_persediaan"] = $row_persediaan->harga_total; } } $x++; } $data["data_belanja"] = $nilai; $data["tgl_update"] = substr($this->Belanjasipkd_model->get_wkt_update(), 0, 10); $data["jam_update"] = substr($this->Belanjasipkd_model->get_wkt_update(), -8); $this->load->view("visitor/admin/index_exc", $data); } public function index_exc_range() { error_reporting(0); $data["tgl_awal"] = $this->input->post("tgl_awal"); $data["tgl_akhir"] = $this->input->post("tgl_akhir"); $data["belanja_lra"] = $this->Belanjasipkd_model->adm_get_lraskpd_range($data["tgl_awal"], $data["tgl_akhir"]); $data["belanja_persediaan"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan_range($data["tgl_awal"], $data["tgl_akhir"]); $x = 0; foreach ($data["belanja_lra"] as $row_lra) { $nilai[$x]["kode_skpd"] = $row_lra->kode_skpd; $nilai[$x]["nama_skpd"] = $row_lra->nama_skpd; $nilai[$x]["belanja_lra"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["belanja_persediaan"] = 0; foreach ($data["belanja_persediaan"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["belanja_persediaan"] = $row_persediaan->harga_total; } } $x++; } $data["data_belanja"] = $nilai; $data["tgl_update"] = substr($this->Belanjasipkd_model->get_wkt_update(), 0, 10); $data["jam_update"] = substr($this->Belanjasipkd_model->get_wkt_update(), -8); $this->load->view("visitor/admin/index_exc_range", $data); } public function detail($kode_skpd) { error_reporting(0); $data["belanja_lra"] = $this->Belanjasipkd_model->get_lra_skpd_bykode($kode_skpd); $data["belanja_persediaan"] = $this->Belanjasipkd_model->get_belanja_persediaan_bykode($kode_skpd); foreach ($data["belanja_lra"] as $row) { $data["nama_skpd"] = $row->nama_skpd; } $x = 0; foreach ($data["belanja_lra"] as $row_lra) { $nilai[$x]["kode_skpd"] = $row_lra->kode_skpd; $nilai[$x]["nama_skpd"] = $row_lra->nama_skpd; $nilai[$x]["kodeper_belanja"] = $row_lra->kodeper_belanja; $nilai[$x]["namaper_belanja"] = $row_lra->namaper_belanja; if ($row_lra->total_lra != 0) { $nilai[$x]["belanja_lra"] = $row_lra->total_lra; } else { $nilai[$x]["belanja_lra"] = $row_lra->total_lra_blud; } $nilai[$x]["belanja_persediaan"] = 0; foreach ($data["belanja_persediaan"] as $row_persediaan) { if ($row_lra->kodeper_belanja == $row_persediaan->kdrek) { $nilai[$x]["belanja_persediaan"] = $row_persediaan->harga_total; } } $x++; } $data["data_belanja"] = $nilai; $this->load->view("visitor/admin/detail", $data); } public function cekspj($kode_skpd, $kodeper_belanja) { $data["spj_lra"] = $this->Belanjasipkd_model->get_spj_lra_skpd($kode_skpd, $kodeper_belanja); $data["nama_skpd"] = $this->Belanjasipkd_model->get_nama_skpd($kode_skpd); $data["kodeper_belanja"] = $kodeper_belanja; $data["namaper_belanja"] = $this->Belanjasipkd_model->get_namaper_belanja($kode_skpd, $kodeper_belanja); $this->load->view("visitor/admin/cek_spj", $data); } public function cek_inputbeli($kode_skpd, $kodeper_belanja) { $data["pembelian"] = $this->Belanjasipkd_model->get_pembelian($kode_skpd, $kodeper_belanja); $data["lra"] = $this->Belanjasipkd_model->get_lra_byskpd_kode($kode_skpd, $kodeper_belanja); $data["nama_skpd"] = $this->Belanjasipkd_model->get_nama_skpd($kode_skpd); $data["kodeper_belanja"] = $kodeper_belanja; $data["namaper_belanja"] = $this->Belanjasipkd_model->get_namaper_belanja($kode_skpd, $kodeper_belanja); $this->load->view("visitor/admin/cek_beli", $data); } public function cek_inputbeli_detail($id) { $data["kode_transaksi"] = "M02"; $data["nama_transaksi"] = $this->Transaksi_model->getnamatransaksi($data["kode_transaksi"]); $data["pembelian"] = $this->Pembelian_model->getdatabyid($id); $data["nama_skpd"] = $this->Pembelian_model->get_nama_skpd_byiddok($id); $data["detail_barang"] = $this->Pembelian_model->getdetaildok($id); $data["id_dok_transaksi"] = $id; $data["jenis_dok"] = $this->Barangskpd_model->jenis_dok($id); $this->load->view("visitor/admin/detail_beli", $data); } public function ceksaldoawal() { $this->load->model("Barang_model"); $this->load->model("Saldoawal_model"); $skpd = $this->Barang_model->getallskpd(); $saldo_lalu = $this->Saldoawal_model->get_saldoawal_lalu(); $saldo_awal_aplikasi = $this->Saldoawal_model->get_saldoawal_aplikasi(); $x = 0; foreach ($skpd as $row_skpd) { $ceksa[$x]["kode_skpd"] = $row_skpd->kode_skpd; $ceksa[$x]["nama_skpd"] = $row_skpd->nama_skpd; $ceksa[$x]["nominal_sa"] = 0; $ceksa[$x]["nominal_sa_app"] = 0; $x++; } for ($x = 0; $x < count($ceksa); $x++) { foreach ($saldo_lalu as $sa) { if ($ceksa[$x]["kode_skpd"] == $sa->kode_skpd) { $ceksa[$x]["nominal_sa"] = $sa->nominal; } } foreach ($saldo_awal_aplikasi as $app) { if ($ceksa[$x]["kode_skpd"] == $app->kode_skpd) { $ceksa[$x]["nominal_sa_app"] = $app->sa_total; } } } $data["ceksa"] = $ceksa; $this->load->view("visitor/admin/ceksaldoawal", $data); } public function sa_rinci($kode_skpd) { $this->load->model("Saldoawal_model"); error_reporting(0); $data["saldoawal_lalu"] = $this->Saldoawal_model->get_detailsa_lalu($kode_skpd); $data["saldoawal_app"] = $this->Saldoawal_model->get_detailsa_app($kode_skpd); $x = 0; foreach ($data["saldoawal_lalu"] as $row_sa_lalu) { $nilai[$x]["id_ceksaldoawal"] = $row_sa_lalu->id_ceksaldoawal; $nilai[$x]["kode_skpd"] = $row_sa_lalu->kode_skpd; $nilai[$x]["nama_skpd"] = $row_sa_lalu->nama_skpd; $nilai[$x]["kdrek"] = $row_sa_lalu->kdrek; $nilai[$x]["nmrek"] = $row_sa_lalu->nmrek; $nilai[$x]["nominal"] = $row_sa_lalu->nominal; foreach ($data["saldoawal_app"] as $row_sa_app) { if ($row_sa_lalu->kode_skpd == $row_sa_app->kode_skpd & $row_sa_lalu->kdrek == $row_sa_app->kdrek) { $nilai[$x]["input_sa"] = $row_sa_app->tot_input_sa; } } $x++; $data["nama_skpd"] = $row_sa_lalu->nama_skpd; } $data["nilai"] = $nilai; $this->load->view("visitor/admin/sa_rinci", $data); } public function sa_rinci_edit($id_ceksaldoawal) { $this->load->model("Saldoawal_model"); $data["sa_rek"] = $this->Saldoawal_model->get_sa_rek($id_ceksaldoawal); $data["id_ceksaldoawal"] = $id_ceksaldoawal; foreach ($data["sa_rek"] as $row) { $kode_skpd = $row->kode_skpd; } if (isset($_POST["submit"])) { $data = array("nominal" => $this->input->post("nominal")); $this->Saldoawal_model->edit_sa_rek($data, $id_ceksaldoawal); $this->session->set_flashdata("done", "Data Berhasil Diubah"); redirect("admdashboard/sa_rinci/" . $kode_skpd); } else { $this->load->view("visitor/admin/edit_sa_rinci", $data); } } public function edit_sa_audited($kode_skpd) { $data["kode_skpd"] = $kode_skpd; $this->load->model("Barang_model"); $this->load->model("Barangskpd_model"); $this->load->model("Saldoawal_model"); if (isset($_POST["submit"])) { $data = array("kode_skpd" => $kode_skpd, "nominal" => $this->input->post("nominal")); $cek = $this->Saldoawal_model->cek_sa_audited($kode_skpd); if ($cek == 1) { $this->Saldoawal_model->edit_sa_audited($data, $kode_skpd); $this->session->set_flashdata("done", "Data Berhasil Diubah"); } else { $this->Saldoawal_model->insert_sa_audited($data); $this->session->set_flashdata("done", "Data Berhasil Ditambah"); } redirect("admdashboard/ceksaldoawal"); } else { $data["nama_skpd"] = $this->Barangskpd_model->get_nama_skpd($kode_skpd); $data["nominal"] = $this->Saldoawal_model->get_nominal_sa($kode_skpd); $this->load->view("visitor/admin/edit_sa_audited", $data); } } } ?>

Did this file decode correctly?

Original Code

<?php
 defined("\102\101\x53\x45\120\x41\124\x48") or die("\116\157\40\x64\151\x72\145\143\x74\x20\x73\x63\x72\x69\160\164\40\141\143\x63\145\163\163\x20\141\154\x6c\x6f\167\145\x64"); class Admdashboard_enc extends CI_Controller { private $filename = "\151\155\160\x6f\x72\x74\137\144\141\164\141"; function __construct() { parent::__construct(); $this->load->helper("\x75\x72\x6c"); $this->load->library("\x73\x65\x73\x73\x69\157\156"); $this->load->helper("\x74\x67\x6c\x5f\x69\x6e\144\157"); $this->load->model("\102\145\x6c\141\x6e\152\x61\x73\151\160\153\x64\137\x6d\157\144\145\154"); $this->load->model("\124\162\141\x6e\x73\x61\153\163\x69\137\x6d\157\x64\x65\154"); $this->load->model("\120\x65\155\x62\145\x6c\151\x61\156\137\155\157\144\145\x6c"); $this->load->model("\102\x61\x72\x61\x6e\147\163\x6b\x70\x64\x5f\155\157\144\x65\154"); if (!isset($_SESSION["\x73\x74\x61\x74\165\163"])) { redirect("\x6c\157\147\151\x6e"); } if (!is_null($this->session->userdata("\x6b\157\x64\145\137\163\153\x70\144"))) { redirect("\154\157\147\151\156"); } } public function index() { error_reporting(0); $data["\142\x65\x6c\x61\156\152\141\137\x6c\162\141"] = $this->Belanjasipkd_model->adm_get_lraskpd(); $data["\142\145\x6c\x61\x6e\x6a\x61\x5f\x70\145\x72\x73\145\144\151\x61\141\156"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan(); $x = 0; foreach ($data["\x62\x65\154\141\x6e\x6a\x61\x5f\x6c\x72\141"] as $row_lra) { $nilai[$x]["\153\x6f\144\145\137\x73\x6b\160\x64"] = $row_lra->kode_skpd; $nilai[$x]["\156\x61\155\141\x5f\163\x6b\160\144"] = $row_lra->nama_skpd; $nilai[$x]["\x62\x65\154\x61\156\x6a\141\137\x6c\x72\x61"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["\142\x65\x6c\141\156\152\141\x5f\160\145\x72\x73\x65\144\x69\141\x61\156"] = 0; foreach ($data["\142\145\x6c\141\156\x6a\x61\137\x70\145\162\163\145\144\x69\141\141\x6e"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["\142\x65\x6c\x61\x6e\x6a\141\x5f\x70\x65\162\163\145\144\151\x61\x61\156"] = $row_persediaan->harga_total; } } $x++; } $data["\x64\x61\164\141\137\x62\145\x6c\x61\x6e\x6a\x61"] = $nilai; $wkt_update = $this->Belanjasipkd_model->get_wkt_update(); $date1 = $wkt_update; $date = new DateTime($date1); $date_plus = $date->modify("\53\67\x20\x68\x6f\165\x72\x73"); $data["\152\141\155\x5f\142\x61\162\x75"] = $date_plus; $data["\164\147\154\137\165\160\x64\141\x74\x65"] = $date_plus->format("\131\x2d\155\x2d\x64"); $data["\152\x61\x6d\137\x75\160\x64\x61\x74\x65"] = $date_plus->format("\x48\72\x69\x3a\x73"); $this->load->view("\x76\151\x73\151\164\x6f\x72\57\141\144\155\151\x6e\57\x64\x61\163\x68\x62\157\141\162\x64\x5f\145\156\x63", $data); } public function index_exc() { error_reporting(0); $data["\x62\145\x6c\x61\156\x6a\x61\137\x6c\162\x61"] = $this->Belanjasipkd_model->adm_get_lraskpd(); $data["\x62\145\154\x61\156\x6a\x61\x5f\160\x65\162\163\x65\x64\x69\141\x61\x6e"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan(); $x = 0; foreach ($data["\142\145\154\x61\x6e\152\x61\137\154\x72\x61"] as $row_lra) { $nilai[$x]["\153\x6f\x64\145\x5f\163\x6b\160\144"] = $row_lra->kode_skpd; $nilai[$x]["\156\x61\x6d\x61\137\x73\153\x70\x64"] = $row_lra->nama_skpd; $nilai[$x]["\142\x65\154\141\x6e\152\x61\137\x6c\162\x61"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["\142\x65\154\x61\156\152\141\137\160\x65\162\163\x65\144\151\x61\141\156"] = 0; foreach ($data["\142\145\x6c\x61\x6e\x6a\141\137\x70\x65\x72\x73\x65\144\x69\141\141\x6e"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["\142\145\x6c\141\156\152\x61\137\x70\x65\x72\x73\145\144\x69\141\141\156"] = $row_persediaan->harga_total; } } $x++; } $data["\144\x61\164\x61\x5f\142\145\154\x61\x6e\x6a\x61"] = $nilai; $data["\x74\147\x6c\137\x75\x70\144\141\x74\x65"] = substr($this->Belanjasipkd_model->get_wkt_update(), 0, 10); $data["\152\141\x6d\137\165\x70\144\x61\x74\145"] = substr($this->Belanjasipkd_model->get_wkt_update(), -8); $this->load->view("\x76\151\x73\151\x74\x6f\x72\57\x61\x64\155\x69\x6e\x2f\151\x6e\144\145\170\x5f\145\x78\143", $data); } public function index_exc_range() { error_reporting(0); $data["\164\x67\x6c\x5f\x61\167\141\x6c"] = $this->input->post("\164\147\x6c\137\x61\x77\x61\154"); $data["\x74\147\x6c\x5f\x61\x6b\150\151\162"] = $this->input->post("\x74\147\x6c\x5f\x61\153\x68\x69\x72"); $data["\x62\145\154\141\x6e\152\x61\x5f\154\x72\141"] = $this->Belanjasipkd_model->adm_get_lraskpd_range($data["\x74\147\x6c\x5f\x61\x77\141\154"], $data["\164\147\x6c\137\141\153\150\x69\162"]); $data["\142\x65\154\x61\156\x6a\x61\137\160\x65\162\x73\x65\144\x69\x61\x61\156"] = $this->Belanjasipkd_model->adm_get_belanja_persediaan_range($data["\x74\x67\154\x5f\x61\x77\x61\x6c"], $data["\164\147\x6c\x5f\x61\153\x68\151\162"]); $x = 0; foreach ($data["\142\145\x6c\x61\156\x6a\x61\x5f\154\162\x61"] as $row_lra) { $nilai[$x]["\153\157\144\x65\137\163\153\160\144"] = $row_lra->kode_skpd; $nilai[$x]["\156\x61\x6d\141\137\163\x6b\160\x64"] = $row_lra->nama_skpd; $nilai[$x]["\x62\145\x6c\x61\156\x6a\141\x5f\x6c\x72\x61"] = $row_lra->total_lra + $row_lra->total_lra_blud; $nilai[$x]["\x62\x65\x6c\x61\x6e\x6a\x61\x5f\160\x65\x72\x73\145\x64\151\141\141\x6e"] = 0; foreach ($data["\x62\x65\154\141\x6e\x6a\x61\x5f\x70\145\162\163\145\x64\151\x61\x61\x6e"] as $row_persediaan) { if ($row_lra->kode_skpd == $row_persediaan->kode_skpd) { $nilai[$x]["\x62\x65\154\141\x6e\x6a\x61\x5f\160\x65\x72\163\145\144\x69\x61\x61\x6e"] = $row_persediaan->harga_total; } } $x++; } $data["\144\x61\164\141\x5f\x62\x65\x6c\x61\x6e\x6a\141"] = $nilai; $data["\x74\147\154\137\x75\x70\x64\x61\x74\145"] = substr($this->Belanjasipkd_model->get_wkt_update(), 0, 10); $data["\152\141\x6d\x5f\x75\160\x64\x61\x74\145"] = substr($this->Belanjasipkd_model->get_wkt_update(), -8); $this->load->view("\x76\x69\163\x69\164\157\162\x2f\141\144\155\151\x6e\x2f\x69\x6e\x64\145\170\137\145\170\x63\x5f\162\141\156\147\x65", $data); } public function detail($kode_skpd) { error_reporting(0); $data["\142\145\x6c\141\156\152\141\137\x6c\x72\x61"] = $this->Belanjasipkd_model->get_lra_skpd_bykode($kode_skpd); $data["\x62\145\154\141\156\x6a\x61\x5f\x70\145\x72\163\145\x64\x69\141\141\x6e"] = $this->Belanjasipkd_model->get_belanja_persediaan_bykode($kode_skpd); foreach ($data["\142\145\x6c\x61\156\x6a\x61\137\x6c\162\x61"] as $row) { $data["\x6e\x61\155\x61\137\163\153\160\144"] = $row->nama_skpd; } $x = 0; foreach ($data["\x62\145\154\141\156\152\x61\x5f\154\x72\141"] as $row_lra) { $nilai[$x]["\x6b\x6f\144\x65\137\x73\153\x70\144"] = $row_lra->kode_skpd; $nilai[$x]["\156\141\x6d\141\137\163\153\x70\144"] = $row_lra->nama_skpd; $nilai[$x]["\x6b\157\x64\145\x70\x65\x72\137\142\145\x6c\141\x6e\x6a\141"] = $row_lra->kodeper_belanja; $nilai[$x]["\x6e\141\155\141\x70\145\162\137\142\145\154\x61\x6e\152\141"] = $row_lra->namaper_belanja; if ($row_lra->total_lra != 0) { $nilai[$x]["\142\145\x6c\141\x6e\x6a\141\137\154\x72\141"] = $row_lra->total_lra; } else { $nilai[$x]["\142\145\x6c\x61\x6e\152\141\137\x6c\162\x61"] = $row_lra->total_lra_blud; } $nilai[$x]["\142\x65\154\x61\156\x6a\x61\x5f\x70\x65\x72\x73\145\144\x69\x61\x61\x6e"] = 0; foreach ($data["\142\x65\154\x61\156\x6a\141\137\x70\145\x72\163\145\144\151\x61\x61\156"] as $row_persediaan) { if ($row_lra->kodeper_belanja == $row_persediaan->kdrek) { $nilai[$x]["\142\x65\154\141\x6e\x6a\x61\137\x70\145\162\x73\145\144\151\x61\x61\x6e"] = $row_persediaan->harga_total; } } $x++; } $data["\144\x61\x74\141\137\x62\145\154\141\x6e\x6a\141"] = $nilai; $this->load->view("\166\151\x73\151\164\157\162\x2f\x61\144\155\151\156\x2f\x64\145\164\x61\151\x6c", $data); } public function cekspj($kode_skpd, $kodeper_belanja) { $data["\163\160\x6a\x5f\154\162\141"] = $this->Belanjasipkd_model->get_spj_lra_skpd($kode_skpd, $kodeper_belanja); $data["\156\x61\155\141\137\163\153\x70\144"] = $this->Belanjasipkd_model->get_nama_skpd($kode_skpd); $data["\x6b\x6f\x64\145\x70\145\x72\x5f\142\145\x6c\x61\x6e\152\x61"] = $kodeper_belanja; $data["\156\x61\x6d\141\160\x65\x72\137\142\x65\154\x61\156\152\141"] = $this->Belanjasipkd_model->get_namaper_belanja($kode_skpd, $kodeper_belanja); $this->load->view("\166\x69\x73\x69\164\157\162\57\x61\x64\x6d\151\x6e\x2f\143\x65\153\137\163\160\x6a", $data); } public function cek_inputbeli($kode_skpd, $kodeper_belanja) { $data["\x70\x65\155\142\145\x6c\151\141\x6e"] = $this->Belanjasipkd_model->get_pembelian($kode_skpd, $kodeper_belanja); $data["\154\x72\x61"] = $this->Belanjasipkd_model->get_lra_byskpd_kode($kode_skpd, $kodeper_belanja); $data["\156\141\155\141\x5f\x73\153\160\x64"] = $this->Belanjasipkd_model->get_nama_skpd($kode_skpd); $data["\153\157\144\x65\x70\145\x72\x5f\x62\x65\154\x61\156\152\141"] = $kodeper_belanja; $data["\156\x61\x6d\x61\160\145\162\x5f\x62\145\x6c\141\x6e\152\x61"] = $this->Belanjasipkd_model->get_namaper_belanja($kode_skpd, $kodeper_belanja); $this->load->view("\166\x69\163\x69\x74\x6f\x72\x2f\141\144\x6d\x69\156\x2f\143\145\x6b\137\x62\x65\x6c\151", $data); } public function cek_inputbeli_detail($id) { $data["\x6b\157\144\x65\x5f\x74\162\141\156\x73\x61\x6b\x73\x69"] = "\115\x30\62"; $data["\156\141\155\x61\137\x74\162\x61\156\163\141\x6b\163\151"] = $this->Transaksi_model->getnamatransaksi($data["\x6b\x6f\x64\145\x5f\164\162\141\156\163\x61\x6b\x73\151"]); $data["\160\145\x6d\142\145\x6c\151\x61\156"] = $this->Pembelian_model->getdatabyid($id); $data["\x6e\x61\x6d\141\137\x73\x6b\160\144"] = $this->Pembelian_model->get_nama_skpd_byiddok($id); $data["\144\x65\164\x61\151\x6c\x5f\142\x61\162\x61\x6e\147"] = $this->Pembelian_model->getdetaildok($id); $data["\x69\144\x5f\144\157\x6b\137\164\x72\x61\156\x73\x61\153\x73\x69"] = $id; $data["\x6a\x65\x6e\x69\x73\137\x64\157\x6b"] = $this->Barangskpd_model->jenis_dok($id); $this->load->view("\166\x69\163\151\164\x6f\162\57\x61\x64\155\151\156\57\x64\145\x74\x61\x69\154\x5f\x62\145\154\151", $data); } public function ceksaldoawal() { $this->load->model("\x42\141\162\141\x6e\147\x5f\x6d\157\144\x65\x6c"); $this->load->model("\x53\x61\x6c\144\x6f\x61\167\141\x6c\x5f\x6d\x6f\x64\x65\x6c"); $skpd = $this->Barang_model->getallskpd(); $saldo_lalu = $this->Saldoawal_model->get_saldoawal_lalu(); $saldo_awal_aplikasi = $this->Saldoawal_model->get_saldoawal_aplikasi(); $x = 0; foreach ($skpd as $row_skpd) { $ceksa[$x]["\x6b\x6f\x64\145\x5f\x73\153\x70\x64"] = $row_skpd->kode_skpd; $ceksa[$x]["\156\x61\155\x61\137\163\x6b\x70\x64"] = $row_skpd->nama_skpd; $ceksa[$x]["\x6e\157\155\x69\x6e\x61\154\x5f\x73\141"] = 0; $ceksa[$x]["\156\x6f\x6d\x69\156\141\154\x5f\163\141\137\x61\x70\x70"] = 0; $x++; } for ($x = 0; $x < count($ceksa); $x++) { foreach ($saldo_lalu as $sa) { if ($ceksa[$x]["\x6b\157\144\x65\x5f\163\x6b\160\144"] == $sa->kode_skpd) { $ceksa[$x]["\156\x6f\155\x69\156\141\x6c\137\x73\x61"] = $sa->nominal; } } foreach ($saldo_awal_aplikasi as $app) { if ($ceksa[$x]["\153\x6f\x64\145\x5f\163\x6b\160\144"] == $app->kode_skpd) { $ceksa[$x]["\x6e\x6f\x6d\x69\156\141\x6c\x5f\163\x61\137\x61\160\x70"] = $app->sa_total; } } } $data["\143\145\x6b\163\x61"] = $ceksa; $this->load->view("\x76\151\163\x69\x74\x6f\x72\57\x61\x64\x6d\151\156\57\143\x65\x6b\x73\x61\x6c\x64\157\x61\x77\141\x6c", $data); } public function sa_rinci($kode_skpd) { $this->load->model("\123\x61\154\144\x6f\x61\x77\141\x6c\137\x6d\x6f\x64\x65\x6c"); error_reporting(0); $data["\163\141\154\144\x6f\141\167\141\154\137\x6c\141\154\165"] = $this->Saldoawal_model->get_detailsa_lalu($kode_skpd); $data["\x73\x61\x6c\144\x6f\141\167\x61\154\x5f\x61\160\160"] = $this->Saldoawal_model->get_detailsa_app($kode_skpd); $x = 0; foreach ($data["\x73\141\x6c\x64\x6f\141\x77\x61\x6c\137\154\x61\154\x75"] as $row_sa_lalu) { $nilai[$x]["\151\x64\137\x63\145\x6b\163\x61\154\x64\x6f\141\167\x61\x6c"] = $row_sa_lalu->id_ceksaldoawal; $nilai[$x]["\x6b\x6f\144\145\x5f\163\153\x70\144"] = $row_sa_lalu->kode_skpd; $nilai[$x]["\156\x61\155\141\x5f\163\153\x70\144"] = $row_sa_lalu->nama_skpd; $nilai[$x]["\x6b\144\162\x65\x6b"] = $row_sa_lalu->kdrek; $nilai[$x]["\x6e\x6d\x72\x65\x6b"] = $row_sa_lalu->nmrek; $nilai[$x]["\x6e\x6f\x6d\x69\156\141\x6c"] = $row_sa_lalu->nominal; foreach ($data["\x73\141\154\144\157\x61\x77\141\x6c\x5f\141\160\160"] as $row_sa_app) { if ($row_sa_lalu->kode_skpd == $row_sa_app->kode_skpd & $row_sa_lalu->kdrek == $row_sa_app->kdrek) { $nilai[$x]["\x69\x6e\x70\165\x74\137\x73\141"] = $row_sa_app->tot_input_sa; } } $x++; $data["\156\x61\155\141\x5f\163\153\x70\144"] = $row_sa_lalu->nama_skpd; } $data["\x6e\151\x6c\141\151"] = $nilai; $this->load->view("\166\x69\163\151\164\x6f\162\x2f\x61\144\155\x69\156\57\x73\x61\137\x72\x69\x6e\143\151", $data); } public function sa_rinci_edit($id_ceksaldoawal) { $this->load->model("\x53\x61\154\144\x6f\141\167\141\154\137\x6d\157\x64\x65\x6c"); $data["\163\x61\137\x72\145\x6b"] = $this->Saldoawal_model->get_sa_rek($id_ceksaldoawal); $data["\x69\x64\137\x63\x65\x6b\163\x61\x6c\144\157\x61\167\141\154"] = $id_ceksaldoawal; foreach ($data["\163\141\137\x72\145\x6b"] as $row) { $kode_skpd = $row->kode_skpd; } if (isset($_POST["\x73\x75\x62\x6d\x69\164"])) { $data = array("\x6e\x6f\155\x69\156\141\x6c" => $this->input->post("\156\157\x6d\x69\x6e\x61\154")); $this->Saldoawal_model->edit_sa_rek($data, $id_ceksaldoawal); $this->session->set_flashdata("\x64\157\156\x65", "\x44\x61\x74\141\x20\102\145\x72\x68\141\x73\151\x6c\40\104\x69\165\142\141\150"); redirect("\x61\x64\155\x64\141\163\x68\142\x6f\x61\x72\x64\x2f\163\141\x5f\162\151\x6e\x63\x69\57" . $kode_skpd); } else { $this->load->view("\166\x69\163\151\164\x6f\x72\57\x61\144\x6d\x69\x6e\x2f\145\x64\x69\164\137\163\141\x5f\162\x69\x6e\x63\151", $data); } } public function edit_sa_audited($kode_skpd) { $data["\x6b\157\x64\x65\137\163\x6b\160\x64"] = $kode_skpd; $this->load->model("\102\141\x72\141\156\147\137\155\157\144\x65\154"); $this->load->model("\102\x61\x72\141\x6e\147\x73\153\x70\144\x5f\x6d\157\x64\145\x6c"); $this->load->model("\x53\141\154\144\x6f\141\167\x61\x6c\x5f\x6d\x6f\x64\x65\154"); if (isset($_POST["\163\x75\x62\155\151\164"])) { $data = array("\153\157\144\145\x5f\163\153\x70\x64" => $kode_skpd, "\x6e\x6f\x6d\x69\x6e\141\x6c" => $this->input->post("\156\x6f\155\x69\156\141\154")); $cek = $this->Saldoawal_model->cek_sa_audited($kode_skpd); if ($cek == 1) { $this->Saldoawal_model->edit_sa_audited($data, $kode_skpd); $this->session->set_flashdata("\x64\x6f\x6e\x65", "\x44\x61\x74\x61\x20\x42\145\x72\x68\x61\x73\151\x6c\x20\x44\x69\165\x62\141\150"); } else { $this->Saldoawal_model->insert_sa_audited($data); $this->session->set_flashdata("\144\157\156\145", "\104\x61\164\x61\x20\102\145\162\150\141\x73\x69\x6c\40\104\151\x74\141\155\x62\141\150"); } redirect("\141\144\x6d\144\x61\x73\150\142\157\x61\x72\144\57\143\145\x6b\163\141\154\x64\x6f\141\167\x61\154"); } else { $data["\156\x61\x6d\x61\137\163\153\x70\144"] = $this->Barangskpd_model->get_nama_skpd($kode_skpd); $data["\156\x6f\x6d\151\156\x61\x6c"] = $this->Saldoawal_model->get_nominal_sa($kode_skpd); $this->load->view("\166\151\163\151\164\157\x72\x2f\141\x64\155\x69\x6e\x2f\x65\x64\151\x74\137\163\x61\137\x61\165\144\x69\x74\x65\144", $data); } } }

Function Calls

defined 1

Variables

None

Stats

MD5 3700eda364c5347ed2f2f915ca470495
Eval Count 0
Decode Time 93 ms