MINI
C:
/
siak
/
Siak71
/
application
/
views
/
cetak
/
capil_kelahiran_wni
/
Upload File:
files >> C:/siak/Siak71/application/views/cetak/capil_kelahiran_wni/doKutipanPreview.php
<?php $this->siakconfigprint->setArrayPrint($configCetak); ?> <html> <head> <link href="../../java/cetak/css/style.css" rel="stylesheet" type="text/css"/> <style> @page{ size:A4; } .atas td { vertical-align:text-top; padding:0mm; } </style> </head> <body class="atas"> <?php for ($i = 0; $i < count($data); $i++){ $value = $data[$i]; $indWord = ""; $engWord = ""; $indSex = "PEREMPUAN"; $endSex = "DAUGHTER"; if($value->bayi_jns_kelamin == "1"){ $indSex = "LAKI-LAKI"; $endSex = "SON"; } $indAnake = " "; $engAnake = " "; if($this->siaklib->getKosongToStrip($value->bayi_anak_ke) <> "-"){ $indAnake = $this->siakwordconvert->getIndonesiaConvertNumberToWords($value->bayi_anak_ke).", "; $engAnake = $this->siakwordconvert->getEnglishOrdinal($value->bayi_anak_ke)." "; } $frasa_baru =0; if($value->versi < 57){ if((strlen(trim($value->ayah_nama_lgkp)) > 0) && (strpos($value->adm_dokumen, "5=1") !== FALSE)){ $indWord = $indAnake.$indSex." DARI AYAH ".$value->ayah_nama_lgkp." DAN IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM FATHER ".$value->ayah_nama_lgkp." AND MOTHER ".$value->ibu_nama_lgkp; }else{ $indWord = $indAnake.$indSex." DARI IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM MOTHER ".$value->ibu_nama_lgkp; } }else{ if(strlen(trim($value->ayah_nama_lgkp)) > 0){ if(strpos($value->adm_dokumen, "5=1") <> FALSE){ $indWord = $indAnake.$indSex." DARI AYAH ".$value->ayah_nama_lgkp." DAN IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM FATHER ".$value->ayah_nama_lgkp." AND MOTHER ".$value->ibu_nama_lgkp; }elseif(strpos($value->adm_dokumen, "7=1") <> FALSE && $value->flag_nikah_ortu != 0){ $indWord = $indAnake.$indSex." DARI AYAH ".$value->ayah_nama_lgkp." DAN IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM FATHER ".$value->ayah_nama_lgkp." AND MOTHER ".$value->ibu_nama_lgkp; $frasa_baru =1; }else{ $indWord = $indAnake.$indSex." DARI IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM MOTHER ".$value->ibu_nama_lgkp; } }else{ $indWord = $indAnake.$indSex." DARI IBU ".$value->ibu_nama_lgkp; $engWord = $engAnake.$endSex." FROM MOTHER ".$value->ibu_nama_lgkp; } } $tglLahir = NULL; $blnLahir = NULL; $thnLahir = NULL; if($value->bayi_tgl_lahir !== NULL){ $tglLahir = $value->bayi_tgl_lahir->format('d'); $blnLahir = $value->bayi_tgl_lahir->format('m'); $thnLahir = $value->bayi_tgl_lahir->format('Y'); } $tglNow = date('d'); $blnNow = date('m'); $thnNow = date('Y'); $hasil[$value->bayi_no]["WN_IND"] = "INDONESIA"; $hasil[$value->bayi_no]["WN_ENG"] = "INDONESIA"; $hasil[$value->bayi_no]["LHR_TGL_IND"] = is_null($tglLahir)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tglLahir)); $hasil[$value->bayi_no]["LHR_TGL_ENG"] = is_null($tglLahir)?'-':"THE ".strtoupper($this->siakwordconvert->getEnglishOrdinal($tglLahir))." OF "; $hasil[$value->bayi_no]["LHR_BLN_IND"] = is_null($blnLahir)?'-':strtoupper($this->siakwordconvert->getIndonesiaMonth($blnLahir)); $hasil[$value->bayi_no]["LHR_BLN_ENG"] = is_null($blnLahir)?'-':strtoupper($this->siakwordconvert->getEnglishMonth($blnLahir)); $hasil[$value->bayi_no]["LHR_THN_IND"] = is_null($thnLahir)?'-':strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thnLahir)); $hasil[$value->bayi_no]["LHR_THN_ENG"] = is_null($thnLahir)?'-':strtoupper($this->siakwordconvert->getEnglishYear($thnLahir)); $hasil[$value->bayi_no]["WORD_IND"] = strtoupper($indWord); $hasil[$value->bayi_no]["WORD_ENG"] = strtoupper($engWord); $hasil[$value->bayi_no]["CTK_TGL_IND"] = strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($tglNow)).' '.strtoupper($this->siakwordconvert->getIndonesiaMonth($blnNow)); $hasil[$value->bayi_no]["CTK_TGL_ENG"] = "THE ".strtoupper($this->siakwordconvert->getEnglishOrdinal($tglNow))." OF ".strtoupper($this->siakwordconvert->getEnglishMonth($blnNow)); $hasil[$value->bayi_no]["CTK_THN_IND"] = strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($thnNow)); $hasil[$value->bayi_no]["CTK_THN_ENG"] = strtoupper($this->siakwordconvert->getEnglishYear($thnNow)); $hasil[$value->bayi_no]["SPTMJ_KWN"] = $frasa_baru; ?> <table width="100%" class="kiri bgLahir"> <tr> <td> <table width="100%" class="kiri"> <tr class="ROW01"> <td height="108"></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW03"> <td width="30%" height="204" class="ROW02_COL01"></td> <td width="70%" class="font15"><b><?=$value->bayi_nik?></b></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW05"> <td width="45%" height="130" class="ROW04_COL01"></td> <td width="55%" class="font15"><b> I N D O N E S I A</b><br /> <i>I N D O N E S I A</i></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW07"> <td width="40%" height="45" class="ROW06_COL01"></td> <td width="60%" class="font15"><b><?=$value->adm_akta_no?></b></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW09"> <td width="17%" class="ROW08_COL01"></td> <td width="38%"><b><?=$value->bayi_tmpt_lahir?></b></td> <td width="1%" class="ROW08_COL02"></td> <td width="44%"><b><?=strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($value->bayi_tgl_lahir->format('d')));?></b><br /> <i>THE <?=strtoupper($this->siakwordconvert->getEnglishOrdinal($value->bayi_tgl_lahir->format('d')))." OF ";?></i></td> </tr> </table> <table width="100%" class="kiri font10"> <tr class="ROW11 renggang"> <td width="9%" class="ROW10_COL01"></td> <td width="18%"><b><?=strtoupper($this->siakwordconvert->getIndonesiaMonth($value->bayi_tgl_lahir->format('m')));?></b><br /> <i><?=strtoupper($this->siakwordconvert->getEnglishMonth($value->bayi_tgl_lahir->format('m')));?></i></td> <td width="1%" class="ROW10_COL02"></td> <td width="72%"><b><?=strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords($value->bayi_tgl_lahir->format('Y')));?></b><br /> <i><?=strtoupper($this->siakwordconvert->getEnglishYear($value->bayi_tgl_lahir->format('Y')));?></i></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW13"> <td width="2%" class="ROW12_COL01"></td> <td width="73%" height="30" class="font15 tengah vtengah"><b><?=$value->bayi_nama_lgkp?></b></td> <td width="25%" class="ROW12_COL02"></td> </tr> </table> <table width="100%" class="font10"> <tr class="ROW15"> <td width="16%" height="106" class="ROW14_COL01"></td> <td width="81%"><b><?=strtoupper($indWord)?></b><br /> <i><?=strtoupper($engWord)?></i></td> <td width="3%" class="ROW14_COL02"></td> </tr> </table> <table width="100%" class="kiri"> <tr class="ROW17"> <td width="62%" height="16" class="ROW16_COL01"></td> <td width="33%"><b>DI <?=$this->siaklib->getTulisKabKota($value->adm_no_kab)?> <?=$value->nama_kab_desc?></b></td> <td width="5%" class="ROW16_COL02"></td> </tr> </table> <table width="100%" class="kiri font11"> <tr class="ROW19"> <td width="53%" height="5" class="ROW18_COL01"></td> <td width="33%"><b><?=strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords(date('d')))." ".strtoupper($this->siakwordconvert->getIndonesiaMonth(date('m')));?></b><br /> <i>THE <?=strtoupper($this->siakwordconvert->getEnglishOrdinal(date('d')))." OF ".strtoupper($this->siakwordconvert->getEnglishMonth(date('m'))).",";?></i></td> <td width="14%" class="ROW18_COL02"></td> </tr> </table> <table width="100%" class="kiri font11"> <tr class="ROW21"> <td width="42%" class="ROW20_COL01"></td> <td width="32%"><b><?=strtoupper($this->siakwordconvert->getIndonesiaConvertNumberToWords(date('Y')));?></b><br /> <i><?=strtoupper($this->siakwordconvert->getEnglishYear(date('Y')));?></i></td> <td width="26%" class="ROW20_COL02"></td> </tr> </table> <table width="100%" class="kiri font12"> <tr class="ROW23"> <td width="49%" height="86" class="ROW22_COL01"></td> <td width="26%"><b><?php echo is_null($value->capil_jabatan)?'-':$this->siaklib->siak_trim(str_replace('KEPALA', '', strtoupper($value->capil_jabatan)));?></b></td> <td width="25%" class="ROW22_COL02"></td> </tr> </table> <table width="100%" class="kiri"> <tr> <td width="52%" height="122" class="ROW24_COL01"></td> <td width="35%"><b><u><?php echo is_null($value->capil_nama_pejabat)?'-':$value->capil_nama_pejabat;?></u><br /> NIP : <?php echo is_null($value->capil_nip_pejabat)?'-':$value->capil_nip_pejabat;?></b></td> <td width="13%" class="ROW24_COL02"></td> </tr> </table> </td> </tr> </table> <?php if($i < count($data)-1){ echo '<div class="halamanbaru"></div>'; } } ?> </body> </html>
Copyright ©2021 || Defacer Indonesia