예제 #1
0
} elseif (substr($row['kdunitkerja'], 1, 3) != '000' and substr($row['kdjabatan'], 0, 3) == '001') {
    echo 'Kepala ' . nm_unitkerja($row['kdunitkerja']);
} else {
    echo nm_jabatan_ij($row['kdjabatan']);
}
?>
			</td>
	    </tr>
		<tr>
		  <td class="key">Unit Kerja </td>
		  <td>
		  <?php 
if (kdunitkerja_peg($row['nib_atasan']) == '0000') {
    echo 'BATAN';
} else {
    echo trim(skt_unitkerja(substr(kdunitkerja_peg($row['nib_atasan']), 0, 2))) . ' - BATAN';
}
?>
		  </td>
		  <td 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">&nbsp;</td>
	  </tr>
		<tr>
		  <td colspan="4" align="center" class="row7"><strong>CATATAN HARIAN PELAKSANAAN TUGAS </strong></td>
	  </tr>
예제 #2
0
checkauthentication();
$p = $_GET['p'];
$cari = $_GET['cari'];
$table = "mst_skp";
$field = get_field($table);
$ed_link = "index.php?p=" . get_edit_link($p);
$del_link = "index.php?p=263";
#Halaman yang akan ditampilkan untuk pertengahan?
$adjacents = 3;
$th = $_SESSION['xth'];
$xlevel = $_SESSION['xlevel'];
$xusername = $_SESSION['xusername'];
$xkdunit = $_SESSION['xkdunit'];
$kdbidang = substr(kdunitkerja_peg($xusername), 0, 3);
$kdsubbidang = kdunitkerja_peg($xusername);
$kdunitkerja = $xkdunit . '00';
$kddeputi = substr($xkdunit, 0, 1);
switch ($xlevel) {
    case '1':
        $query = "SELECT COUNT(*) as num FROM {$table} WHERE tahun = '{$th}' and left(kdunitkerja,2) = '{$xkdunit}' and (nib LIKE '%{$cari}%' OR kdunitkerja LIKE '%{$cari}%' OR kdjabatan LIKE '%{$cari}%') ";
        break;
    case '2':
        $query = "SELECT COUNT(*) as num FROM {$table} WHERE tahun = '{$th}' and left(kdunitkerja,2) = '{$xkdunit}' and (nib LIKE '%{$cari}%' OR kdunitkerja LIKE '%{$cari}%' OR kdjabatan LIKE '%{$cari}%') ";
        break;
    case '3':
        $query = "SELECT COUNT(*) as num FROM {$table} WHERE tahun = '{$th}' and left(kdunitkerja,2) = '{$xkdunit}' and (nib LIKE '%{$cari}%' OR kdunitkerja LIKE '%{$cari}%' OR kdjabatan LIKE '%{$cari}%') ";
        break;
    case '4':
        $query = "SELECT COUNT(*) as num FROM {$table} WHERE tahun = '{$th}' and left(kdunitkerja,3) = '{$kdbidang}' and (nib LIKE '%{$cari}%' OR kdunitkerja LIKE '%{$cari}%' OR kdjabatan LIKE '%{$cari}%') ";
        break;
예제 #3
0
    $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');
}
if (kdunitkerja_peg($row['nib_atasan']) == '0000') {
    $unit = 'BATAN';
} else {
    $unit = trim(skt_unitkerja(substr(kdunitkerja_peg($row['nib_atasan']), 0, 2)));
}
$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, $unit);
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]);
예제 #4
0
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>
</form>
<table width="58%" cellpadding="1" border="1">
	<thead>
		
		<tr>
		  <th width="3%">No.</th>
		  <th width="12%">Tanggal</th>
		  <th width="37%">Uraian Kegiatan/Kejadian</th>
예제 #5
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, '5');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Unit Kerja');
$arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(nm_unitkerja(substr(kdunitkerja_peg($row['tahun'], $row['nib_atasan']), 0, 4) . '00')) . ' - RISTEK');
$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(nm_unitkerja(substr($row['kdunitkerja'], 0, 4) . '00')) . ' - RISTEK');
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]);
예제 #6
0
    $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, '5');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Unit Kerja');
if (kdunitkerja_peg($row['nib_atasan']) != '0000') {
    $arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(skt_unitkerja(substr(kdunitkerja_peg($row['nib_atasan']), 0, 2))) . ' - BATAN');
} else {
    $arrField_1 = $pdf->SplitToArray($w1[2], $ln, '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');
예제 #7
0
				<meta http-equiv="refresh" content="0;URL=index.php?p=<?php 
            echo $p_next;
            ?>
&pagess=<?php 
            echo $pagess;
            ?>
&cari=<?php 
            echo $cari;
            ?>
"><?php 
            exit;
        } else {
            // UPDATE
            $value[1] = $th;
            $nib = $value[2];
            $kdunitkerja = kdunitkerja_peg($nib);
            $kdjabatan = $value[4];
            if ($value[13] != nil_grade($value[4])) {
                $grade = nil_grade($value[4]);
            } else {
                $grade = $value[13];
            }
            $kdgol = $value[5];
            $tanggal_mulai = $value[14];
            /*				$value[3] = kdunitkerja_peg($nib) ;
            				$value[5] = kdgol_peg($nib) ;
            				$value[12] = kdgol_peg($value[10]) ;
            				$value[11] = jabstruk_peg($value[10]) ;
            				$value[6] = '0' ;
            				$value[8] = '0' ;
            				if ( $value[13] == 0 )   $value[13] = nil_grade($value[4]) ; */