MINI
C:
/
siak
/
Siak71
/
application
/
views
/
cetak
/
capil_kelahiran_wni
/
Upload File:
files >> C:/siak/Siak71/application/views/cetak/capil_kelahiran_wni/doRegister.php
<?php $this->siakconfigprint->setArrayPrint($configCetak); ?> <html> <head> <link href="../../java/cetak/css/style.css" rel="stylesheet" type="text/css" /> <style type="text/css" media="print,screen"> @page { size:21cm 31cm ;} .ROW01{ height:<?=$this->siakconfigprint->getValueCetak("ROW01");?>mm;} .ROW02_COL01{ width:<?=$this->siakconfigprint->getValueCetak("ROW02_COL01");?>mm;} .ROW03{ height:<?=$this->siakconfigprint->getValueCetak("ROW03");?>mm;} .ROW04_COL01{ width:<?=$this->siakconfigprint->getValueCetak("ROW04_COL01");?>mm;} .ROW05{ height:<?=$this->siakconfigprint->getValueCetak("ROW05");?>mm;} .ROW06{ height:<?=$this->siakconfigprint->getValueCetak("ROW06");?>mm;} .ROW07{ height:<?=$this->siakconfigprint->getValueCetak("ROW07");?>mm;} .ROW08_COL01{ width:<?=$this->siakconfigprint->getValueCetak("ROW08_COL01");?>mm;} .ROW09{ height:<?=$this->siakconfigprint->getValueCetak("ROW09");?>mm;} .ROW10_COL01{ width:<?=$this->siakconfigprint->getValueCetak("ROW10_COL01");?>mm;} .baris_register tr{ line-height:16px;} table{ margin-left:<?=$this->siakconfigprint->getValueCetak("ROW11_COL01");?>px;} </style> </head> <body> <?php for($i = 0; $i < count($data); $i++){ $value = $data[$i]; $warga_negara = 'INDONESIA'; if($value->bayi_org_asing == 'Y'){ $warga_negara = is_null($value->bayi_kebangsaan)?'-':$value->bayi_kebangsaan; } $hri_lapor = '-'; $tgl_lapor = NULL; $bln_lapor = NULL; $thn_lapor = NULL; if($value->plpr_tgl_lapor != NULL){ $hri_lapor = $value->plpr_tgl_lapor->format('w'); $tgl_lapor = $value->plpr_tgl_lapor->format('d'); $bln_lapor = $value->plpr_tgl_lapor->format('m'); $thn_lapor = $value->plpr_tgl_lapor->format('Y'); } $hri_lahir = '-'; $tgl_lahir = NULL; $bln_lahir = NULL; $thn_lahir = NULL; if($value->bayi_tgl_lahir != NULL){ $hri_lahir = $value->bayi_tgl_lahir->format('w'); $tgl_lahir = $value->bayi_tgl_lahir->format('d');; $bln_lahir = $value->bayi_tgl_lahir->format('m');; $thn_lahir = $value->bayi_tgl_lahir->format('Y');; } $dokumen = array(0 => '', 1 => '', 2 => '', 3 => '', 4 => ''); if($value->adm_dokumen != NULL){ $adm_dok = explode(';', $value->adm_dokumen); $temp_dokumen = array(); for($j = 0; $j < count($adm_dok); $j++){ if($adm_dok[$j] == '1=1'){ array_push($temp_dokumen, 'SURAT KELAHIRAN DARI DOKTER/BIDAN/PENOLONG'); } if($adm_dok[$j] == '2=1'){ array_push($temp_dokumen, 'NAMA DAN IDENTITAS SAKSI KELAHIRAN'); } if($adm_dok[$j] == '3=1'){ array_push($temp_dokumen, 'KARTU KELUARGA (KK) ORANG TUA'); } if($adm_dok[$j] == '4=1'){ array_push($temp_dokumen, 'KARTU TANDA PENDUDUK (KTP) ORANG TUA'); } if($adm_dok[$j] == '5=1'){ array_push($temp_dokumen, 'KUTIPAN AKTA NIKAH/AKTA PERKAWINAN ORANG TUA'); } } for($x = 0; $x < count($temp_dokumen); $x++){ $dokumen[$x] = $temp_dokumen[$x]; } } $suku_kata1_ayahNama = ''; $suku_kata2_ayahNama = ''; $frasa_baru =0; if($value->versi < 57){ if((strlen(trim($value->ayah_nama_lgkp)) > 0) && (strpos($value->adm_dokumen, "5=1") <> FALSE)){ $temp_ayah_nama = explode(' ', $value->ayah_nama_lgkp); if(count($temp_ayah_nama) > 0){ if(array_key_exists(0, $temp_ayah_nama)){ $suku_kata1_ayahNama.= $temp_ayah_nama[0]; } if(array_key_exists(1, $temp_ayah_nama)){ $suku_kata1_ayahNama.= ' '.$temp_ayah_nama[1]; } if(array_key_exists(2, $temp_ayah_nama)){ $suku_kata2_ayahNama.= $temp_ayah_nama[2]; } if(array_key_exists(3, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[3]; } if(array_key_exists(4, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[4]; } if(array_key_exists(5, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[5]; } if(array_key_exists(6, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[6]; } } } }else{ if(strlen(trim($value->ayah_nama_lgkp)) > 0){ if(strpos($value->adm_dokumen, "5=1") <> FALSE){ $temp_ayah_nama = explode(' ', $value->ayah_nama_lgkp); if(count($temp_ayah_nama) > 0){ if(array_key_exists(0, $temp_ayah_nama)){ $suku_kata1_ayahNama.= $temp_ayah_nama[0]; } if(array_key_exists(1, $temp_ayah_nama)){ $suku_kata1_ayahNama.= ' '.$temp_ayah_nama[1]; } if(array_key_exists(2, $temp_ayah_nama)){ $suku_kata2_ayahNama.= $temp_ayah_nama[2]; } if(array_key_exists(3, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[3]; } if(array_key_exists(4, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[4]; } if(array_key_exists(5, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[5]; } if(array_key_exists(6, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[6]; } } }elseif(strpos($value->adm_dokumen, "7=1") <> FALSE && $value->flag_nikah_ortu != 0){ $temp_ayah_nama = explode(' ', $value->ayah_nama_lgkp); if(count($temp_ayah_nama) > 0){ if(array_key_exists(0, $temp_ayah_nama)){ $suku_kata1_ayahNama.= $temp_ayah_nama[0]; } if(array_key_exists(1, $temp_ayah_nama)){ $suku_kata1_ayahNama.= ' '.$temp_ayah_nama[1]; } if(array_key_exists(2, $temp_ayah_nama)){ $suku_kata2_ayahNama.= $temp_ayah_nama[2]; } if(array_key_exists(3, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[3]; } if(array_key_exists(4, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[4]; } if(array_key_exists(5, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[5]; } if(array_key_exists(6, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[6]; } } $frasa_baru =1; } } } $hasil[$value->bayi_no]["00_WRG_NGR"] = $warga_negara; $hasil[$value->bayi_no]["01_HARI_INI"] = strtoupper($this->siakwordconvert->getNamaHariId($hri_lapor)); $hasil[$value->bayi_no]["02_BULAN_INI"] = is_null($tgl_lapor)?' ':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tgl_lapor)); $hasil[$value->bayi_no]["02_BULAN_INI"].= is_null($bln_lapor)?'':' '.strtoupper($this->siakwordconvert->getIndonesiaMonth($bln_lapor)); $hasil[$value->bayi_no]["03_TAHUN_INI"] = is_null($thn_lapor)?' ':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thn_lapor)); $hasil[$value->bayi_no]["09_SYARAT1"] = $dokumen[0]; $hasil[$value->bayi_no]["09_SYARAT2"] = $dokumen[1]; $hasil[$value->bayi_no]["09_SYARAT3"] = $dokumen[2]; $hasil[$value->bayi_no]["09_SYARAT4"] = $dokumen[3]; $hasil[$value->bayi_no]["10_HARI_LAHIR"] = strtoupper($this->siakwordconvert->getNamaHariId($hri_lahir)); $hasil[$value->bayi_no]["11_BULAN_LAHIR"] = is_null($tgl_lahir)?' ':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tgl_lahir)); $hasil[$value->bayi_no]["11_BULAN_LAHIR"].= is_null($bln_lahir)?'':' '.strtoupper($this->siakwordconvert->getIndonesiaMonth($bln_lahir)); $hasil[$value->bayi_no]["12_TAHUN_LAHIR"] = is_null($thn_lahir)?' ':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thn_lahir)); $hasil[$value->bayi_no]["17_ORTU2_DARI1"] = $suku_kata1_ayahNama; $hasil[$value->bayi_no]["17_ORTU2_DARI2"] = $suku_kata2_ayahNama; $hasil[$value->bayi_no]["SPTMJ_KWN"] = $frasa_baru; ?> <table width="100%" class="atas"> <tr class="ROW01"> <td></td> </tr> </table> <table width="100%" class="atas kiri baris_register font15"> <tr class="ROW03"> <td class="ROW02_COL01"></td> <td><?php echo is_null($warga_negara)||($warga_negara == '')?"-":$warga_negara;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr class="ROW05"> <td class="ROW04_COL01"></td> <td><?php echo $value->adm_akta_no;?><br /><?php echo is_null($value->bayi_nik)?'-':$value->bayi_nik;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="25mm"></td> <td width="40mm"><?php echo strtoupper($this->siakwordconvert->getNamaHariId($hri_lapor));?></td> <td width="20mm"></td> <td width="82mm"><?php echo is_null($tgl_lapor)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tgl_lapor));?> <?php echo is_null($bln_lapor)?'':strtoupper($this->siakwordconvert->getIndonesiaMonth($bln_lapor));?></td> <td width="18mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="76mm"><?php echo is_null($thn_lapor)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thn_lapor));?></td> <td width="45mm"></td> <td width="64mm"><?php echo is_null($value->capil_nama_pejabat)?'-':$value->capil_nama_pejabat;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="17mm"></td> <td width="168mm"><?php echo is_null($value->capil_jabatan)?'-':strtoupper($this->siaklib->siak_trim(str_replace('KEPALA', '', strtoupper($value->capil_jabatan))));?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="6mm"></td> <td width="125mm"><?php echo ($value->adm_no_kab < 70)?'KABUPATEN ':'';?><?php echo $value->adm_nama_kab;?></td> <td width="54mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="78mm"><?php echo is_null($value->plpr_nama_lgkp)?'-':$value->plpr_nama_lgkp;?></td> <td width="15mm"></td> <td width="17mm"><?php echo is_null($value->plpr_umur)?'-':$value->plpr_umur;?></td> <td width="38mm"></td> <td width="37mm"> <?php $temp_kerjaPelapor = explode(' ', trim($value->plpr_pekerjaan)); $suku_kata1_kerjapelapor = ''; $suku_kata2_kerjapelapor = ''; if(count($temp_kerjaPelapor) > 1){ if(array_key_exists(0, $temp_kerjaPelapor)){ $suku_kata1_kerjapelapor.= $temp_kerjaPelapor[0]; } if(array_key_exists(1, $temp_kerjaPelapor)){ $suku_kata2_kerjapelapor.= $temp_kerjaPelapor[1]; } if(array_key_exists(2, $temp_kerjaPelapor)){ $suku_kata2_kerjapelapor.= ' '.$temp_kerjaPelapor[2]; } if(array_key_exists(3, $temp_kerjaPelapor)){ $suku_kata2_kerjapelapor.= ' '.$temp_kerjaPelapor[3]; } if(array_key_exists(4, $temp_kerjaPelapor)){ $suku_kata2_kerjapelapor.= ' '.$temp_kerjaPelapor[4]; } if(array_key_exists(5, $temp_kerjaPelapor)){ $suku_kata2_kerjapelapor.= ' '.$temp_kerjaPelapor[5]; } } else{ $suku_kata1_kerjapelapor = $temp_kerjaPelapor[0]; } echo $suku_kata1_kerjapelapor; // echo $temp_kerjaPelapor[0]; ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="67mm"> <?php echo $suku_kata2_kerjapelapor; ?> </td> <td width="45mm"></td> <td width="73mm"><?php echo is_null($value->plpr_alamat)?'-':$value->plpr_alamat;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="8mm"></td> <td width="10mm"><?php echo is_null($value->plpr_no_rt)?'-':$value->plpr_no_rt;?></td> <td width="12mm"></td> <td width="11mm"><?php echo is_null($value->plpr_no_rw)?'-':$value->plpr_no_rw;?></td> <td width="35mm"></td> <td width="84mm"><?php echo $value->plpr_nama_kel;?></td> <td width="25mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="65mm"><?php echo $value->plpr_nama_kec;?></td> <td width="35mm"></td> <td width="62mm"><?php echo $value->plpr_nama_kab;?></td> <td width="23mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="75mm"><?php echo $value->plpr_nama_prop;?></td> <td width="110mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font11"> <tr> <td width="7mm"></td> <td width="77mm"><?php echo $dokumen[0];?></td> <td width="10mm"></td> <td width="91mm"><?php echo $dokumen[2];?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font11"> <tr> <td width="7mm"></td> <td width="77mm"><?php echo $dokumen[1];?></td> <td width="10mm"></td> <td width="91mm"><?php echo $dokumen[3];?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="42mm"></td> <td width="40mm"><?php echo is_null($value->bayi_tmpt_lahir)?'-':$value->bayi_tmpt_lahir;?></td> <td width="21mm"></td> <td width="28mm"><?php echo strtoupper($this->siakwordconvert->getNamaHariId($hri_lahir));?></td> <td width="20mm"></td> <td width="34mm"> <?php $tgl_lhr_bayi = is_null($tgl_lahir)?'-':trim(strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tgl_lahir))); $temp_tgl_lhr_bayi = explode(' ', $tgl_lhr_bayi); $suku_kata1_tgl_lhrbayi = ''; $suku_kata2_tgl_lhrbayi = ''; // print_r($temp_tgl_lhr_bayi); if(count($temp_tgl_lhr_bayi) > 1){ if(array_key_exists(0, $temp_tgl_lhr_bayi)){ $suku_kata1_tgl_lhrbayi.= $temp_tgl_lhr_bayi[0].' '; } if(array_key_exists(1, $temp_tgl_lhr_bayi)){ $suku_kata1_tgl_lhrbayi.= $temp_tgl_lhr_bayi[1].' '; } if(array_key_exists(2, $temp_tgl_lhr_bayi)){ $suku_kata2_tgl_lhrbayi.= $temp_tgl_lhr_bayi[2].' '; } } echo $suku_kata1_tgl_lhrbayi; ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="70mm"> <?php echo $suku_kata2_tgl_lhrbayi; echo is_null($bln_lahir)?'':strtoupper($this->siakwordconvert->getIndonesiaMonth($bln_lahir)); ?> </td> <td width="14mm"></td> <td width="55mm"><?php echo is_null($thn_lahir)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thn_lahir));?></td> <td width="15mm"></td> <td width="31mm"><?php echo is_null($value->bayi_wkt_lahir)?'00:00':$value->bayi_wkt_lahir;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="63mm"></td> <td width="122mm"><?php echo is_null($value->bayi_nama_lgkp)?'-':$value->bayi_nama_lgkp;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="17mm"></td> <td width="17mm"><?php echo is_null($value->bayi_anak_ke)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($value->bayi_anak_ke));?></td> <td width="38mm"> <?php if($value->bayi_jns_kelamin != 1){ echo "<i style='color:#000000'>==========</i><i style='pading-left:1px;color:#FFFFFF'>==========</i>"; } else{ echo "<i style='color:#FFFFFF'>==========</i><i style='pading-left:1px;color:#000000'>==========</i>"; } ?> </td> <td width="113mm"> <?php if(strlen($ibuNama) > 50){ echo "<span class='font10'>".$ibuNama."</span>"; } else{ echo $ibuNama; } ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="13mm"></td> <td width="17mm"><?php echo $ibuUmur;?></td> <td width="36mm"></td> <td width="74mm"><?php echo $ibuKerja;?></td> <td width="45mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="94mm"><?php echo $ibuAlmt;?></td> <td width="20mm"></td> <td width="10mm"><?php echo $ibuNoRt;?></td> <td width="11mm"></td> <td width="13mm"><?php echo $ibuNoRw;?></td> <td width="37mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="51mm"><?php echo $ibuKel;?></td> <td width="28mm"></td> <td width="70mm"><?php echo $ibuKec;?></td> <td width="36mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="62mm"><?php echo $ibuKab;?></td> <td width="20mm"></td> <td width="55mm"><?php echo $ibuProp;?></td> <td width="14mm"></td> <td width="34mm"> <?php $suku_kata1_ayahNama = ''; $suku_kata2_ayahNama = ''; if($ayhNama != '-'){ $temp_ayah_nama = explode(' ', trim($ayhNama)); if(count($temp_ayah_nama) > 1){ if(array_key_exists(0, $temp_ayah_nama)){ $suku_kata1_ayahNama.= $temp_ayah_nama[0].' '; } if(array_key_exists(1, $temp_ayah_nama)){ $suku_kata1_ayahNama.= $temp_ayah_nama[1]; } if(array_key_exists(2, $temp_ayah_nama)){ $suku_kata1_ayahNama.= ' '.$temp_ayah_nama[2]; } if(array_key_exists(3, $temp_ayah_nama)){ $temp_suku_kata1_ayahNama= ' '.$temp_ayah_nama[3]; if(strlen($temp_suku_kata1_ayahNama) <= 5){ $suku_kata1_ayahNama.= ' '.$temp_ayah_nama[3]; } else{ $suku_kata1_ayahNama.= ' '.substr($temp_ayah_nama[3], 0, 4).'-'; $suku_kata2_ayahNama.= substr($temp_ayah_nama[3], 4, strlen($temp_suku_kata1_ayahNama)).' '; } } if(array_key_exists(4, $temp_ayah_nama)){ $suku_kata2_ayahNama.= $temp_ayah_nama[4]; } if(array_key_exists(5, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[5]; } if(array_key_exists(6, $temp_ayah_nama)){ $suku_kata2_ayahNama.= ' '.$temp_ayah_nama[6]; } } } else{ $suku_kata1_ayahNama.= '-'; } //echo $suku_kata1_ayahNama; if(strlen($suku_kata1_ayahNama) > 15){ echo "<span class='font8'>".$suku_kata1_ayahNama."</span>"; } else{ echo $suku_kata1_ayahNama; } ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="20mm"> <?php if(strlen($suku_kata2_ayahNama) > 8){ echo "<span class='font8'>".$suku_kata2_ayahNama."</span>"; } else{ echo $suku_kata2_ayahNama; } ?> </td> <td width="16mm"></td> <td width="18mm"><?php echo $ayhUmur;?></td> <td width="37mm"></td> <td width="94mm"><?php echo $ayhKerja;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="43mm"></td> <td width="142mm"><?php echo $ayhAlmt;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="10mm"><?php echo $ayhNoRt;?></td> <td width="13mm"></td> <td width="11mm"><?php echo $ayhNoRw;?></td> <td width="35mm"></td> <td width="36mm"><?php echo $ayhKel;?></td> <td width="28mm"></td> <td width="43mm"><?php echo $ayhKec;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="34mm"></td> <td width="67mm"><?php echo $ayhKab;?></td> <td width="20mm"></td> <td width="64mm"><?php echo $ayhProp;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="75mm" height="17px"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="70mm"><?php echo is_null($value->saksi1_nama_lgkp)?'-':$value->saksi1_nama_lgkp;?></td> <td width="15mm"></td> <td width="10mm"><?php echo is_null($value->saksi1_umur)?'-':$value->saksi1_umur;?></td> <td width="37mm"></td> <td width="44mm"> <?php $temp_kerjaSaksi1 = explode(' ', trim($value->saksi1_pekerjaan)); $suku_kata1_kerjaSaksi1 = ''; $suku_kata2_kerjaSaksi1 = ''; if(count($temp_kerjaSaksi1) > 1){ if(array_key_exists(0, $temp_kerjaSaksi1)){ $suku_kata1_kerjaSaksi1.= $temp_kerjaSaksi1[0]; } if(array_key_exists(1, $temp_kerjaSaksi1)){ $suku_kata1_kerjaSaksi1.= ' '. $temp_kerjaSaksi1[1]; } if(array_key_exists(2, $temp_kerjaSaksi1)){ $suku_kata2_kerjaSaksi1.= $temp_kerjaSaksi1[2]; } if(array_key_exists(3, $temp_kerjaSaksi1)){ $suku_kata2_kerjaSaksi1.= ' '.$temp_kerjaSaksi1[3]; } if(array_key_exists(4, $temp_kerjaSaksi1)){ $suku_kata2_kerjaSaksi1.= ' '.$temp_kerjaSaksi1[4]; } if(array_key_exists(5, $temp_kerjaSaksi1)){ $suku_kata2_kerjaSaksi1.= ' '.$temp_kerjaSaksi1[5]; } } else{ $suku_kata1_kerjaSaksi1 = $temp_kerjaSaksi1[0]; } echo $suku_kata1_kerjaSaksi1; // echo $value->saksi1_pekerjaan; ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="30mm"><?php echo $suku_kata2_kerjaSaksi1;?></td> <td width="44mm"></td> <td width="80mm"><?php echo is_null($value->saksi1_alamat)?'-':$value->saksi1_alamat;?></td> <td width="6mm"></td> <td width="16mm"><?php echo is_null($value->saksi1_no_rt)?'-':str_pad($value->saksi1_no_rt, 3, '0', STR_PAD_LEFT);?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="15mm"></td> <td width="8mm"><?php echo is_null($value->saksi1_no_rw)?'-':str_pad($value->saksi1_no_rw, 3, '0', STR_PAD_LEFT);?></td> <td width="36mm"></td> <td width="98mm"><?php echo $value->saksi1_nama_kel;?></td> <td width="28mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="67mm"><?php echo $value->saksi1_nama_kec;?></td> <td width="35mm"></td> <td width="74mm"><?php echo $value->saksi1_nama_kab;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="23mm"></td> <td width="162mm"><?php echo $value->saksi1_nama_prop;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="70mm"><?php echo is_null($value->saksi2_nama_lgkp)?'-':$value->saksi2_nama_lgkp;?></td> <td width="15mm"></td> <td width="10mm"><?php echo is_null($value->saksi2_umur)?'-':$value->saksi2_umur;?></td> <td width="37mm"></td> <td width="44mm"> <?php $temp_kerjaSaksi2 = explode(' ', trim($value->saksi2_pekerjaan)); $suku_kata1_kerjaSaksi2 = ''; $suku_kata2_kerjaSaksi2 = ''; if(count($temp_kerjaSaksi2) > 1){ if(array_key_exists(0, $temp_kerjaSaksi2)){ $suku_kata1_kerjaSaksi2.= $temp_kerjaSaksi2[0]; } if(array_key_exists(1, $temp_kerjaSaksi2)){ $suku_kata1_kerjaSaksi2.= ' '. $temp_kerjaSaksi2[1]; } if(array_key_exists(2, $temp_kerjaSaksi2)){ $suku_kata2_kerjaSaksi2.= $temp_kerjaSaksi2[2]; } if(array_key_exists(3, $temp_kerjaSaksi2)){ $suku_kata2_kerjaSaksi2.= ' '.$temp_kerjaSaksi2[3]; } if(array_key_exists(4, $temp_kerjaSaksi2)){ $suku_kata2_kerjaSaksi2.= ' '.$temp_kerjaSaksi2[4]; } if(array_key_exists(5, $temp_kerjaSaksi2)){ $suku_kata2_kerjaSaksi2.= ' '.$temp_kerjaSaksi2[5]; } } else{ $suku_kata1_kerjaSaksi2 = $temp_kerjaSaksi2[0]; } echo $suku_kata1_kerjaSaksi2; // echo $value->saksi2_pekerjaan; ?> </td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="30mm"><?php echo $suku_kata2_kerjaSaksi2; ?></td> <td width="44mm"></td> <td width="80mm"><?php echo is_null($value->saksi2_alamat)?'-':$value->saksi2_alamat;?></td> <td width="6mm"></td> <td width="16mm"><?php echo is_null($value->saksi2_no_rt)?'-':str_pad($value->saksi2_no_rt, 3, '0', STR_PAD_LEFT);?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="15mm"></td> <td width="8mm"><?php echo is_null($value->saksi2_no_rw)?'-':str_pad($value->saksi2_no_rw, 3, '0', STR_PAD_LEFT);?></td> <td width="36mm"></td> <td width="98mm"><?php echo $value->saksi2_nama_kel;?></td> <td width="28mm"></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="9mm"></td> <td width="67mm"><?php echo $value->saksi2_nama_kec;?></td> <td width="35mm"></td> <td width="74mm"><?php echo $value->saksi2_nama_kab;?></td> </tr> </table> <table width="185mm" class="atas kiri baris_register font12"> <tr> <td width="23mm"></td> <td width="162mm"><?php echo $value->saksi2_nama_prop;?></td> </tr> </table> <table width="185mm" class="atas"> <tr class="ROW06"> <td></td> </tr> </table> <table width="175mm" class="atas tengah baris_register font12"> <tr class="ROW07"> <td width="30%"><?php echo is_null($value->saksi1_nama_lgkp)?'-':$value->saksi1_nama_lgkp;?></td> <td width="5%"></td> <td width="30%"><?php echo is_null($value->plpr_nama_lgkp)?'-':$value->plpr_nama_lgkp;?></td> <td width="4%"></td> <td width="30%"><?php echo is_null($value->saksi2_nama_lgkp)?'-':$value->saksi2_nama_lgkp;?></td> </tr> </table> <table width="185mm" class="atas tengah baris_register font12"> <tr class="ROW09"> <td class="ROW08_COL01"></td> <td><?php echo is_null($value->capil_jabatan)?'-':strtoupper($this->siaklib->siak_trim(str_replace('KEPALA', '', strtoupper($value->capil_jabatan))));?></td> </tr> </table> <table width="185mm" class="atas tengah baris_register font12"> <tr> <td class="ROW10_COL01"></td> <td><?php echo is_null($value->capil_nama_pejabat)?'-':$value->capil_nama_pejabat;?></td> </tr> </table> <?php if($i < count($data)-1){ echo '<div class="halamanbaru"></div>'; } } ?> </body> </html>
Copyright ©2021 || Defacer Indonesia