echo nil_grade(kdjabatan_peg($col[2][$k])); ?> </strong></font> <?php } ?> </td> <td align="center" valign="top"><?php if ($col[3][$k] != $kdunitkerja) { ?> <font color="#0033FF"><strong><?php echo skt_unitkerja(substr($col[3][$k], 0, 2)); ?> </strong></font><?php } else { echo skt_unitkerja(substr($col[3][$k], 0, 2)); } ?> </td> </tr> <?php $kdunitkerja = $col[3][$k]; } } ?> </tbody> <tfoot> <tr> <td colspan="6"> </td> </tr>
<td><?php echo nm_pangkat($row['kdgol']) . ' (' . nm_gol($row['kdgol']) . ')'; ?> </td> </tr> <tr> <td colspan="3" class="key">Jabatan</td> <td><?php echo nm_jabatan_ij($row['kdjabatan']); ?> </td> </tr> <tr> <td colspan="3" class="key">Unit Kerja</td> <td><?php echo skt_unitkerja(substr($row['kdunitkerja'], 0, 2)) . ' - BATAN'; ?> </td> </tr> <tr> <td colspan="4" align="center" class="row7"> </td> </tr> <tr> <td width="189" class="key">Nama Pegawai </td> <td colspan="3"><select name="<?php echo $field[2]; ?> "> <option value="<?php echo $value[2];
?> &pagess=<?php echo $pagess; ?> " method="post"> <input type="hidden" name="p" value="<?php echo $p; ?> " /> Unit Kerja : <select name="kdunit"> <option value="<?php echo $kdunit; ?> "><?php echo skt_unitkerja($kdunit); ?> </option> <option value="">- Pilih Unit Kerja -</option> <?php $query = mysql_query("select left(kdunit,2) as kode_unit ,sktunit from kd_unitkerja group by left(kdunit,2) order by sktunit"); while ($row = mysql_fetch_array($query)) { ?> <option value="<?php echo $row['kode_unit']; ?> "><?php echo $row['sktunit']; ?> </option> <?php
$pdf->SetX($margin + $w1[0] + $w1[1]); $pdf->Cell($w1[2], $ln, $arrField_1[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]); $pdf->Cell($w1[3], $ln, $arrNo_2[$i], 'LR', 0, 'C'); $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2] + $w1[3]); $pdf->Cell($w1[4], $ln, $arrLabel_2[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2] + $w1[3] + $w1[4]); $pdf->Cell($w1[5], $ln, $arrField_2[$i], 'LR', 1, 'L'); } $max = 0; $arrNo_1 = $pdf->SplitToArray($w1[0], $ln, '5'); $arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Unit Kerja'); $arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(skt_unitkerja(substr($row['kdunitkerja'], 0, 2))) . ' - BATAN'); $arrNo_2 = $pdf->SplitToArray($w1[3], $ln, '5'); $arrLabel_2 = $pdf->SplitToArray($w1[4], $ln, 'Unit Kerja'); $arrField_2 = $pdf->SplitToArray($w1[5], $ln, trim(skt_unitkerja(substr($row['kdunitkerja'], 0, 2))) . ' - BATAN'); if ($max < count($arrField_1)) { $max = count($arrField_1); } if ($max < count($arrField_2)) { $max = count($arrField_2); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin); $pdf->Cell($w1[0], $ln, $arrNo_1[$i], 'LR', 0, 'C'); $pdf->SetX($margin + $w1[0]); $pdf->Cell($w1[1], $ln, $arrLabel_1[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w1[0] + $w1[1]); $pdf->Cell($w1[2], $ln, $arrField_1[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]); $pdf->Cell($w1[3], $ln, $arrNo_2[$i], 'LR', 0, 'C');
} for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrNomor[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrLabel[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrTitik[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2] + $w[3]); $pdf->Cell($w[4], $ln, $arrUraian[$i], '', 1, 'L'); } $max = 0; $arrNomor = $pdf->SplitToArray($w[1], $ln, 'e.'); $arrLabel = $pdf->SplitToArray($w[2], $ln, 'Unit Kerja'); $arrTitik = $pdf->SplitToArray($w[3], $ln, ':'); $arrUraian = $pdf->SplitToArray($w[4], $ln, skt_unitkerja(substr($row['kdunitkerja'], 0, 2))); if ($max < count($arrUraian)) { $max = count($arrUraian); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrNomor[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrLabel[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrTitik[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2] + $w[3]); $pdf->Cell($w[4], $ln, $arrUraian[$i], '', 1, 'L'); } $max = 0; $arrNomor = $pdf->SplitToArray($w[1], $ln, 'f.');
<form action="index.php?p=<?php echo $_GET['p']; ?> &pagess=<?php echo $pagess; ?> &cari=<?php echo $cari; ?> " method="post" name="form"> <table width="565" cellspacing="1" class="admintable"> <tr> <td width="172" class="key">Unit Kerja </td> <td width="384"><?php echo nm_unitkerja($row['kdunitkerja']) . ' [' . skt_unitkerja(substr($row['kdunitkerja'], 0, 2)) . ']'; ?> </td> </tr> <tr> <td class="key"> Nama Jabatan </td> <td><input type="hidden" name="<?php echo $field[1]; ?> " size="1" value="<?php echo $row['id']; ?> "/><?php echo $row['nama_jabatan']; ?> </td>
} </script> <form action="index.php?p=<?php echo $_GET['p']; ?> " method="post" name="form"> <table width="825" cellspacing="1" class="admintable"> <tr> <td class="key">Unit Kerja</td> <td> <select name="kode_unit"> <option value="<?php echo $value[2]; ?> "><?php echo skt_unitkerja($value[2]); ?> </option> <option value="">- Pilih Unit Kerja -</option> <?php if ($level == '2') { $query = mysql_query("select left(kdunit,2) as kdunitkerja,sktunit from kd_unitkerja where left(kdunit,2) = '{$kdunit}' order by kdunit"); } else { $query = mysql_query("select left(kdunit,2) as kdunitkerja,sktunit from kd_unitkerja where right(kdunit,2) = '00' order by kdunit"); } while ($row = mysql_fetch_array($query)) { ?> <option value="<?php echo $row['kdunitkerja']; ?> "><?php
echo $col[1][$k]; ?> </td> <td align="left"><?php echo nama_peg($col[1][$k]); ?> </td> <td align="center"> <?php $oLevel = mysql_query("SELECT name FROM xlevel WHERE id = '" . $col[4][$k] . "'"); $Level = mysql_fetch_array($oLevel); echo $Level['name']; ?> </td> <td align="center"><?php echo skt_unitkerja($col[2][$k]); ?> </td> <td width="5%" align="center"> <a href="<?php echo $ed[$k]; ?> " title="Ubah"> <img src="css/images/edit_f2.png" border="0" width="16" height="16"> </a> </td> <td width="7%" align="center"> <a href="<?php echo $del[$k]; ?> " title="Hapus"> <img src="css/images/stop_f2.png" border="0" width="16" height="16"> </a> </td> </tr><?php
} echo $pagination; ?> <div align="right"> <form action="" method="get"> <input type="hidden" name="p" value="<?php echo $p; ?> " /> Unit Kerja : <select name="cari"> <option value="<?php echo $cari; ?> "><?php echo skt_unitkerja($cari); ?> </option> <option value="">- Pilih Unit Kerja -</option> <?php $query = mysql_query("select left(KdUnit,2) as kode_unit , SktUnit from kd_unitkerja group by left(KdUnit,2) order by KdUnit"); while ($row = mysql_fetch_array($query)) { ?> <option value="<?php echo $row['kode_unit']; ?> "><?php echo $row['SktUnit']; ?> </option> <?php