?> <tr class="<?php echo $class; ?> "> <td align="center" valign="top"> </td> <td align="right" valign="top"><?php echo strtoupper(nama_bulan($kdbl)); ?> </td> <td align="center" valign="top"><?php echo nm_pangkat(substr($List_bulan['kdgol'], 0, 1) . hurufkeangka(substr($List_bulan['kdgol'], 1, 1))) . ' (' . nm_gol(substr($List_bulan['kdgol'], 0, 1) . hurufkeangka(substr($List_bulan['kdgol'], 1, 1))) . ')'; ?> <br /><?php echo '(' . status_peg($List_bulan['kdpeg']) . ')'; ?> </td> <td align="left" valign="top"><?php echo nm_info_jabatan($List_bulan['kdunitkerja'], $List_bulan['kdjabatan']) . ' (' . reformat_tgl($List_bulan['tmtjabatan']) . ')'; ?> <br /><?php echo 'Kelas Jabatan ' . $List_bulan['grade']; if ($List_bulan['jml_hari'] != 0) { ?> <br /><?php echo '(' . $List_bulan['jml_hari'] . ' hari dari .' . hari_bulan($th, $kdbl) . ' hari kerja)'; } ?> </td> <td align="right" valign="top"><?php
echo $limit * ($pagess - 1) + ($k + 1); ?> </td> <td align="left" valign="top"><?php echo nama_peg($col[3][$k]); ?> <br /><?php echo 'NIP. ' . reformat_nipbaru($col[4][$k]); ?> </td> <td align="center" valign="top"><?php echo nm_pangkat(substr($col[7][$k], 0, 1) . hurufkeangka(substr($col[7][$k], 1, 1))) . '(' . nm_gol(substr($col[7][$k], 0, 1) . hurufkeangka(substr($col[7][$k], 1, 1))) . ')'; ?> </td> <td align="center" valign="top"><?php echo status_peg($col[22][$k]); ?> </td> <td align="left" valign="top"><?php echo nm_info_jabatan($col[6][$k], $col[8][$k]); ?> <?php if ($col[21][$k] != 0) { echo '<br>' . '( ' . $col[21][$k] . ' hari dari ' . hari_bulan($th, $kdbulan) . ' hari kerja )'; } ?> <br /><?php echo reformat_tgl($col[24][$k]); ?> </td> <td align="center" valign="top"><?php
$border = 1; $size = 10; $ln = 4; $margin = 15; $tinggi = 275; $w1 = array(10, 50, 12, 40, 10, 30); $pdf->SetFont($font, '', $size - 1); $no = 0; $sql = "SELECT * FROM mst_tk WHERE kdsatker = '{$kdsatker}' and tahun = '{$th}' and bulan = '{$kdbulan}' ORDER BY grade desc, kdgol desc, kdjabatan"; $qu = mysql_query($sql); while ($row = mysql_fetch_array($qu)) { $max = 0; $no += 1; $arrNo = $pdf->SplitToArray($w1[0], $ln, $no . '.'); $arrNama = $pdf->SplitToArray($w1[1], $ln, nama_peg($row['nib']) . "\n" . 'NIP. ' . reformat_nipbaru(nip_peg($row['nib']))); $arrGol = $pdf->SplitToArray($w1[2], $ln, nm_gol(substr($row['kdgol'], 0, 1) . hurufkeangka(substr($row['kdgol'], 1, 1))) . "\n" . status_peg($row['kdpeg'])); if ($row['jml_hari'] == 0) { $arrJabatan = $pdf->SplitToArray($w1[3], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']) . "\n" . reformat_tgl($row['tmtjabatan'])); } if ($row['jml_hari'] != 0) { $arrJabatan = $pdf->SplitToArray($w1[3], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']) . "\n" . reformat_tgl($row['tmtjabatan']) . "\n" . ' (' . $row['jml_hari'] . ' hari dari ' . hari_bulan($th, $kdbl) . ' hari kerja)'); } $arrGrade = $pdf->SplitToArray($w1[4], $ln, $row['grade']); $arrTGrade = $pdf->SplitToArray($w1[5], $ln, number_format(rp_grade($row['kdunitkerja'], $row['grade'], $row['kdpeg']), "0", ",", ".")); $arrFPot = $pdf->SplitToArray($w1[5], $ln, number_format(rp_grade($row['kdunitkerja'], $row['grade'], $row['kdpeg']) - $row['tunker'], "0", ",", ".")); $arrTunker = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'], "0", ",", ".")); $arrPajak = $pdf->SplitToArray($w1[5], $ln, number_format($row['pajak_tunker'], "0", ",", ".")); $arrMinta = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'] + $row['pajak_tunker'], "0", ",", ".")); $total_tunker += $row['tunker']; $total_pajak += $row['pajak_tunker']; $total_tgrade += rp_grade($row['kdunitkerja'], $row['grade'], $row['kdpeg']);