if ($assetYear != null) {
        if ($assetYear == "0000") {
            $cmd = $arrAll;
        } else {
            $cmd = $arrYear;
        }
    } else {
        $cmd = $arrAll;
    }
}
$page = $_GET['selectedPage'];
$iPage = 20;
if ($page >= 0) {
    $startPage = $page * $iPage;
    $endPage = 20;
    $arrL = $checkAsset->getCheckAssetLimit($startPage, $endPage);
    $arrA = $checkAsset->getCheckAsset();
    $cmd = $arrL;
    $cmdA = $arrA;
    echo "จำนวนหน้าทั้งหมด : ";
} else {
    $startPage = 0;
    $endPage = 20;
    $arrA = $checkAsset->getCheckAsset();
    $cmdA = $arrA;
}
$num = $db->num_rows($cmdA);
$numPage = round($num / 20);
$i = 0;
$j = 1;
while ($i < $numPage) {