= 6 months ago
parent
commit
c6f2df6fc3
  1. 72
      app/Controllers/Rapor.php
  2. 41
      app/Models/Mbyrlpr.php
  3. 49
      app/Models/Mdetkat.php
  4. 40
      app/Models/Mdetpaycomp.php
  5. 41
      app/Models/Mseksi.php
  6. 13
      app/Views/kanwil/vseksiar.php
  7. 400
      app/Views/rapor/deltabyr.php
  8. BIN
      public/kpdl/dist/a69908d13f6c6fd163c1238329c1c9e2.png
  9. 57207
      public/kpdl/dist/peta.css
  10. 8012
      public/kpdl/dist/peta.js

72
app/Controllers/Rapor.php

@ -308,4 +308,76 @@ class Rapor extends BaseController
return redirect()->to('auth'); return redirect()->to('auth');
} }
} }
function deltabyr()
{
if (session('isLogin')) {
$model = new Mrapor();
$modelref = new Mref();
if (session('tpkantor') == 'KPDJP') {
$kwl = $this->request->getPost('kwl') ?? '090';
$kpp = $this->request->getPost('kpp') ?? 'SEMUA';
$seksi = $this->request->getPost('seksi') ?? 'SEMUA';
$nip = $this->request->getPost('nip') ?? 'SEMUA';
} else if (session('tpkantor') == 'Kanwil') {
$kwl = session('kwladm');
$kpp = $this->request->getPost('kpp') ?? 'SEMUA';
$seksi = $this->request->getPost('seksi') ?? 'SEMUA';
$nip = $this->request->getPost('nip') ?? 'SEMUA';
} else {
$kwl = session('kwladm');
$kpp = session('kppadm');
$seksi = $this->request->getPost('seksi') ?? 'SEMUA';
$nip = $this->request->getPost('nip') ?? 'SEMUA';
}
$ptahun = $this->request->getPost('tahun');
$pbulan = $this->request->getPost('bulan');
$ybulan = $this->request->getPost('bulan1');
if (empty($ptahun)) {
$tahun = date('Y');
} else {
$tahun = $ptahun;
}
if (empty($pbulan)) {
$bulan = date('m');
} else {
$bulan = $pbulan;
}
if(empty($ybulan)){
$bulan1 = '1';
}else{
$bulan1 = $ybulan;
}
$tahunl = $tahun - 1;
$param = array('kwl' => $kwl, 'kpp' => $kpp, 'tahun' => $tahun, 'bln' => $bulan, 'seksi' => $seksi, 'nip' => $nip);
$p['kwlx'] = $kwl;
$p['kppx'] = $kpp;
$p['seksix'] = $seksi;
$p['nipx'] = $nip;
$p['tahunx'] = $tahun;
$p['tahunlx'] = $tahunl;
$p['bulanx'] = $bulan1;
$p['bulany'] = $bulan;
$p['selkwl'] = $modelref->selKwl('')->getResult();
$p['selkpp'] = $modelref->selKpp($kwl)->getResult();
$p['selseksi'] = $modelref->selSeksi($kpp)->getResult();
$p['refbulan'] = $modelref->getBln();
$p['data'] = $model->;
echo view('inc/head');
echo view('inc/navbar');
echo view('inc/sidebar');
echo view('rapor/deltabyr', $p);
echo view('inc/footer');
} else {
return redirect()->to('auth');
}
}
} }

41
app/Models/Mbyrlpr.php

@ -18,12 +18,30 @@ class Mbyrlpr extends Model
$seksi = $param['seksi']; $seksi = $param['seksi'];
$nip = $param['nip']; $nip = $param['nip'];
$pilihan = $param['pilihan']; $pilihan = $param['pilihan'];
if ($kpp == "SEMUA") {
$cekkpp = "";
} else {
$cekkpp = "AND KPPADM = '" . $kpp . "'";
}
if ($seksi == "SEMUA") {
$cekseksi = "";
} else {
$cekseksi =
"AND KODESIE = '" . $seksi . "'";
}
if ($nip == "SEMUA") {
$ceknip = "";
} else {
$ceknip = "AND NIP = '" . $nip . "'";
}
if ($pilihan == '1') { if ($pilihan == '1') {
$cekpil = "AND JMLBYR IS NOT NULL AND BYRLALU IS NULL"; $cekpil = "AND JMLBYR IS NOT NULL AND BYRLALU IS NULL";
} else if ($pilihan == '2') { } else if ($pilihan == '2') {
$cekpil = "AND JMLBYR IS NULL AND BYRLALU IS NOT NULL"; $cekpil = "AND JMLBYR IS NULL AND BYRLALU IS NOT NULL";
} }
$query = $this->db->query("SELECT COUNT(1) NUMROWS FROM DASHBOARD_BYRLPR WHERE TAHUN = '" . $tahun . "' AND KWLADM = '" . $kwl . "' AND KPPADM = '" . $kpp . "' AND KODESIE = '" . $seksi . "' AND NIP_AR = '" . $nip . "' $cekpil "); $query = $this->db->query("SELECT COUNT(1) NUMROWS FROM DASHBOARD_BYRLPR WHERE TAHUN = '" . $tahun . "' AND KWLADM = '" . $kwl . "' $cekpil $cekkpp $cekseksi $ceknip");
return $query; return $query;
} }
@ -47,12 +65,25 @@ class Mbyrlpr extends Model
$jmlbyrp = "BYRLALU IS NOT NULL"; $jmlbyrp = "BYRLALU IS NOT NULL";
} }
if ($kpp == "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= ['KWLADM' => $kwl ];
} else if($kpp != "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp];
}else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip == "SEMUA"){
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp, 'KODESIE' => $seksi];
}
else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip != "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KODESIE' => $seksi, 'NIP_AR' => $nip];
}
$this->builder() $this->builder()
->where('TAHUN', $tahun) ->where('TAHUN', $tahun)
->where('KWLADM', $kwl) ->where($array)
->where('KPPADM', $kpp)
->where('KODESIE', $seksi)
->where('NIP_AR', $nip)
->where($jmlbyrn) ->where($jmlbyrn)
->where($jmlbyrp) ->where($jmlbyrp)
->limit($limit, $offset); ->limit($limit, $offset);

49
app/Models/Mdetkat.php

@ -19,15 +19,30 @@ class Mdetkat extends Model
$seksi = $param['seksi']; $seksi = $param['seksi'];
$nip = $param['nip']; $nip = $param['nip'];
$kategori = $param['kategori']; $kategori = $param['kategori'];
if ($kpp == "SEMUA") {
$cekkpp = "";
} else {
$cekkpp = "AND KPPADM = '" . $kpp . "'";
}
if ($seksi == "SEMUA") {
$cekseksi = "";
} else {
$cekseksi =
"AND KODESIE = '" . $seksi . "'";
}
if ($nip == "SEMUA") {
$ceknip = "";
} else {
$ceknip = "AND NIP = '" . $nip . "'";
}
$query = $this->db->query("SELECT NPWP,NAMA,KATEGORI,TOTAL $query = $this->db->query("SELECT NPWP,NAMA,KATEGORI,TOTAL
FROM DASHBOARD_BESAR_MAPKJS FROM DASHBOARD_BESAR_MAPKJS
WHERE THNBYR = '" . $tahun . "' WHERE THNBYR = '" . $tahun . "'
AND KWLADM = '" . $kwl . "' AND KWLADM = '" . $kwl . "'
AND BLNBYR <= '" . $bln . "' AND BLNBYR <= '" . $bln . "'
AND KPPADM='" . $kpp . "' AND KATEGORI='" . $kategori . "' $cekkpp $cekseksi $ceknip");
AND KODESIE='" . $seksi . "'
AND NIP='" . $nip . "'
AND KATEGORI='" . $kategori . "' ");
return $query; return $query;
} }
@ -43,17 +58,31 @@ class Mdetkat extends Model
$offset = $param['page']; $offset = $param['page'];
$limit = $param['perPage']; $limit = $param['perPage'];
$kategori = $param['kategori']; $kategori = $param['kategori'];
if ($kpp == "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= ['KWLADM' => $kwl ];
} else if($kpp != "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp];
}else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip == "SEMUA"){
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp, 'KODESIE' => $seksi];
}
else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip != "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KODESIE' => $seksi, 'NIP' => $nip];
}
$this->builder() $this->builder()
->select('NPWP,NAMA') ->select('NPWP,NAMA')
->selectSum('TOTAL') ->selectSum('TOTAL')
->where('THNBYR', $tahun) ->where('THNBYR' ,$tahun)
->where('KWLADM', $kwl)
->where('KPPADM', $kpp)
->where('KODESIE', $seksi)
->where('NIP', $nip)
->where('KATEGORI', $kategori) ->where('KATEGORI', $kategori)
->where('BLNBYR <=', $bln) ->where('BLNBYR <=', $bln)
->where($array)
->groupBy('NPWP,NAMA') ->groupBy('NPWP,NAMA')
->limit($limit, $offset); ->limit($limit, $offset);

40
app/Models/Mdetpaycomp.php

@ -18,9 +18,26 @@ class Mdetpaycomp extends Model
$seksi = $param['seksi']; $seksi = $param['seksi'];
$nip = $param['nip']; $nip = $param['nip'];
$jmlbln = $param['jmlbln']; $jmlbln = $param['jmlbln'];
if ($kpp == "SEMUA") {
$cekkpp = "";
} else {
$cekkpp = "AND KPPADM = '" . $kpp . "'";
}
if ($seksi == "SEMUA") {
$cekseksi = "";
} else {
$cekseksi =
"AND KODESIE = '" . $seksi . "'";
}
if ($nip == "SEMUA") {
$ceknip = "";
} else {
$ceknip = "AND NIP = '" . $nip . "'";
}
$query = $this->db->query("SELECT NPWP,NAMA,SUM(TOTAL) FROM( $query = $this->db->query("SELECT NPWP,NAMA,SUM(TOTAL) FROM(
SELECT NPWP, NAMA, TOTAL,COUNT(1) JMLBLN SELECT NPWP, NAMA, TOTAL,COUNT(1) JMLBLN
FROM DASHBOARD_WP_BLN WHERE TAHUN = '" . $tahun . "' AND KWLADM = '" . $kwl . "' AND KPPADM = '" . $kpp . "' AND KODESIE = '" . $seksi . "' AND NIP = '" . $nip . "' FROM DASHBOARD_WP_BLN WHERE TAHUN = '" . $tahun . "' AND KWLADM = '" . $kwl . "'$cekkpp $cekseksi $ceknip
GROUP BY NPWP,NAMA,TOTAL) WHERE JMLBLN = '" . $jmlbln . "' GROUP BY NPWP,NAMA,TOTAL) WHERE JMLBLN = '" . $jmlbln . "'
GROUP BY NPWP,NAMA "); GROUP BY NPWP,NAMA ");
return $query; return $query;
@ -38,15 +55,28 @@ class Mdetpaycomp extends Model
$offset = $param['page']; $offset = $param['page'];
$limit = $param['perPage']; $limit = $param['perPage'];
if ($kpp == "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= ['KWLADM' => $kwl ];
} else if($kpp != "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp];
}else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip == "SEMUA"){
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp, 'KODESIE' => $seksi];
}
else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip != "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KODESIE' => $seksi, 'NIP' => $nip];
}
$this->builder() $this->builder()
->select('NPWP,NAMA') ->select('NPWP,NAMA')
->selectSum('TOTAL') ->selectSum('TOTAL')
->selectCount('1', 'JMLBLN') ->selectCount('1', 'JMLBLN')
->where('TAHUN', $tahun) ->where('TAHUN', $tahun)
->where('KWLADM', $kwl) ->where($array)
->where('KPPADM', $kpp)
->where('KODESIE', $seksi)
->where('NIP', $nip)
->groupBy('NPWP,NAMA') ->groupBy('NPWP,NAMA')
->having('COUNT(1)', $jmlbln, TRUE) ->having('COUNT(1)', $jmlbln, TRUE)
->limit($limit, $offset); ->limit($limit, $offset);

41
app/Models/Mseksi.php

@ -627,11 +627,24 @@ class Mseksi extends Model
} else if ($lapisan == 9) { } else if ($lapisan == 9) {
$saylapisan = "> 10000000"; $saylapisan = "> 10000000";
} }
if ($kpp == "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= ['KWLADM' => $kwl ];
} else if($kpp != "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp];
}else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip == "SEMUA"){
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp, 'KODESIE' => $seksi];
}
else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip != "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KODESIE' => $seksi, 'NIP' => $nip];
}
$this->builder()->where('TAHUN', $tahun) $this->builder()->where('TAHUN', $tahun)
->where('KWLADM', $kwl) ->where($array)
->where('KPPADM', $kpp)
->where('KODESIE', $seksi)
->where('NIP', $nip)
->where('ROUND(TOTAL) ' . $saylapisan . '') ->where('ROUND(TOTAL) ' . $saylapisan . '')
->limit($limit, $offset); ->limit($limit, $offset);
@ -669,13 +682,25 @@ class Mseksi extends Model
} else if ($lapisan == 9) { } else if ($lapisan == 9) {
$saylapisan = "> 10000000"; $saylapisan = "> 10000000";
} }
if ($kpp == "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= ['KWLADM' => $kwl ];
} else if($kpp != "SEMUA" && $seksi == "SEMUA" && $nip == "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp];
}else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip == "SEMUA"){
$array
= [ 'KWLADM' => $kwl, 'KPPADM' => $kpp, 'KODESIE' => $seksi];
}
else if ($kpp != "SEMUA" && $seksi != "SEMUA" && $nip != "SEMUA") {
$array
= [ 'KWLADM' => $kwl, 'KODESIE' => $seksi, 'NIP' => $nip];
}
$builder = $this->db->table('DASHBOARD_WP'); $builder = $this->db->table('DASHBOARD_WP');
$builder->where('TAHUN', $tahun); $builder->where('TAHUN', $tahun);
$builder->where('KWLADM', $kwl); $builder->where($array);
$builder->where('KPPADM', $kpp);
$builder->where('KODESIE', $seksi);
$builder->where('NIP', $nip);
$builder->where('ROUND(TOTAL) ' . $saylapisan . ''); $builder->where('ROUND(TOTAL) ' . $saylapisan . '');
$builder->limit($limit, $offset); $builder->limit($limit, $offset);

13
app/Views/kanwil/vseksiar.php

@ -487,17 +487,14 @@ $totalwpall = $wpbaru + $wplama;
<td><?= $row->KODE ?></td> <td><?= $row->KODE ?></td>
<td><?= $row->NMKAT ?></td> <td><?= $row->NMKAT ?></td>
<td class="text-right"><?= number_format($row->POPULASI, 0, ',', '.') ?></td> <td class="text-right"><?= number_format($row->POPULASI, 0, ',', '.') ?></td>
<?php if ($nipx != "SEMUA") { ?>
<td class="text-right"><a <td class="text-right"><a
href="<?php echo base_url('Seksiar/detkat/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunx . '/' . $bulanx . '/' . $row->KODE . '') ?>" href="<?php echo base_url('Seksiar/detkat/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunx . '/' . $bulanx . '/' . $row->KODE . '') ?>"
target="_blank"><?= number_format($row->WPBYRN, 0, ',', '.') ?></a></td> target="_blank"><?= number_format($row->WPBYRN, 0, ',', '.') ?></a></td>
<td class="text-right"><a <td class="text-right"><a
href="<?php echo base_url('Seksiar/detkat/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunlx . '/' . $bulanx . '/' . $row->KODE . '') ?>" href="<?php echo base_url('Seksiar/detkat/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunlx . '/' . $bulanx . '/' . $row->KODE . '') ?>"
target="_blank"><?= number_format($row->WPBYRP, 0, ',', '.') ?></a></td> target="_blank"><?= number_format($row->WPBYRP, 0, ',', '.') ?></a></td>
<?php } else { ?>
<td class="text-right"><?= number_format($row->WPBYRN, 0, ',', '.') ?></td>
<td class="text-right"><?= number_format($row->WPBYRP, 0, ',', '.') ?></td>
<?php } ?>
<td class="text-center"><?= number_format($covratio, 2) ?></td> <td class="text-center"><?= number_format($covratio, 2) ?></td>
<td class="text-center <?= $markgww ?>"><?= number_format($gwwp, 2) ?> <td class="text-center <?= $markgww ?>"><?= number_format($gwwp, 2) ?>
<?php echo $markgwwic ?></td> <?php echo $markgwwic ?></td>
@ -1749,13 +1746,11 @@ $totalwpall = $wpbaru + $wplama;
?> ?>
<tbody> <tbody>
<td><?= $row->LAPISAN; ?></td> <td><?= $row->LAPISAN; ?></td>
<?php if ($nipx == "SEMUA") { ?>
<td class="text-right"><?= number_format($row->WPBYR, 0, ',', '.') ?></td>
<?php } else { ?>
<td class="text-right"><a <td class="text-right"><a
href="<?php echo base_url('Seksiar/detSOF/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunx . '/' . $row->NO . '') ?>" href="<?php echo base_url('Seksiar/detSOF/' . $kwlx . '/' . $kppx . '/' . $seksix . '/' . $nipx . '/' . $tahunx . '/' . $row->NO . '') ?>"
target="_blank"><?= number_format($row->WPBYR, 0, ',', '.') ?></a></td> target="_blank"><?= number_format($row->WPBYR, 0, ',', '.') ?></a></td>
<?php } ?>
<td class="text-right <?= $mpctwp ?>"><?= number_format($pctwp, 2) ?> <?= $markmpctwp ?> <td class="text-right <?= $mpctwp ?>"><?= number_format($pctwp, 2) ?> <?= $markmpctwp ?>
</td> </td>

400
app/Views/rapor/deltabyr.php

@ -0,0 +1,400 @@
<style>
.highcharts-figure,
.highcharts-data-table table {
min-width: 320px;
max-width: 800px;
margin: 1em auto;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #ebebeb;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
</style>
<?php
$tahun2 = date('Y');
$rentang_tahun = range($tahun2, 2022);
?>
<div class="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 mb-2">
<div class="card">
<div class="card-header">
<h3>Pilih :</h3>
<div class="card-header-right">
<ul class="list-unstyled card-option">
<li><i class="ik ik-chevron-left action-toggle"></i></li>
<li><i class="ik ik-minus minimize-card"></i></li>
<li><i class="ik ik-x close-card"></i></li>
</ul>
</div>
</div>
<div class="card-body">
<form class="form-sample" action="<?php base_url('rapor/deltabyr') ?>" method="post">
<?php if (session('tpkantor') == 'KPDJP') {
$disabledslct = "";
} else {
$disabledslct = "disabled";
}
if (session('tpkantor') == 'KPP') {
$disableslckpp = "disabled";
} else {
$disableslckpp = "";
}
?>
<div class="row row-cols-1 row-cols-md-2">
<div class="col-md-6 col-sm-12">
<label class="my-1 mr-2">Kanwil </label>
<select class="custom-select my-1 mr-sm-2" id="kwl" name="kwl" <?php echo $disabledslct ?>>
<?php if(session('tpkantor') == 'KPDJP'){
echo "<option value='semua'>Nasional</option>";
}
?>
<?php
foreach ($selkwl as $row) {
if ($row->KODE == $kwlx) {
$sel = "selected";
} else {
$sel = "";
}
echo "<option value=\"" . $row->KODE . "\" " . $sel . ">" . $row->KODE . " - " . $row->NAMA . "</option>";
}
?>
</select>
<label class="my-1 mr-2">KPP </label>
<select class="custom-select my-1 mr-sm-2" id="kpp" name="kpp" <?php echo $disableslckpp ?>>
</select>
<label class="my-1 mr-2">Seksi </label>
<select class="custom-select my-1 mr-sm-2" id="seksi" name="seksi">
</select>
</div>
<div class="col-md-6 col-sm-12">
<label class="my-1 mr-2">AR </label>
<select class="custom-select my-1 mr-sm-2" id="nip" name="nip">
</select>
<label class="my-1 mr-2">Tahun </label>
<select class="custom-select my-1 mr-sm-2" id="tahun" name="tahun">
<?php
foreach ($rentang_tahun as $tahun) {
if ($tahun == $tahunx) {
$sel = "selected";
} else {
$sel = "";
}
echo "<option value=\"" . $tahun . "\" " . $sel . ">" . $tahun . "</option>";
}
?>
</select>
<label></label>
<label class="my-1 mr-2">Bulan </label>
<select class="custom-select my-1 mr-sm-2" id="bulan" name="bulan">
<?php
foreach ($refbulan as $rowb) {
if ($rowb->KODE == $bulany) {
$isSelected = ' selected="selected"';
} else {
$isSelected = '';
}
echo "<option value='" . $rowb->KODE . "'" . $isSelected . ">" . ucfirst(strtolower($rowb->NM_PANJANG)) . "</option>";
}
?>
</select>
<label class="my-1 mr-2">s.d. Bulan </label>
<select class="custom-select my-1 mr-sm-2" id="bulan1" name="bulan1">
<?php
foreach ($refbulan as $rowb) {
if ($rowb->KODE == $bulanx) {
$isSelected = ' selected="selected"';
} else {
$isSelected = '';
}
echo "<option value='" . $rowb->KODE . "'" . $isSelected . ">" . ucfirst(strtolower($rowb->NM_PANJANG)) . "</option>";
}
?>
</select>
<button type="submit"
class="btn btn-primary btn-lg active mt-5 float-right">Proses</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>WP Bayar <?= $tahunx?> </h6>
<h6></h6>
</div>
<div class="icon text-green">
<i class="ik ik-award"></i>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>WP Bayar <?= $tahunx -1?></h6>
<h6><b></b></h6>
</div>
<div class="icon">
<i class="ik ik-thumbs-up text-blue"></i>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Ratio % </h6>
<h6></h6>
</div>
<div class="icon">
<i class="ik ik-calendar text-orange"></i>
</div>
</div>
</small>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Delta</h6>
<h6 class="text-left ">
<b></b></h6>
</div>
<div class="icon">
<i class="ik ik-alert-triangle "></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo view('inc/js.php') ?>
<script>
$(function () {
$("#tablekat").tablesorter({
usNumberFormat: false
});
});
</script>
<script>
$(document).ready(function () {
$('#kwl').change(function () {
var kwl = $('#kwl').val();
var kpp = $('#kpp').val();
if (kwl != '') {
$.ajax({
url: "<?php echo base_url('/ref/getKPP'); ?>",
method: "POST",
data: {
kwl: kwl
},
dataType: "JSON",
success: function (data) {
$('select[name="kpp"]').empty();
$('select[name="kpp"]').append('<option value="SEMUA">Semua</option>');
$.each(data, function (key, value) {
$('select[name="kpp"]').append('<option value="' + value.KD_KPP + '">' + value.NM_KANTOR + '</option>');
});
<?php
if ($kppx != '') { ?>
$('#kpp').val('<?php echo $kppx ?>').change();
$('#seksi').change();
<?php } ?>
}
});
} else {
$('#kpp').val('');
}
});
<?php
if ($kwlx != '') { ?>
$('#kwl').val('<?php echo $kwlx ?>').change();
<?php } ?>
$('#kpp').change(function () {
var kpp = $('#kpp').val();
if (kpp == '' || kpp == 'SEMUA') {
$('#seksi').attr('disabled', true);
} else {
$('#seksi').attr('disabled', false);
}
if (seksi != '') {
$.ajax({
url: "<?php echo base_url('/ref/getSeksi'); ?>",
method: "POST",
data: {
kpp: kpp,
},
dataType: "JSON",
success: function (datas) {
$('select[name="seksi"]').empty();
$('select[name="seksi"]').append('<option value="SEMUA">Semua</option>');
$.each(datas, function (key, value) {
$('select[name="seksi"]').append('<option value="' + value.KODESIE + '">' + value.SEKSI + ' - ' + value.NAMA + '</option>');
});
<?php
if ($seksix != '') { ?>
$('#seksi').val('<?php echo $seksix ?>').change();
$('#nip').change();
<?php } ?>
}
});
} else {
$('#seksi').val('');
}
});
<?php
if ($kppx != '') { ?>
$('#kpp').change();
<?php } ?>
$('#seksi').change(function () {
var kpp = $('#kpp').val();
var seksi = $('#seksi').val();
var nip = $('#nip').val()
if (seksi == '' || seksi == 'SEMUA') {
$('#nip').attr('disabled', true);
} else {
$('#nip').attr('disabled', false);
}
if (seksi != '') {
$.ajax({
url: "<?php echo base_url('/ref/getAR'); ?>",
method: "POST",
data: {
kpp: kpp,
seksi: seksi
},
dataType: "JSON",
success: function (datas) {
$('select[name="nip"]').empty();
$('select[name="nip"]').append('<option value="SEMUA">Semua</option>');
$.each(datas, function (key, value) {
$('select[name="nip"]').append('<option value="' + value.NIP + '">' + value.NIP + ' - ' + value.NAMA + '</option>');
});
<?php
if ($nipx != '') { ?>
$('#nip').val('<?php echo $nipx ?>').change();
<?php } ?>
}
});
} else {
$('#nip').val('');
}
});
<?php
if ($seksix != '') { ?>
$('#seksi').change();
<?php } ?>
});
</script>

BIN
public/kpdl/dist/a69908d13f6c6fd163c1238329c1c9e2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

57207
public/kpdl/dist/peta.css vendored

File diff suppressed because one or more lines are too long

8012
public/kpdl/dist/peta.js vendored

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