Browse Source

modified Kanwil

main
justsuandi 1 year ago
parent
commit
e1a6cc73d1
  1. 8
      app/Controllers/Auth.php
  2. 6
      app/Controllers/Kanwil.php
  3. 13
      app/Views/kanwil/dashboard.php
  4. 1
      writable/debugbar/debugbar_1709566219.466964.json
  5. 1
      writable/debugbar/debugbar_1709567387.739957.json

8
app/Controllers/Auth.php

@ -37,7 +37,13 @@ class Auth extends Controller
'isLogin' => true 'isLogin' => true
]; ];
$session->set($ses_data); $session->set($ses_data);
return redirect()->to(base_url('Home')); if(session('tpkantor') == 'KPDJP'){
return redirect()->to(base_url('Home'));
}else if(session('tpkantor')=='Kanwil'){
return redirect()->to(base_url('Kanwil'));
}else if(session('tpkantor') == 'KPP'){
return redirect()->to(base_url('Kpp'));
}
} else { } else {
//print_r('user tidak ada'); //print_r('user tidak ada');
//exit; //exit;

6
app/Controllers/Kanwil.php

@ -16,7 +16,7 @@ class Kanwil extends BaseController
$model = new MKanwil(); $model = new MKanwil();
if (session('tpkantor') == "KPDJP") { if (session('tpkantor') == 'KPDJP') {
$kwl = $this->request->getPost('kwl'); $kwl = $this->request->getPost('kwl');
} else { } else {
$kwl = session('kppadm'); $kwl = session('kppadm');
@ -33,12 +33,14 @@ class Kanwil extends BaseController
} else { } else {
$bulan = $pbulan; $bulan = $pbulan;
} }
$p['selkwl'] = $model->selKwl()->getResult();
$param = array('kwl' => $kwl, 'tahun' => $tahun, 'bln' => $bulan); $param = array('kwl' => $kwl, 'tahun' => $tahun, 'bln' => $bulan);
$p['kwlx'] = $kwl; $p['kwlx'] = $kwl;
$p['tahunx'] = $tahun; $p['tahunx'] = $tahun;
$p['bulanx'] = $bulan; $p['bulanx'] = $bulan;
$p['selkwl'] = $model->selKwl()->getResult();
$p['penerimaan'] = $model->getPenn($param)->getResult(); $p['penerimaan'] = $model->getPenn($param)->getResult();
$p['updatex'] = $model->getUpd()->getFirstRow('array'); $p['updatex'] = $model->getUpd()->getFirstRow('array');
$p['perkategori'] = $model->getKat($param)->getResult(); $p['perkategori'] = $model->getKat($param)->getResult();

13
app/Views/kanwil/dashboard.php

@ -42,7 +42,13 @@
background: #f1f7ff; background: #f1f7ff;
} }
</style> </style>
<?php
$tahun2 = date('Y');
$rentang_tahun = range($tahun2, 2022);
$hariini = date('d-m-y');
?>
<?php <?php
$tgt = 0; $tgt = 0;
$pennow = 0; $pennow = 0;
@ -61,6 +67,8 @@ foreach ($penerimaan as $row) {
$jml_penerimaan = 0; $jml_penerimaan = 0;
$jml_penlalu = 0; $jml_penlalu = 0;
$jml_penerimaantot = 0;
$pentotlalu = 0;
foreach ($pie_penerimaan as $_junk => $data) { foreach ($pie_penerimaan as $_junk => $data) {
$jml_penerimaan = $jml_penerimaan + $data->PENERIMAAN; $jml_penerimaan = $jml_penerimaan + $data->PENERIMAAN;
$jml_penerimaantot = $data->PENERIMAAN_TOT; $jml_penerimaantot = $data->PENERIMAAN_TOT;
@ -94,11 +102,6 @@ foreach ($paycomp as $rowp) {
} }
$datapaycomp = $datapaycomp . "]"; $datapaycomp = $datapaycomp . "]";
$tahun2 = date('Y');
$rentang_tahun = range($tahun2, 2022);
$hariini = date('d-m-y');
?> ?>
<div class="main-content"> <div class="main-content">

1
writable/debugbar/debugbar_1709566219.466964.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709567387.739957.json

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save