Esempio n. 1
0
            ?>
&pagess=<?php 
            echo $pagess;
            ?>
&cari=<?php 
            echo $cari;
            ?>
&sw=<?php 
            echo $sw;
            ?>
"><?php 
            exit;
        } else {
            // UPDATE
            $value[1] = $id_skp;
            $value[3] = jabatan_peg($value[2]);
            $value[4] = $row['tahun'];
            $sql = sql_update($table, $field, $value);
            $rs = mysql_query($sql);
            if ($rs) {
                update_log($sql, $table, 1);
                $_SESSION['errmsg'] = "Ubah data berhasil!";
            } else {
                update_log($sql, $table, 0);
                $_SESSION['errmsg'] = "Ubah data gagal!";
            }
            ?>
				
				<meta http-equiv="refresh" content="0;URL=index.php?p=270&id_skp=<?php 
            echo $id_skp;
            ?>
Esempio n. 2
0
 if ($tanda <= 0) {
     $xtanda = '';
 }
 if ($row['kdjabatan'] != $kdjabatan) {
     $arrSelisih = $pdf->SplitToArray($w1[10], $ln, $xtanda . $tanda);
 }
 if ($row['kdjabatan'] == $kdjabatan) {
     $arrSelisih = $pdf->SplitToArray($w1[10], $ln, '');
 }
 if (kdeselon_peg($row['nib']) != '') {
     $arrJabPeg_S = $pdf->SplitToArray($w1[7], $ln, jabstruk_peg($row['nib']));
     $arrJabPeg_F = $pdf->SplitToArray($w1[8], $ln, '');
     $arrJabPeg_U = $pdf->SplitToArray($w1[9], $ln, '');
 } elseif (jabatan_peg($row['nib']) != '') {
     $arrJabPeg_S = $pdf->SplitToArray($w1[7], $ln, '');
     $arrJabPeg_F = $pdf->SplitToArray($w1[8], $ln, jabatan_peg($row['nib']));
     $arrJabPeg_U = $pdf->SplitToArray($w1[9], $ln, '');
 } else {
     $arrJabPeg_S = $pdf->SplitToArray($w1[7], $ln, '');
     $arrJabPeg_F = $pdf->SplitToArray($w1[8], $ln, '');
     $arrJabPeg_U = $pdf->SplitToArray($w1[9], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']));
 }
 $kdunitkerja = $row['kdunitkerja'];
 $kdjabatan = $row['kdjabatan'];
 if ($max < count($arrUnit)) {
     $max = count($arrUnit);
 }
 if ($max < count($arrJabatan)) {
     $max = count($arrJabatan);
 }
 if ($max < count($arrNama)) {
Esempio n. 3
0
        ?>
</td>
					<td align="left" valign="top"><?php 
        echo nm_jabatan_ij($col[4][$k]);
        ?>
</td>
					<td align="left" valign="top"><?php 
        echo nm_unitkerja($col[3][$k]);
        ?>
</td>
					<td align="left" valign="top"><?php 
        echo nama_peg($col[10][$k]);
        ?>
</td>
                    <td align="left" valign="top"><?php 
        echo jabatan_peg($col[1][$k], $col[10][$k]);
        ?>
</td>
                    <td align="center" valign="top"><?php 
        echo reformat_tgl($col[9][$k]);
        ?>
</td>
                    <td align="center" valign="top"><?php 
        echo reformat_tgl($col[16][$k]) . '<br>s/d<br>' . reformat_tgl($col[17][$k]);
        ?>
</td>                    
                  <td width="7%" align="center" valign="top">
				  <?php 
        switch ($col[14][$k]) {
            case '0':
                ?>
Esempio n. 4
0
		  <td><?php 
echo reformat_nipbaru($row['nib_atasan']);
?>
</td>
	  </tr>
		<tr>
		  <td width="140" class="key">Pangkat/Gol.Ruang</td>
		  <td><?php 
echo nm_pangkat(kdgol_peg($row['tahun'], $row['nib_atasan'])) . ' (' . nm_gol(kdgol_peg($row['tahun'], $row['nib_atasan'])) . ')';
?>
</td>
	    </tr>
		<tr>
			<td class="key"> Jabatan </td>
			<td><?php 
echo jabatan_peg($row['tahun'], $row['nib_atasan']);
?>
</td>
	    </tr>
		<tr>
		  <td class="key">Unit Kerja </td>
		  <td>
		  <?php 
echo trim(nm_unitkerja(substr(kdunitkerja_peg($row['tahun'], $row['nib_atasan']), 0, 4) . '00')) . ' - RISTEK';
?>
		  </td>
	  </tr>
		<tr>
		  <td colspan="2" align="center" class="row7">&nbsp;</td>
	  </tr>
  </table>
Esempio n. 5
0
                echo jabatan_peg($nib);
            }
        }
        ?>
</td>
                    <td align="left" valign="top"><?php 
        if ($nib != '') {
            if (substr(jabatan_peg($nib), 0, 6) != 'Kepala') {
                echo jabatan_peg($nib);
            }
        }
        ?>
</td>
                    <td align="left" valign="top"><?php 
        if ($nib != '') {
            if (jabatan_peg($nib) == '') {
                echo nm_info_jabatan($col[1][$k], $col[2][$k]);
            }
        }
        ?>
</td>
			    </tr>
				
				<?php 
    }
}
?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="12">&nbsp;</td>
Esempio n. 6
0
    $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');
    $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, '4');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Jabatan');
$arrField_1 = $pdf->SplitToArray($w1[2], $ln, jabatan_peg($row['tahun'], $row['nib_atasan']));
$arrNo_2 = $pdf->SplitToArray($w1[3], $ln, '4');
$arrLabel_2 = $pdf->SplitToArray($w1[4], $ln, 'Jabatan');
$arrField_2 = $pdf->SplitToArray($w1[5], $ln, trim(nm_jabatan_ij($row['kdjabatan'])));
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]);
Esempio n. 7
0
$arrUraian = $pdf->SplitToArray($w1[3], $ln, nm_pangkat(kdgol_peg($row['tahun'], $row['nib_atasan'])) . ' (' . nm_gol(kdgol_peg($row['tahun'], $row['nib_atasan'])) . ')');
$arrTitik = $pdf->SplitToArray($w1[2], $ln, ':');
if ($max < count($arrUraian)) {
    $max = count($arrUraian);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w1[0]);
    $pdf->Cell($w1[1], $ln, $arrLabel[$i], '', 0, 'L');
    $pdf->SetX($margin + $w1[0] + $w1[1]);
    $pdf->Cell($w1[2], $ln, $arrTitik[$i], '', 0, 'C');
    $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]);
    $pdf->Cell($w1[3], $ln, $arrUraian[$i], '', 1, 'L');
}
// informasi tentang jabatan
$arrLabel = $pdf->SplitToArray($w1[1], $ln, 'JABATAN');
$arrUraian = $pdf->SplitToArray($w1[3], $ln, jabatan_peg($row['tahun'], $row['nib_atasan']));
$arrTitik = $pdf->SplitToArray($w1[2], $ln, ':');
if ($max < count($arrUraian)) {
    $max = count($arrUraian);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w1[0]);
    $pdf->Cell($w1[1], $ln, $arrLabel[$i], '', 0, 'L');
    $pdf->SetX($margin + $w1[0] + $w1[1]);
    $pdf->Cell($w1[2], $ln, $arrTitik[$i], '', 0, 'C');
    $pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]);
    $pdf->Cell($w1[3], $ln, $arrUraian[$i], '', 1, 'L');
}
$max = 0;
$arrLabel = $pdf->SplitToArray($w1[1], $ln, 'UNIT KERJA');
$arrUraian = $pdf->SplitToArray($w1[3], $ln, 'RISTEK');
Esempio n. 8
0
        ?>
</td>
                    <td align="left" valign="top"><?php 
        if (substr(jabatan_peg($col[2][$k]), 0, 6) == 'Kepala' or substr(jabatan_peg($col[2][$k]), 0, 5) == 'Ketua') {
            echo jabatan_peg($col[2][$k]);
        }
        ?>
&nbsp;</td>
                    <td align="left" valign="top"><?php 
        if (substr(jabatan_peg($col[2][$k]), 0, 6) != 'Kepala') {
            echo jabatan_peg($col[2][$k]);
        }
        ?>
&nbsp;</td>
                    <td align="left" valign="top"><?php 
        if (jabatan_peg($col[2][$k]) == '') {
            echo nm_info_jabatan($col[3][$k], $col[4][$k]);
        }
        ?>
&nbsp;</td>
				    <td align="center" valign="top"><?php 
        echo nil_grade($col[4][$k]);
        ?>
</td>
				</tr>
				
				<?php 
    }
}
?>
	</tbody>