<?php } ?> <br /> <?php if ($col[7][$k] != $row['kdstatuspeg']) { ?> <font color="#CC3300"><?php echo nm_status_peg($row['kdstatuspeg']); ?> </font> <?php } else { ?> <?php echo nm_status_peg($row['kdstatuspeg']); ?> <?php } ?> </td> <td align="left" valign="top"> <?php if ($col[5][$k] != $row['kdjabatan']) { ?> <font color="#CC3300"><?php echo nm_jabatan_ij($row['kdjabatan'], $row['kdunitkerja']); ?> </font> <?php } else {
$sql = "SELECT * FROM m_idpegawai WHERE kdunitkerja LIKE '{$xkdunit}%' ORDER BY kdunitkerja, kdeselon desc,kdjabatan desc,kdgol"; } $qu = mysql_query($sql); while ($row = mysql_fetch_array($qu)) { $max = 0; $no += 1; $arrNo = $pdf->SplitToArray($w1[0], $ln, $no . '.'); if ($row['kdunitkerja'] != $kdunitkerja) { $arrUnit = $pdf->SplitToArray($w1[1], $ln, trim(nm_unitkerja($row['kdunitkerja']))); } if ($row['kdunitkerja'] == $kdunitkerja) { $arrUnit = $pdf->SplitToArray($w1[1], $ln, ''); } $arrJabatan = $pdf->SplitToArray($w1[4], $ln, nm_jabatan_ij($row['kdjabatan'], $row['kdunitkerja']) . "\n" . '[' . reformat_tgl($row['tmtjabatan']) . ']'); $arrNama = $pdf->SplitToArray($w1[2], $ln, nama_peg($row['nip']) . "\n" . 'NIP. ' . reformat_nipbaru($row['nip'])); $arrGol = $pdf->SplitToArray($w1[3], $ln, nm_gol($row['kdgol']) . "\n" . nm_status_peg($row['kdstatuspeg'])); $arrGrade = $pdf->SplitToArray($w1[3], $ln, nil_grade($row['kdjabatan'], $row['kdunitkerja'])); if ($max < count($arrUnit)) { $max = count($arrUnit); } if ($max < count($arrJabatan)) { $max = count($arrJabatan); } if ($max < count($arrNama)) { $max = count($arrNama); } if ($row['kdunitkerja'] != $kdunitkerja) { $pdf->Line($margin, $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2] + $w1[3] + $w1[4] + $w1[5], $pdf->GetY()); } if ($row['kdunitkerja'] == $kdunitkerja) { $pdf->Line($margin + $w1[0] + $w1[1], $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2] + $w1[3] + $w1[4] + $w1[5], $pdf->GetY());
echo $limit * ($pagess - 1) + ($k + 1); ?> </td> <td align="left" valign="top"><?php echo $col[2][$k]; ?> <br /><?php echo 'NIP. ' . reformat_nipbaru($col[1][$k]); ?> </td> <td align="center" valign="top"><?php echo nm_gol($col[4][$k]) . '<br>' . nm_pangkat($col[4][$k]); ?> </td> <td align="center" valign="top"><?php echo nm_status_peg($col[7][$k]); ?> </td> <td align="left" valign="top"><?php echo nm_jabatan_ij($col[6][$k], $col[3][$k]); ?> </td> <td align="left" valign="top"><?php echo $List['bank']; ?> </td> <td align="center" valign="top"><?php echo $List['no_rek']; ?> </td> <td align="left" valign="top"><?php
$potongan_r = $potongan_p / 100 * $col[10][$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 echo nama_peg($col[3][$k]); ?> <br /><?php echo 'NIP. ' . reformat_nipbaru($col[3][$k]) . '<br>' . nm_gol($col[6][$k]) . ' / ' . nm_status_peg($col[7][$k]); ?> </td> <td align="left" valign="top"><?php echo nm_jabatan_ij($col[5][$k], $col[4][$k]); ?> <br /><?php echo '[' . reformat_tgl($col[8][$k]) . ']'; ?> <br /><?php echo 'Grade ' . $col[9][$k]; ?> </td> <td align="right" valign="top"><?php echo number_format($col[10][$k], "0", ",", "."); ?>
</td> <td align="left" valign="top"><?php if ($col[3][$k] != $col[3][$k - 1]) { echo nm_unitkerja($col[3][$k]); } ?> </td> <td align="left" valign="top"><?php echo nama_peg($col[2][$k]); ?> <br /><?php echo 'NIP. ' . reformat_nipbaru($col[2][$k]); ?> </td> <td align="center" valign="top"><?php echo nm_gol($col[5][$k]) . '<br>' . nm_status_peg($col[7][$k]); ?> </td> <td align="left" valign="top"><?php echo nm_jabatan_ij($col[4][$k], $col[3][$k]) . '<br>' . '[' . reformat_tgl($col[6][$k]) . ']'; ?> </td> <td align="center" valign="top"><?php echo nil_grade($col[4][$k], $col[3][$k]); ?> </td> </tr> <?php } }