Example #1
0
            $nilpot_07 = $row['kdpot_07'] * persen_pot('07');
            $nilpot_08 = $row['kdpot_08'] * persen_pot('08');
            $nilpot_31 = $row['kdpot_31'] * persen_pot('31');
            $nilpot_32 = $row['kdpot_32'] * persen_pot('32');
            $nilpot_33 = $row['kdpot_33'] * persen_pot('33');
            $nilpot_34 = $row['kdpot_34'] * persen_pot('34');
            $nilpot_10 = $row['kdpot_10'] * persen_pot('10');
            $nilpot_11 = $row['kdpot_11'] * persen_pot('11');
            $nilpot_12 = $row['kdpot_12'] * persen_pot('12');
            $nilpot_13 = $row['kdpot_13'] * persen_pot('13');
            $nilpot_14 = $row['kdpot_14'] * persen_pot('14');
            $nilpot_15 = $row['kdpot_15'] * persen_pot('15');
            $nilpot_16 = $row['kdpot_16'] * persen_pot('16');
            $nilpot_21 = $row['kdpot_21'] * persen_pot('21');
            $nilpot_22 = $row['kdpot_22'] * persen_pot('22');
            $nilpot_40 = $row['kdpot_40'] * persen_pot('40');
            $totpot = $nilpot_10 + $nilpot_11 + $nilpot_12 + $nilpot_13 + $nilpot_14 + $nilpot_15 + $nilpot_16 + $nilpot_01 + $nilpot_02 + $nilpot_03 + $nilpot_04 + $nilpot_05 + $nilpot_06 + $nilpot_07 + $nilpot_08 + $nilpot_31 + $nilpot_32 + $nilpot_33 + $nilpot_34 + $nilpot_21 + $nilpot_22 + $nilpot_40;
        }
        $sql_tk = "UPDATE mst_tk SET kurang = '{$totpot}'  WHERE nib = '{$nib}' and tahun = '{$tahun}' AND bulan = '{$bulan}' and grade = '{$grade}' ";
        //mysql_query($sql_tk);
        ?>
			<meta http-equiv="refresh" content="0;URL=index.php?p=<?php 
        echo $p_next;
        ?>
"><?php 
    }
}
?>

<form action="index.php?p=<?php 
echo $_GET['p'];
 if ($row['kdpot_15'] == 0) {
     $arrPot_15 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 if ($row['kdpot_16'] != 0) {
     $arrPot_16 = $pdf->SplitToArray($w1[6], $ln, $row['kdpot_16']);
 }
 if ($row['kdpot_16'] == 0) {
     $arrPot_16 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 $nilpot_10 = $row['kdpot_10'] * persen_pot('10');
 $nilpot_11 = $row['kdpot_11'] * persen_pot('11');
 $nilpot_12 = $row['kdpot_12'] * persen_pot('12');
 $nilpot_13 = $row['kdpot_13'] * persen_pot('13');
 $nilpot_14 = $row['kdpot_14'] * persen_pot('14');
 $nilpot_15 = $row['kdpot_15'] * persen_pot('15');
 $nilpot_16 = $row['kdpot_16'] * persen_pot('16');
 $totpot = $nilpot_10 + $nilpot_11 + $nilpot_12 + $nilpot_13 + $nilpot_14 + $nilpot_15 + $nilpot_16;
 if ($row['kdpot_10'] != 0) {
     $arrNil_10 = $pdf->SplitToArray($w1[6], $ln, number_format($nilpot_10, "1", ",", ".") . '%');
 }
 if ($row['kdpot_10'] == 0) {
     $arrNil_10 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 if ($row['kdpot_11'] != 0) {
     $arrNil_11 = $pdf->SplitToArray($w1[6], $ln, number_format($nilpot_11, "1", ",", ".") . '%');
 }
 if ($row['kdpot_11'] == 0) {
     $arrNil_11 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 if ($row['kdpot_12'] != 0) {
     $arrNil_12 = $pdf->SplitToArray($w1[6], $ln, number_format($nilpot_12, "1", ",", ".") . '%');
Example #3
0
 $nilpot_02 = $row['kdpot_02'] * persen_pot('02');
 $nilpot_03 = $row['kdpot_03'] * persen_pot('03');
 $nilpot_04 = $row['kdpot_04'] * persen_pot('04');
 $nilpot_05 = $row['kdpot_05'] * persen_pot('05');
 $nilpot_06 = $row['kdpot_06'] * persen_pot('06');
 $nilpot_07 = $row['kdpot_07'] * persen_pot('07');
 $nilpot_08 = $row['kdpot_08'] * persen_pot('08');
 $nilpot_31 = $row['kdpot_31'] * persen_pot('31');
 $nilpot_32 = $row['kdpot_32'] * persen_pot('32');
 $nilpot_33 = $row['kdpot_33'] * persen_pot('33');
 $nilpot_34 = $row['kdpot_34'] * persen_pot('34');
 $nilpot_21 = $row['kdpot_21'] * persen_pot('21');
 $nilpot_22 = $row['kdpot_22'] * persen_pot('22');
 $nilpot_40 = $row['kdpot_40'] * persen_pot('40');
 $nilpot_tk = $row['kdpot_tk'] * persen_pot('tk');
 $nilpot_cm = $row['kdpot_cm'] * persen_pot('cm');
 $totpot = $nilpot_10 + $nilpot_11 + $nilpot_12 + $nilpot_13 + $nilpot_14 + $nilpot_15 + $nilpot_16 + $nilpot_01 + $nilpot_02 + $nilpot_03 + $nilpot_04 + $nilpot_05 + $nilpot_06 + $nilpot_07 + $nilpot_08 + $nilpot_31 + $nilpot_32 + $nilpot_33 + $nilpot_34 + $nilpot_21 + $nilpot_22 + $nilpot_40 + $nilpot_tk + $nilpot_cm;
 if ($row['kdpot_01'] != 0) {
     $arrPot_01 = $pdf->SplitToArray($w1[6], $ln, $row['kdpot_01'] . "\n" . number_format($nilpot_01, "2", ",", ".") . '%');
 }
 if ($row['kdpot_01'] == 0) {
     $arrPot_01 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 if ($row['kdpot_02'] != 0) {
     $arrPot_02 = $pdf->SplitToArray($w1[6], $ln, $row['kdpot_02'] . "\n" . number_format($nilpot_02, "2", ",", ".") . '%');
 }
 if ($row['kdpot_02'] == 0) {
     $arrPot_02 = $pdf->SplitToArray($w1[6], $ln, '');
 }
 if ($row['kdpot_03'] != 0) {
     $arrPot_03 = $pdf->SplitToArray($w1[6], $ln, $row['kdpot_03'] . "\n" . number_format($nilpot_03, "2", ",", ".") . '%');
    ?>
			<tr><td align="center" colspan="22">Tidak ada data!</td></tr><?php 
} else {
    foreach ($col[0] as $k => $val) {
        if ($k % 2 == 1) {
            $class = "row0";
        } else {
            $class = "row1";
        }
        $nilpot_10 = $col[8][$k] * persen_pot('10');
        $nilpot_11 = $col[9][$k] * persen_pot('11');
        $nilpot_12 = $col[10][$k] * persen_pot('12');
        $nilpot_13 = $col[11][$k] * persen_pot('13');
        $nilpot_14 = $col[12][$k] * persen_pot('14');
        $nilpot_15 = $col[13][$k] * persen_pot('15');
        $nilpot_16 = $col[14][$k] * persen_pot('16');
        $totpot = $nilpot_10 + $nilpot_11 + $nilpot_12 + $nilpot_13 + $nilpot_14 + $nilpot_15 + $nilpot_16;
        ?>
				<tr class="<?php 
        echo $class;
        ?>
">
					<td align="center" valign="top"><?php 
        echo $limit * ($pagess - 1) + ($k + 1);
        ?>
</td>
					<td align="left" valign="top">
					<?php 
        if ($xlevel == 2) {
            ?>
					<?php 
Example #5
0
        $nilpot_02 = $col[19][$k] * persen_pot('02');
        $nilpot_03 = $col[20][$k] * persen_pot('03');
        $nilpot_04 = $col[21][$k] * persen_pot('04');
        $nilpot_05 = $col[22][$k] * persen_pot('05');
        $nilpot_06 = $col[23][$k] * persen_pot('06');
        $nilpot_07 = $col[24][$k] * persen_pot('07');
        $nilpot_08 = $col[25][$k] * persen_pot('08');
        $nilpot_21 = $col[26][$k] * persen_pot('21');
        $nilpot_22 = $col[27][$k] * persen_pot('22');
        $nilpot_23 = $col[28][$k] * persen_pot('31');
        $nilpot_24 = $col[29][$k] * persen_pot('32');
        $nilpot_25 = $col[30][$k] * persen_pot('33');
        $nilpot_26 = $col[31][$k] * persen_pot('34');
        $nilpot_27 = $col[32][$k] * persen_pot('40');
        $nilpot_28 = $col[33][$k] * persen_pot('tk');
        $nilpot_29 = $col[34][$k] * persen_pot('cm');
        $totpot = $nilpot_10 + $nilpot_11 + $nilpot_12 + $nilpot_13 + $nilpot_14 + $nilpot_15 + $nilpot_16 + $nilpot_01 + $nilpot_02 + $nilpot_03 + $nilpot_04 + $nilpot_05 + $nilpot_06 + $nilpot_07 + $nilpot_08 + $nilpot_21 + $nilpot_22 + $nilpot_23 + $nilpot_24 + $nilpot_25 + $nilpot_26 + $nilpot_27 + $nilpot_28 + $nilpot_29;
        //				$gaji_bruto    = $col[11][$k] + rp_grade(substr($col[6][$k],0,2),$col[9][$k]);
        //				$pajak_total   = nil_pajak($gaji_bruto,$col[10][$k],$col[16][$k]);
        ?>
				<tr class="<?php 
        echo $class;
        ?>
">
					<td align="center" valign="top"><?php 
        echo $limit * ($pagess - 1) + ($k + 1);
        ?>
</td>
					<td align="left" valign="top">
					<?php 
        if ($xlevel == 2) {