예제 #1
0
      <td width="608"><strong><?php 
echo $Kegiatan_bp['th'];
?>
</strong></td>
    </tr>
    <tr> 
      <td class="key">Unit Kerja </td>
      <td><strong><?php 
echo nm_unit($Kegiatan_bp['kdunitkerja']);
?>
</strong></td>
    </tr>
    <tr> 
      <td class="key">Tugas Pokok</td>
      <td><?php 
echo tugas_unit($Kegiatan_bp['kdunitkerja']);
?>
</td>
    </tr>
    <tr> 
      <td height="21" class="key">Fungsi</td>
      <td> 
        <?php 
$sql = "SELECT * FROM tb_unitkerja_fungsi WHERE kdunit = '" . $Kegiatan_bp[kdunitkerja] . "'";
$oFungsi = mysql_query($sql);
while ($Fungsi = mysql_fetch_array($oFungsi)) {
    echo $Fungsi['kdfungsi'] . ". " . $Fungsi['nmfungsi'] . "<br>";
}
?>
      </td>
    </tr>
예제 #2
0
    }
    $pdf->Line($marginL, $pdf->GetY(), $marginL + $w[0] + $w[1] + $w[2], $pdf->GetY());
}
# akhir while
$pdf->SetFont($font, 'B', $fsize2);
$w = array(12, 3, 235);
$pdf->Ln();
$pdf->SetX($marginL);
$pdf->Cell($w[0] + $w[1] + $w[2], $hh, 'Tugas dan Fungsi Kementerian Riset dan Teknologi', $noborder, 1, 'L');
$pdf->SetX($marginL);
$pdf->Cell($w[0], $hh, 'Tugas', $noborder, 0, 'L');
$pdf->SetX($marginL + $w[0]);
$pdf->Cell($w[1], $hh, ':', $noborder, 0, 'C');
$pdf->SetFont($font, '', $fsize2);
$pdf->SetX($marginL + $w[0] + $w[1]);
$pdf->MultiCell($w[2], $hh, tugas_unit($kdunit), $noborder, 1, 'L');
$pdf->Ln();
$pdf->SetFont($font, 'B', $fsize2);
$pdf->SetX($marginL);
$pdf->Cell($w[0], $hh, 'Fungsi', $noborder, 0, 'L');
$pdf->SetX($marginL + $w[0]);
$pdf->Cell($w[1], $hh, ':', $noborder, 1, 'L');
$pdf->SetFont($font, '', $fsize2);
$wf = array(5, 245);
$oList = mysql_query("select * from tb_unitkerja_fungsi where kdunit='{$kdunit}' order by kdfungsi ");
while ($List = mysql_fetch_array($oList)) {
    $max = 0;
    $arrNomor = $pdf->SplitToArray($wf[0], $hh, trim($List['kdfungsi']) . '.');
    $arrFungsi = $pdf->SplitToArray($wf[1], $hh, trim($List['nmfungsi']));
    if ($max < count($arrFungsi)) {
        $max = count($arrFungsi);
예제 #3
0
        ?>
</td>
    </tr>
    <?php 
    }
}
?>
  </tbody>
  <tfoot>
    <tr> 
      <td colspan="3"><strong> <?php 
echo 'Tugas dan Fungsi ' . trim(ucwords(strtolower(nm_unit('420000'))));
?>
</strong><br><br>
	  <?php 
echo '<strong> Tugas : </strong>' . tugas_unit('420000');
?>
<br><br>
	  <?php 
echo '<strong> Fungsi : </strong>';
?>
<br>
<?php 
$nom = 0;
$oList = mysql_query("select nmfungsi from tb_unitkerja_fungsi where kdunit='420000' order by kdfungsi ");
while ($List = mysql_fetch_array($oList)) {
    $nom += 1;
    echo $nom . '.' . $List['nmfungsi'] . '<br>';
}
?>
	  &nbsp;</td>
예제 #4
0
    $pdf->SetX($margin + $w[0] + $w[1]);
    $pdf->Cell($w[2], $ln, $arrTitik[$i], '', 0, 'L');
    $pdf->SetX($margin + $w[0] + $w[1] + $w[2]);
    $pdf->Cell($w[3], $ln, $arrUraian[$i], '', 1, 'L');
}
$pdf->Ln();
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin);
$pdf->Cell($w[0], $ln, '', '', 0, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'B. Tugas Pokok', '', 0, 'L');
$pdf->SetX($margin + $w[0] + $w[1]);
$pdf->Cell($w[2], $ln, '', '', 1, 'L');
$pdf->SetFont($font, '', $size + 2);
$max = 0;
$arrUraian = $pdf->SplitToArray($w[1] + $w[2] + $w[3], $ln, trim(tugas_unit($Kegiatan_bp['kdunitkerja'])));
if ($max < count($arrUraian)) {
    $max = count($arrUraian);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w[0]);
    $pdf->Cell($w[1] + $w[2] + $w[3], $ln, $arrUraian[$i], '', 1, 'L');
}
$pdf->Ln();
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin);
$pdf->Cell($w[0], $ln, '', '', 0, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'C. Fungsi', '', 0, 'L');
$pdf->SetX($margin + $w[0] + $w[1]);
$pdf->Cell($w[2], $ln, '', '', 1, 'L');