当前位置: 首页>>代码示例>>PHP>>正文


PHP PDF::SplitToArray方法代码示例

本文整理汇总了PHP中PDF::SplitToArray方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SplitToArray方法的具体用法?PHP PDF::SplitToArray怎么用?PHP PDF::SplitToArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PDF的用法示例。


在下文中一共展示了PDF::SplitToArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 4;
$margin = 5;
$tinggi = 275;
$w1 = array(10, 45, 40, 0, 0, 0, 15, 15);
$pdf->SetFont($font, '', $size - 2);
$no = 0;
$sql = "SELECT * FROM mst_potongan WHERE left(kdunitkerja,2) = '{$kdunit}' and tahun = '{$th}' and bulan = '{$kdbulan}' ORDER BY kdunitkerja,grade desc, kdgol desc";
$qu = mysql_query($sql);
while ($row = mysql_fetch_array($qu)) {
    $max = 0;
    $no += 1;
    $arrNo = $pdf->SplitToArray($w1[0], $ln, $no . '.');
    if ($row['kdunitkerja'] != $kdunit) {
        $arrUnit = $pdf->SplitToArray($w1[1], $ln, nm_unitkerja($row['kdunitkerja']));
    }
    if ($row['kdunitkerja'] == $kdunit) {
        $arrUnit = $pdf->SplitToArray($w1[1], $ln, '');
    }
    $arrNama = $pdf->SplitToArray($w1[2], $ln, nama_peg($row['nib']) . "\n" . 'NIP. ' . reformat_nipbaru(nip_peg($row['nib'])));
    $nilpot_10 = $row['kdpot_10'] * persen_pot('10');
    $nilpot_11 = $row['kdpot_11'] * persen_pot('11');
    $nilpot_12 = $row['kdpot_12'] * persen_pot('12');
    $nilpot_13 = $row['kdpot_13'] * persen_pot('13');
    $nilpot_14 = $row['kdpot_14'] * persen_pot('14');
    $nilpot_15 = $row['kdpot_15'] * persen_pot('15');
    $nilpot_16 = $row['kdpot_16'] * persen_pot('16');
    $nilpot_01 = $row['kdpot_01'] * persen_pot('01');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:daftar_potongan_prn.php

示例2: array

$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'A. DATA UMUM', '', 1, 'L');
$w1 = array(10, 30, 47, 15, 30, 50);
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin);
$pdf->Cell($w1[0], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1] + $w1[2], $ln, 'I. PEJABAT PENILAI', $border, 0, 'L');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]);
$pdf->Cell($w1[3], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2] + $w1[3]);
$pdf->Cell($w1[4] + $w1[5], $ln, 'II. PEGAWAI NEGERI SIPIL YANG DINILAI', $border, 1, 'L');
$pdf->SetFont($font, '', $size);
$max = 0;
$arrNo_1 = $pdf->SplitToArray($w1[0], $ln, '1');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Nama');
$arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(nama_peg($nib_penilai)));
$arrNo_2 = $pdf->SplitToArray($w1[3], $ln, '1');
$arrLabel_2 = $pdf->SplitToArray($w1[4], $ln, 'Nama');
$arrField_2 = $pdf->SplitToArray($w1[5], $ln, trim(nama_peg($row['nib'])));
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]);
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:penilaian_skplama_prn.php

示例3: array

$th = $_REQUEST['th'];
$renstra = th_renstra($th);
$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 5;
$margin = 25;
$tinggi = 275;
$w = array(5, 150);
$pdf->Ln();
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'INDIKATOR KINERJA UTAMA', '', 1, 'C');
$max = 0;
$arrUnit = $pdf->SplitToArray($w[1], $ln, trim(strtoupper(nm_unit('480000'))));
if ($max < count($arrUnit)) {
    $max = count($arrUnit);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w[0]);
    $pdf->Cell($w[1], $ln, $arrUnit[$i], '', 1, 'C');
}
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'Periode Renstra ' . $renstra, '', 1, 'C');
$pdf->Ln() * 2;
$w1 = array(0, 65, 95);
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1], $ln * 2, 'Sasaran Strategis Utama', $border, 0, 'C');
$pdf->SetX($margin + $w1[0] + $w1[1]);
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:iku_utama_prn.php

示例4: array

$w = array(50, 5, 80);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[2], $ln * 10, '', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[2], $ln, 'SURAT KETERANGAN', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[2], $ln, 'MENEMUKAN SESUATU YANG BARU (KREATIVITAS)', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[2], $ln * 2, '', '', 1, 'C');
$sql = "SELECT * FROM mst_skp WHERE id = '{$id_skp}'";
$qu = mysql_query($sql);
$row = mysql_fetch_array($qu);
$pdf->SetFont($font, '', $size);
$w = array(7, 100);
$max = 0;
$arrNomor = $pdf->SplitToArray($w[0], $ln, '1.');
$arrUraian = $pdf->SplitToArray($w[1], $ln, 'Yang bertanda tangan di bawah ini :');
if ($max < count($arrUraian)) {
    $max = count($arrUraian);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin);
    $pdf->Cell($w[0], $ln, $arrNomor[$i], '', 0, 'L');
    $pdf->SetX($margin + $w[0]);
    $pdf->Cell($w[1], $ln, $arrUraian[$i], '', 1, 'L');
}
$w = array(7, 5, 45, 5, 100);
$max = 0;
$arrNomor = $pdf->SplitToArray($w[1], $ln, 'a.');
$arrLabel = $pdf->SplitToArray($w[2], $ln, 'Nama');
$arrTitik = $pdf->SplitToArray($w[3], $ln, ':');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:kreativitas_prn.php

示例5: array

	$pdf->SetXY($margin+$w1[0]*2+$w1[1]+$w1[2]+$w1[3]+$w1[4]+$w1[5]+$w1[6]+$w1[7],$y+5);
	$pdf->Cell($w1[8],$ln,'Fungsional',$border,0,'C');
	$pdf->SetXY($margin+$w1[0]*2+$w1[1]+$w1[2]+$w1[3]+$w1[4]+$w1[5]+$w1[6]+$w1[7]+$w1[8],$y+5);
	$pdf->Cell($w1[9],$ln,'Umum',$border,0,'C');
	$pdf->SetXY($margin+$w1[0]*2+$w1[1]+$w1[2]+$w1[3]+$w1[4]+$w1[5]+$w1[6]+$w1[7]+$w1[8]+$w1[9],$y);
	$pdf->Cell($w1[10],$ln*2,'Grade',$border,1,'C');
*/
$pdf->SetFont($font, '', $size - 2);
$w1 = array(10, 40, 45, 8, 8, 40, 10, 35, 35, 35, 12);
$no = 0;
$sql = "SELECT * FROM mst_skp WHERE left(kdunitkerja,2) = '{$kdunit}' and tahun = '{$th}' ORDER BY kdunitkerja,kdjabatan,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, '');
    }
    if ($row['kdunitkerja'] != $kdunitkerja and $row['kdjabatan'] != $kdjabatan) {
        $arrJabatan = $pdf->SplitToArray($w1[2], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']));
    }
    if ($row['kdunitkerja'] == $kdunitkerja and $row['kdjabatan'] != $kdjabatan) {
        $arrJabatan = $pdf->SplitToArray($w1[2], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']));
    }
    if ($row['kdunitkerja'] == $kdunitkerja and $row['kdjabatan'] == $kdjabatan) {
        $arrJabatan = $pdf->SplitToArray($w1[2], $ln, '');
    }
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:peta_jabatan_prn.php

示例6: nmromawi

$pdf->Cell($w2[2], $ln, '(3)', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2]);
$pdf->Cell($w2[3], $ln, '(4)', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3]);
$pdf->Cell($w2[4], $ln, '(5)', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4]);
$pdf->Cell($w2[5], $ln, '(6)=(3)x(5)', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5]);
$pdf->Cell($w2[6], $ln, '(7)', $border, 1, 'C');
$ln = 4;
$sql = "SELECT kdkelompok FROM t_bantu WHERE kdjab = '{$kdjab}' GROUP BY kdkelompok ORDER BY kdkelompok";
$qu = mysql_query($sql);
while ($Kelompok = mysql_fetch_array($qu)) {
    $pdf->SetFont($font, 'B', $size - 1);
    $max = 0;
    $arrNo = $pdf->SplitToArray($w2[0], $ln, nmromawi($Kelompok['kdkelompok']));
    $arrUraian = $pdf->SplitToArray($w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $ln, trim(nm_kelompok_bantu($kdjab, $Kelompok['kdkelompok'])));
    if ($max < count($arrUraian)) {
        $max = count($arrUraian);
    }
    for ($i = 0; $i < $max; $i++) {
        $pdf->SetX($margin);
        $pdf->Cell($w2[0], $ln, $arrNo[$i], 'LR', 0, 'C');
        $pdf->SetX($margin + $w2[0]);
        $pdf->Cell($w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $ln, $arrUraian[$i], 'LR', 1, 'L');
    }
    $pdf->Line($margin, $pdf->GetY(), $margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $pdf->GetY());
    $pdf->SetFont($font, '', $size - 2);
    $sql_item = "SELECT * FROM t_bantu WHERE kdjab = '{$kdjab}' and kdkelompok = '{$Kelompok['kdkelompok']}' ORDER BY kditem";
    $qu_item = mysql_query($sql_item);
    while ($Item = mysql_fetch_array($qu_item)) {
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:ref_jabatan_bantu_prn.php

示例7: concat

$pdf->SetX($marginL + $w[0]);
$pdf->Cell($w[1], $hh * 2, 'Uraian', $border, 0, 'C');
$pdf->SetX($marginL + $w[0] + $w[1]);
$pdf->Cell($w[2], $hh * 2, 'Alasan', $border, 1, 'C');
$pdf->SetFont($font, '', $fsize2);
if ($kdunit == '420000') {
    $oList = mysql_query("select iku,alasan from m_iku_program order by concat(kdprogram,kddeputi,kdiku)");
} else {
    $oList_subprogram = mysql_query("select kdsubprogram from tb_subprogram where kddeputi='{$kdunit}'");
    $List_subprogram = mysql_fetch_array($oList_subprogram);
    $oList = mysql_query("select ikk,alasan from m_ikk_subprogram where kdsubprogram='{$List_subprogram['kdsubprogram']}' order by kdikk");
}
while ($List = mysql_fetch_array($oList)) {
    $max = 0;
    $no += 1;
    $arrNomor = $pdf->SplitToArray($w[0], $hhh, $no . '.');
    if ($kdunit == '420000') {
        $arrUraian = $pdf->SplitToArray($w[1], $hhh, trim($List['iku']));
    }
    if ($kdunit != '420000') {
        $arrUraian = $pdf->SplitToArray($w[1], $hhh, trim($List['ikk']));
    }
    $arrAlasan = $pdf->SplitToArray($w[2], $hhh, trim($List['alasan']));
    if ($max < count($arrUraian)) {
        $max = count($arrUraian);
    }
    if ($max < count($arrAlasan)) {
        $max = count($arrAlasan);
    }
    for ($i = 0; $i < $max; $i++) {
        $pdf->SetX($marginL);
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:cetak_menteri_iku.php

示例8:

 $sql_bank = "SELECT no_rek FROM mst_rekening WHERE nip = '{$nip}'";
 $oList_bank = mysql_query($sql_bank);
 $List_bank = mysql_fetch_array($oList_bank);
 $potongan_p = 0;
 $potongan_r = 0;
 if ($rdata_status['status_verifikasi_potongan'] == '1') {
     $bulan = $th . '-' . $kdbulan;
     $sql_pot = "SELECT TOT FROM potongan WHERE nip = '{$nip}' and bulan = '{$bulan}'";
     $oList_pot = mysql_query($sql_pot);
     $List_pot = mysql_fetch_array($oList_pot);
     $potongan_p = $List_pot['TOT'];
     $potongan_r = $potongan_p / 100 * $row['tunker'];
 }
 $max = 0;
 $no += 1;
 $arrNo = $pdf->SplitToArray($w1[0], $ln, $no . '.');
 $arrNama = $pdf->SplitToArray($w1[1], $ln, nama_peg($row['nip']) . "\n" . 'NIP. ' . reformat_nipbaru($row['nip']));
 $arrGol = $pdf->SplitToArray($w1[2], $ln, nm_gol($row['kdgol']) . "\n" . nm_status_peg($row['kdstatuspeg']));
 $arrJabatan = $pdf->SplitToArray($w1[3], $ln, nm_jabatan_ij($row['kdjabatan'], $row['kdunitkerja']) . "\n" . reformat_tgl($row['tmtjabatan']));
 $arrGrade = $pdf->SplitToArray($w1[4], $ln, $row['grade']);
 $arrTunker = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'], "0", ",", "."));
 $arrPajak = $pdf->SplitToArray($w1[5], $ln, number_format($row['pajak_tunker'], "0", ",", "."));
 $arrBruto = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'] + $row['pajak_tunker'], "0", ",", "."));
 $arrPPH = $pdf->SplitToArray($w1[6], $ln, number_format($row['pajak_tunker'], "0", ",", "."));
 $arrKurang = $pdf->SplitToArray($w1[7], $ln, number_format($potongan_p, "2", ",", ".") . '%');
 $arrBayar = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'] - $potongan_r, "0", ",", "."));
 $arrPot = $pdf->SplitToArray($w1[6], $ln, number_format($potongan_r, "0", ",", "."));
 $arrJmlPot = $pdf->SplitToArray($w1[6], $ln, number_format($row['pajak_tunker'] + $potongan_r, "0", ",", "."));
 $arrNorec = $pdf->SplitToArray($w1[8], $ln, $List_bank['no_rek']);
 $total_tunker += $row['tunker'];
 $total_pajak += $row['pajak_tunker'];
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:daftar_penerima_prn.php

示例9: array

$size = 10;
$ln = 5;
$margin = 10;
$tinggi = 275;
$w = array(0, 180);
$w1 = array(20, 70, 65, 15, 15);
$pdf->SetFont($font, '', $size);
$no = 0;
$xkdunit = substr($kdunit, 0, 5);
$sql = "SELECT * FROM mst_info_jabatan WHERE kdunitkerja LIKE '{$xkdunit}%' ORDER BY kdunitkerja,grade desc";
$qu = mysql_query($sql);
$row = array();
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[2], $ln, nm_jabatan_ij($row['kdjabatan'], $row['kdunitkerja']));
    $arrJumlah = $pdf->SplitToArray($w1[3], $ln, $row['jumlah']);
    $arrGrade = $pdf->SplitToArray($w1[4], $ln, $row['grade']);
    if ($max < count($arrUnit)) {
        $max = count($arrUnit);
    }
    if ($max < count($arrJabatan)) {
        $max = count($arrJabatan);
    }
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:info_jabatan_prn.php

示例10: array

$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'A. DATA UMUM', '', 1, 'L');
$w1 = array(10, 30, 45, 15, 30, 50);
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin);
$pdf->Cell($w1[0], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1] + $w1[2], $ln, 'I. PEJABAT PENILAI', $border, 0, 'L');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]);
$pdf->Cell($w1[3], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2] + $w1[3]);
$pdf->Cell($w1[4] + $w1[5], $ln, 'II. PEGAWAI NEGERI SIPIL YANG DINILAI', $border, 1, 'L');
$pdf->SetFont($font, '', $size);
$max = 0;
$arrNo_1 = $pdf->SplitToArray($w1[0], $ln, '1');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Nama');
$arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(nama_peg($row['nib_atasan'])));
$arrNo_2 = $pdf->SplitToArray($w1[3], $ln, '1');
$arrLabel_2 = $pdf->SplitToArray($w1[4], $ln, 'Nama');
$arrField_2 = $pdf->SplitToArray($w1[5], $ln, trim(nama_peg($row['nip'])));
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]);
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:realisasi_skp_awal_prn.php

示例11: array

$border = 1;
$size = 10;
$ln = 5;
$margin = 10;
$tinggi = 275;
$w = array(0, 180);
$w1 = array(20, 60, 65, 15, 25);
$pdf->SetFont($font, '', $size);
$no = 0;
$xkdunit = substr($kdunit, 0, 5);
$sql = "SELECT * FROM kd_jabatan WHERE kdunitkerja LIKE '{$xkdunit}%' ORDER BY kdunitkerja,klsjabatan desc,kode";
$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[2], $ln, $row['nmjabatan']);
    $arrKode = $pdf->SplitToArray($w1[4], $ln, substr($row['kode'], 0, 3) . '.' . substr($row['kode'], 3, 5));
    $arrGrade = $pdf->SplitToArray($w1[3], $ln, $row['klsjabatan']);
    if ($max < count($arrUnit)) {
        $max = count($arrUnit);
    }
    if ($max < count($arrJabatan)) {
        $max = count($arrJabatan);
    }
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:nama_jabatan_prn.php

示例12: array

$w1 = array(10, 30, 45, 15, 30, 60);
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin);
$pdf->Cell($w1[0], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1] + $w1[2], $ln, 'I. PEJABAT PENILAI', $border, 0, 'L');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2]);
$pdf->Cell($w1[3], $ln, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w1[0] + $w1[1] + $w1[2] + $w1[3]);
$pdf->Cell($w1[4] + $w1[5], $ln, 'II. PEGAWAI NEGERI SIPIL YANG DINILAI', $border, 1, 'L');
$pdf->SetFont($font, '', $size);
$sql = "SELECT * FROM mst_skp WHERE id = '{$id_skp}'";
$qu = mysql_query($sql);
$row = mysql_fetch_array($qu);
$max = 0;
$arrNo_1 = $pdf->SplitToArray($w1[0], $ln, '1');
$arrLabel_1 = $pdf->SplitToArray($w1[1], $ln, 'Nama');
$arrField_1 = $pdf->SplitToArray($w1[2], $ln, trim(nama_peg($row['nib_atasan'])));
$arrNo_2 = $pdf->SplitToArray($w1[3], $ln, '1');
$arrLabel_2 = $pdf->SplitToArray($w1[4], $ln, 'Nama');
$arrField_2 = $pdf->SplitToArray($w1[5], $ln, trim(nama_peg($row['nib'])));
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]);
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:zbuat_skp_prn.php

示例13: array

$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'BUKU CATATAN HARIAN PELAKSANAAN TUGAS', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'Tanggal ' . reformat_tgl($tgl1) . ' s/d ' . reformat_tgl($tgl2), '', 1, 'C');
$pdf->Ln() * 2;
$w1 = array(0, 30, 5, 100);
$pdf->SetFont($font, 'B', $size);
$sql = "SELECT * FROM mst_skp WHERE id = '{$id_skp}'";
$qu = mysql_query($sql);
$row = mysql_fetch_array($qu);
//------------- data pegawai yang dinilai -------------------
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1], $ln, 'PEJABAT YANG DINILAI', '', 1, 'L');
$max = 0;
$arrLabel = $pdf->SplitToArray($w1[1], $ln, 'NAMA PEGAWAI');
$arrUraian = $pdf->SplitToArray($w1[3], $ln, trim(nama_peg($row['nip'])));
$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, 'NIP');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:laporan_aktivitas_prn.php

示例14: array

$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 4;
$margin = 15;
$tinggi = 275;
$w1 = array(10, 50, 12, 40, 10, 30);
$pdf->SetFont($font, '', $size - 1);
$no = 0;
$sql = "SELECT * FROM mst_tk WHERE kdsatker = '{$kdsatker}' and tahun = '{$th}' and bulan = '{$kdbulan}' ORDER BY grade desc, kdgol desc, kdjabatan";
$qu = mysql_query($sql);
while ($row = mysql_fetch_array($qu)) {
    $max = 0;
    $no += 1;
    $arrNo = $pdf->SplitToArray($w1[0], $ln, $no . '.');
    $arrNama = $pdf->SplitToArray($w1[1], $ln, nama_peg($row['nib']) . "\n" . 'NIP. ' . reformat_nipbaru(nip_peg($row['nib'])));
    $arrGol = $pdf->SplitToArray($w1[2], $ln, nm_gol(substr($row['kdgol'], 0, 1) . hurufkeangka(substr($row['kdgol'], 1, 1))) . "\n" . status_peg($row['kdpeg']));
    if ($row['jml_hari'] == 0) {
        $arrJabatan = $pdf->SplitToArray($w1[3], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']) . "\n" . reformat_tgl($row['tmtjabatan']));
    }
    if ($row['jml_hari'] != 0) {
        $arrJabatan = $pdf->SplitToArray($w1[3], $ln, nm_info_jabatan($row['kdunitkerja'], $row['kdjabatan']) . "\n" . reformat_tgl($row['tmtjabatan']) . "\n" . ' (' . $row['jml_hari'] . ' hari dari ' . hari_bulan($th, $kdbl) . ' hari kerja)');
    }
    $arrGrade = $pdf->SplitToArray($w1[4], $ln, $row['grade']);
    $arrTGrade = $pdf->SplitToArray($w1[5], $ln, number_format(rp_grade($row['kdunitkerja'], $row['grade'], $row['kdpeg']), "0", ",", "."));
    $arrFPot = $pdf->SplitToArray($w1[5], $ln, number_format(rp_grade($row['kdunitkerja'], $row['grade'], $row['kdpeg']) - $row['tunker'], "0", ",", "."));
    $arrTunker = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'], "0", ",", "."));
    $arrPajak = $pdf->SplitToArray($w1[5], $ln, number_format($row['pajak_tunker'], "0", ",", "."));
    $arrMinta = $pdf->SplitToArray($w1[5], $ln, number_format($row['tunker'] + $row['pajak_tunker'], "0", ",", "."));
    $total_tunker += $row['tunker'];
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:daftar_nominatif_sttn.php

示例15: array

$w = array(30, 1, 120, 1);
$pdf->SetFont($font, 'B', $size + 8);
$y = $pdf->GetY() + 25;
$pdf->SetY($y);
$pdf->Image('../../css/images/ristek.jpg', 90, 25, 30, 30, 'jpg');
$y = $pdf->GetY() + 30;
$pdf->SetY($y);
$pdf->Cell(0, 10, 'KERANGKA ACUAN KERJA', '', 1, 'C');
$pdf->Cell(0, 10, 'KEGIATAN', '', 1, 'C');
$pdf->SetFont($font, 'B', $size + 6);
$pdf->Cell(0, 10, 'Tahun Anggaran ' . $Kegiatan_bp['th'], '', 1, 'C');
$y = $pdf->GetY() + 10;
$pdf->SetXY($margin + $w[0], $y);
$pdf->Cell($w[1] + $w[2] + $w[3], $ln, '', '', 1, 'C');
$max = 0;
$arrNmGiat = $pdf->SplitToArray($w[2], $ln, trim(nm_giat($Kegiatan_bp['kdgiat'])));
if ($max < count($arrNmGiat)) {
    $max = count($arrNmGiat);
}
$pdf->Line($margin + $w[0], $pdf->GetY(), $margin + $w[0] + $w[1] + $w[2] + $w[3], $pdf->GetY());
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1] + $w[2] + $w[3], $ln - 2, '', 'LR', 1, 'L');
$pdf->SetFont($font, 'B', $size + 5);
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w[0]);
    $pdf->Cell($w[1], $ln, '', 'L', 0, 'L');
    $pdf->SetX($margin + $w[0] + $w[1]);
    $pdf->Cell($w[2], $ln, $arrNmGiat[$i], '', 0, 'C');
    $pdf->SetX($margin + $w[0] + $w[1] + $w[2]);
    $pdf->Cell($w[3], $ln, '', 'R', 1, 'L');
}
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:kak_kegiatan_prn.php


注:本文中的PDF::SplitToArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。