You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
262 lines
15 KiB
262 lines
15 KiB
<?php |
|
/* ini_set('memory_limit', '8096M'); |
|
|
|
echo 'Initial memory usage: ' . memory_get_usage() . ' bytes' . PHP_EOL; |
|
*/ |
|
echo view('inc/head.php') ?> |
|
|
|
|
|
<div class="main-content"> |
|
<div class="container-fluid"> |
|
<div class="row"> |
|
<?php if($sourcex == '1'){ |
|
$judul = "Strategis"; |
|
}else{ |
|
$judul = "Kewilayahan"; |
|
} ?> |
|
<div></div> |
|
<div></div> |
|
<h3> <?= $judul?> </h3> |
|
<div class="row mx-auto"> |
|
<table class="table table-sm"> |
|
<thead> |
|
<tr> |
|
<th class="text-center" rowspan="2">No</th> |
|
<th class="text-center" rowspan="2">Strength of Figure</th> |
|
<th class="text-center" colspan="2">Jml Wajib Pajak</th> |
|
<th class="text-center" colspan="2">Jml Bayar <?php echo $tahunx; ?></th> |
|
</tr> |
|
<tr> |
|
<th class="text-center">Jumlah</th> |
|
<th class="text-center">%</th> |
|
<th class="text-center">Jumlah</th> |
|
<th class="text-center">%</th> |
|
</tr> |
|
</thead> |
|
<?php |
|
$jumlah["0"]["1"] = 0; |
|
$jumlah["9"]["1"] = 0; |
|
$jumlah["1"]["1"] = 0; |
|
$jumlah["2"]["1"] = 0; |
|
$jumlah["3"]["1"] = 0; |
|
$jumlah["4"]["1"] = 0; |
|
$jumlah["5"]["1"] = 0; |
|
$jumlah["6"]["1"] = 0; |
|
$jumlah["7"]["1"] = 0; |
|
$jumlah["8"]["1"] = 0; |
|
$jumlah["0"]["2"] = 0; |
|
$jumlah["9"]["2"] = 0; |
|
$jumlah["1"]["2"] = 0; |
|
$jumlah["2"]["2"] = 0; |
|
$jumlah["3"]["2"] = 0; |
|
$jumlah["4"]["2"] = 0; |
|
$jumlah["5"]["2"] = 0; |
|
$jumlah["6"]["2"] = 0; |
|
$jumlah["7"]["2"] = 0; |
|
$jumlah["8"]["2"] = 0; |
|
foreach ($SoF as $_junk => $data) { |
|
if ($data->TOTAL < 0) { |
|
$jumlah["9"]["1"] += 1; |
|
$jumlah["9"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 5000) { |
|
$jumlah["1"]["1"] += 1; |
|
$jumlah["1"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 10000) { |
|
$jumlah["2"]["1"] += 1; |
|
$jumlah["2"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 100000) { |
|
$jumlah["3"]["1"] += 1; |
|
$jumlah["3"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 500000) { |
|
$jumlah["4"]["1"] += 1; |
|
$jumlah["4"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 1000000) { |
|
$jumlah["5"]["1"] += 1; |
|
$jumlah["5"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 5000000) { |
|
$jumlah["6"]["1"] += 1; |
|
$jumlah["6"]["2"] += $data->TOTAL; |
|
} elseif ($data->TOTAL < 10000000) { |
|
$jumlah["7"]["1"] += 1; |
|
$jumlah["7"]["2"] += $data->TOTAL; |
|
} else { |
|
$jumlah["8"]["1"] += 1; |
|
$jumlah["8"]["2"] += $data->TOTAL; |
|
} |
|
$jumlah["0"]["1"] += 1; |
|
$jumlah["0"]["2"] += $data->TOTAL; |
|
} |
|
?> |
|
<tbody> |
|
<tr> |
|
<td class='text-center'>1</td> |
|
<td class='text-left'>Lapisan 0</td> |
|
<td class='text-right'><?= number_format(($jumlah["9"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= number_format(($jumlah["9"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["9"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= number_format(($jumlah["9"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>2</td> |
|
<td class='text-left'>Lapisan 1 - 5.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["1"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["1"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["1"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["1"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>3</td> |
|
<td class='text-left'>Lapisan 5.000 - 10.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["2"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["2"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["2"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["2"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>4</td> |
|
<td class='text-left'>Lapisan 10.000 - 100.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["3"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["3"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["3"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["3"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>5</td> |
|
<td class='text-left'>Lapisan 100.000 - 500.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["4"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["4"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["4"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["4"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>6</td> |
|
<td class='text-left'>Lapisan 500.000 - 1.000.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["5"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["5"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["5"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["5"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>7</td> |
|
<td class='text-left'>Lapisan 1.000.000 - 5.000.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["6"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["6"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["6"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["6"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>8</td> |
|
<td class='text-left'>Lapisan 5.000.000 - 10.000.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["7"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["7"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["7"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["7"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class='text-center'>9</td> |
|
<td class='text-left'>Lapisan >= 10.000.000</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["8"]["1"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["8"]["1"] / ($jumlah["0"]["1"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
<td class='text-right'><?= number_format(($jumlah["8"]["2"]), 0, ',', '.') ?> |
|
</td> |
|
<td class='text-right'> |
|
<?= |
|
number_format(($jumlah["8"]["2"] / ($jumlah["0"]["2"] ?: 1)) * 100, 2, ',', '.') ?> |
|
</td> |
|
</tr> |
|
|
|
</tbody> |
|
</table> |
|
<small class="text-primary">*) Nilai Persentase dibawah 0% berwarna merah</small> |
|
|
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
|
|
</body>
|
|
|