|
|
|
@ -60,25 +60,32 @@ foreach ($penerimaan as $row) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$jml_penerimaan = 0; |
|
|
|
|
$jml_penlalu = 0; |
|
|
|
|
foreach ($pie_penerimaan as $_junk => $data) { |
|
|
|
|
$jml_penerimaan = $jml_penerimaan + $data->PENERIMAAN; |
|
|
|
|
$jml_penerimaantot = $data->PENERIMAAN_TOT; |
|
|
|
|
$pentotlalu = $data->PENERIMAAN_TOTL; |
|
|
|
|
$jml_penlalu = $jml_penlalu + $data->PENL; |
|
|
|
|
} |
|
|
|
|
$jml_penerimaan = $jml_penerimaantot - $jml_penerimaan; |
|
|
|
|
$jml_penlalu = $pentotlalu - $jml_penlalu; |
|
|
|
|
$gwpiepenl = (($jml_penerimaan - $jml_penlalu) / $jml_penlalu) * 100; |
|
|
|
|
$row = 0; |
|
|
|
|
|
|
|
|
|
$datanya_penerimaan = "["; |
|
|
|
|
foreach ($pie_penerimaan as $_junk => $data) { |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . "{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . "}"; |
|
|
|
|
$gwpiepen = (($data->PENERIMAAN - $data->PENL) / $data->PENL) * 100; |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . "{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . " , gw:" . $gwpiepen . "}"; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
foreach ($pie_penerimaan as $_junk => $data) { |
|
|
|
|
if ($row <> 0) { |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . ",{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . "}"; |
|
|
|
|
$gwpiepen = (($data->PENERIMAAN - $data->PENL) / $data->PENL) * 100; |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . ",{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . ", gw:" . $gwpiepen . "}"; |
|
|
|
|
} |
|
|
|
|
$row = $row + 1; |
|
|
|
|
} |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . ",{name: 'Lainnya',y:" . $jml_penerimaan . "}]"; |
|
|
|
|
$datanya_penerimaan = $datanya_penerimaan . ",{name: 'Lainnya',y:" . $jml_penerimaan . ", gw: " . $gwpiepenl . "}]"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$datapaycomp = "["; |
|
|
|
@ -93,7 +100,7 @@ $datapaycomp = $datapaycomp . "]";
|
|
|
|
|
|
|
|
|
|
<div class="main-content"> |
|
|
|
|
<div class="container-fluid"> |
|
|
|
|
<h3>Dashboard Nasional</h3> |
|
|
|
|
<h4>Dashboard Penerimaan Nasional</h4> |
|
|
|
|
<div class="row clearfix"> |
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-12"> |
|
|
|
|
<div class="widget"> |
|
|
|
@ -414,7 +421,7 @@ $datapaycomp = $datapaycomp . "]";
|
|
|
|
|
</tbody> |
|
|
|
|
<?php } ?> |
|
|
|
|
</table> |
|
|
|
|
<small>*) Nilai Persentase dibawah 20% berwarna merah</small> |
|
|
|
|
<small class="text-primary">*) Nilai Persentase dibawah 20% berwarna merah</small> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
@ -680,7 +687,7 @@ $datapaycomp = $datapaycomp . "]";
|
|
|
|
|
text: '' |
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
pointFormat: 'Peranan: <b>{point.percentage:.1f}%</b>' |
|
|
|
|
pointFormat: 'Peranan: <b>{point.percentage:.1f}%</b> <br> Gw : {point.gw:.1f}%' |
|
|
|
|
}, |
|
|
|
|
accessibility: { |
|
|
|
|
point: { |
|
|
|
@ -802,7 +809,7 @@ $datapaycomp = $datapaycomp . "]";
|
|
|
|
|
text: '' |
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b> <br> jmlWP : {point.y}' |
|
|
|
|
pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b> <br> jmlWP : {point.y} ' |
|
|
|
|
}, |
|
|
|
|
accessibility: { |
|
|
|
|
point: { |
|
|
|
|