MINI
C:
/
SiakApp
/
apps
/
ddn
/
modules
/
CatatanSipilKematian
/
templates
/
Upload File:
files >> C:/SiakApp/apps/ddn/modules/CatatanSipilKematian/templates/ListCetakMatiAktaKutipanSuccess.php
<?php for ($j=0;$j<count($listCapilMati);$j++) { if (!$LimitCetak[$j]) { $rows = $listCapilMati[$j][0]; $row = $listRegion[$j][0]; $admAktaKtpTgl = date("d-m-Y"); // Setup Penandatangan $kab = (ereg("KODYA|KOTA", $row->getNamaKab())) ? $row->getNamaKab() : "KAB. " . $row->getNamaKab(); $NamaPej = $row->getCapilNamaPejabat(); $NipPej = $row->getCapilNipPejabat(); //$cekKepala = strtoupper(substr($row->getJabatan(), 0,6)); // // if ($cekKepala == "KEPALA") // { // $jabatan = strtoupper(substr_replace($row->getCapilJabatan(), '',0,7)); // } // else // { $jabatan = strtoupper($row->getCapilJabatan()); // } // Tanggal Kutipan Akta $AktaTglIndo = CapilDateSayDate($admAktaKtpTgl, false, true) . " " . CapilDateSayMonth($admAktaKtpTgl); $AktaTglIng = CapilDateSayDate($admAktaKtpTgl, true, true) . " " . CapilDateSayMonth($admAktaKtpTgl, true); $AktaThnIndo = "TAHUN " . CapilDateSayYear($admAktaKtpTgl, false, true); $AktaThnIng = "ON YEAR " . CapilDateSayYear($admAktaKtpTgl, true, true); $kelamin = ($rows->getMatiJnsKelamin() == 1) ? "LAKI-LAKI" : "PEREMPUAN"; $hurufCetak = (strlen(CapilDateSayYear($rows->getMatiTglMati(), false, true)) > 30) ? 12 : 14; $hurufCetakLahir = (strlen(CapilDateSayYear($rows->getMatiTglLahir(), false, true)) > 30) ? 12 : 14; $jenazahAnakKe = ($rows->getMatiAnakKe()) ? strtoupper(CapilSayNumber($rows->getMatiAnakKe())) : "-"; $kelaminEng = ($rows->getMatiJnsKelamin() == "1") ? "MALE" : "FEMALE"; $matiAnakKeEng = strtoupper(CapilSayNumberEng2($rows->getMatiAnakKe(), true)); ?> <html> <head> <title>kutipan_akta_mati</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="0" style="font-family:Arial;font-size:13px;"> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW01?>" height="<?php echo $MATI_ROW01?>" /></td> <td> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" height="<?php echo $MATI_ROW02?>" width="1"/></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW02?>" height="1" /></td><td><b style="font-size:16px"><?php echo $rows->getMatiNik();?></b></td> <?php /*?> <td><b><?php echo $rows->getMatiNik();?></b></td><?php */?> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW03?>" /></td> <td> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW04?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW04?>" height="1" /></td> <td style="font-size:17px;"><b><?php echo ($rows->getMatiWrgNgr()==1)?"I N D O N E S I A":$rows->getMatiKebangsaan();?></b></td> </tr> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW04?>" height="1" /></td> <td style="font-size:14px;"><em><?php echo ($rows->getMatiWrgNgr()==1)?"I N D O N E S I A N":$rows->getMatiKebangsaan();?></em></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW05?>" /></td> <td> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW06?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW06?>" height="1" /></td><td><b style="font-size:16px"><?php echo $rows->getAdmAktaNo();?></b></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW07?>" /></td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW07?>" height="1" /></td><td><b>-</b></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW08?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW08?>" height="1" /></td> <td width="200" height="15" valign="top"><b><?php echo $rows->getMatiTmptMati(); ?></b></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW08?>" height="1" /></td> <td align="left" style="font-size:<?php echo strlen(CapilDateSayDate($rows->getMatiTglMati(), false, true))>15?12:14; ?>"><b><?php echo CapilDateSayDate($rows->getMatiTglMati(), false, true); ?></b><br /><em style="font-size:<?php echo strlen(CapilDateSayDate($rows->getMatiTglMati(), false, true))>15?12:14; ?>"><?php echo CapilDateSayDate($rows->getMatiTglMati(), true, true); ?></em></td> </tr> <!--<tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW08?>" height="1" /></td> <td> </td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW08?>" height="1" /></td> <td><em><?php echo CapilDateSayDate($rows->getMatiTglMati(), true, true); ?></em></td> </tr>--> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW10?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr height="14"> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW10?>" height="1" /></td> <td valign="bottom" width="150" height="14" style="font-size:<?php echo strlen(CapilDateSayMonth($rows->getMatiTglMati(), false, true))>15?12:14; ?>"><b><?php echo CapilDateSayMonth($rows->getMatiTglMati(), false, true);?></b></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW10?>" height="1" /></td> <td valign="bottom" style="font-size:<?php echo strlen(CapilDateSayYear($rows->getMatiTglMati(), false, true))>30?12:14; ?>"><b><?php echo CapilDateSayYear($rows->getMatiTglMati(), false, true);?></b></td> </tr> <tr height="14"> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW10?>" height="1" /></td> <td valign="top" height="14" style="font-size:<?php echo strlen(CapilDateSayMonth($rows->getMatiTglMati(), false, true))>15?12:14; ?>"><em><?php echo CapilDateSayMonth($rows->getMatiTglMati(), true, true);?></em></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW10?>" height="1" /></td> <td valign="top" style="font-size:<?php echo strlen(CapilDateSayYear($rows->getMatiTglMati(), false, true))>30?12:14; ?>"><em><?php echo CapilDateSayYear($rows->getMatiTglMati(), true, true);?></em></td> </tr> </table> <!--<table align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="bottom"><b><?php echo CapilDateSayMonth($rows->getMatiTglMati(), false, true);?></b></td> </tr> <tr> <td valign="top"><em><?php echo CapilDateSayMonth($rows->getMatiTglMati(), true, true);?></em></td> </tr> </table>--> <!--<table width="80%" align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW10?>" height="1" /></td> <td valign="bottom"><b><?php echo CapilDateSayYear($rows->getMatiTglMati(), false, true);?></b></td> </tr> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW10?>" height="1" /></td> <td valign="top"><em><?php echo CapilDateSayYear($rows->getMatiTglMati(), true, true);?></em></td> </tr> </table>--> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW12?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:16px;"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW12?>" height="1" /></td><td align="center"><b><?php echo $rows->getMatiNamaLgkp();?></b></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW13?>" /></td> <td valign="bottom"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW13?>" height="1" /></td> <td width="150" height="15" valign="top"><b><?php echo $rows->getMatiTmptLahir();?></b></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW13?>" height="1" /></td> <td align="left"><b><?php echo CapilDateSayDate($rows->getMatiTglLahir(), false, true);?></b><br /><em><?php echo CapilDateSayDate($rows->getMatiTglLahir(), true, true);?></em></td> </tr> <!--<tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW13?>" height="1" /></td> <td> </td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW13?>" height="1" /></td> <td><em><?php echo CapilDateSayDate($rows->getMatiTglLahir(), true, true);?></em></td> </tr>--> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW15?>" /></td> <td valign="top"> <table width="88%" border="0" cellpadding="0" cellspacing="0"> <tr height="28"> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW15?>" height="1" /></td> <td valign="bottom" width="150" height="14" style="font-size:<?php echo strlen(CapilDateSayMonth($rows->getMatiTglLahir(), false, true))>15?12:14; ?>"><b><?php echo CapilDateSayMonth($rows->getMatiTglLahir());?></b></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW15?>" height="1" /></td> <td width="210" valign="bottom" style="font-size:<?php echo strlen(CapilDateSayYear($rows->getMatiTglLahir(), false, true))>40?12:14; ?>"><b><?php echo CapilDateSayYear($rows->getMatiTglLahir(), false, true);?></b></td> </tr> <tr height="28"> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW15?>" height="1" /></td> <td valign="top" height="14" style="font-size:<?php echo strlen(CapilDateSayMonth($rows->getMatiTglLahir(), false, true))>15?12:14; ?>"><em><?php echo CapilDateSayMonth($rows->getMatiTglLahir(), true);?></em></td> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW15?>" height="1" /></td> <td valign="top" style="font-size:<?php echo strlen(CapilDateSayYear($rows->getMatiTglLahir(), false, true))>40?12:14; ?>"><em><?php echo CapilDateSayYear($rows->getMatiTglLahir(), true, true);?><?php /*?>anak ke <b><?php echo $jenazahAnakKe;?></b> jenis kelamin <b><?php echo $kelamin;?></b> dari <?php echo $rows->getIbuNamaLgkp();?><?php */?></em></td> </tr> </table> <!--<table align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="bottom"><b><?php echo CapilDateSayMonth($rows->getMatiTglLahir());?></b></td> </tr> <tr> <td valign="top"><em><?php echo CapilDateSayMonth($rows->getMatiTglLahir(), true);?></em></td> </tr> </table> <table width="80%" align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW15?>" height="1" /></td> <td valign="bottom"><b><?php echo CapilDateSayYear($rows->getMatiTglLahir(), false, true);?></b></td> </tr> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL02_ROW15?>" height="1" /></td> <td valign="top"><em><?php echo CapilDateSayYear($rows->getMatiTglLahir(), true, true);?></em></td> </tr> </table>--> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW16?>" /></td> <td valign="top"> <table width="90%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW16?>" height="1" /></td> <td style="font-size:<?php echo (strlen($kab)>15)?12:14;?>"><?php if($jenazahAnakKe != null) $jenazahAnakKe = " KE ".$jenazahAnakKe; if($rows->getAyahNamaLgkp() != null){ $AyahNamaLgkp = " SUAMI ISTRI ".$rows->getAyahNamaLgkp()." DAN"; $IbuNamaLgkp = $rows->getIbuNamaLgkp(); } else{ $IbuNamaLgkp = "IBU ".$rows->getIbuNamaLgkp(); } $textKutipanInd = " <em>ANAK".$jenazahAnakKe.", JENIS KELAMIN ".$kelamin." DARI".$AyahNamaLgkp." ".$IbuNamaLgkp."</em>"; $lenInd = strlen(str_replace(" "," ",strip_tags($textKutipanInd))); $fontsizeInd = 13; if($lenInd > 75){ $fontsizeInd = 10; $textKutipanInd = str_replace("<b>","",$textKutipanInd); $textKutipanInd = str_replace("</b>","",$textKutipanInd); } if($matiAnakKeEng != null) $matiAnakKeEng = $matiAnakKeEng." "; if($rows->getAyahNamaLgkp() != null) $AyahNamaLgkpEng = $rows->getAyahNamaLgkp()." AND"; $textKutipanEng = " <em>".$matiAnakKeEng."CHILD, SEX ".$kelaminEng." FROM ".$AyahNamaLgkpEng." ".$rows->getIbuNamaLgkp()."</em>"; $lenEng = strlen(str_replace(" "," ",strip_tags($textKutipanEng))); $fontsizeEng = 13; if($lenEng > 75){ $fontsizeEng = 10; $textKutipanEng = str_replace("<b>","",$textKutipanEng); $textKutipanEng = str_replace("</b>","",$textKutipanEng); } $textKutipan = "<div style='font-size: ".$fontsizeInd."px'>".$textKutipanInd."</div><div style='font-size: ".$fontsizeEng."px'>".$textKutipanEng."</div>"; echo $textKutipan; ?></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW17?>" /></td> <td height=32px> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW15?>" height="<?php echo $MATI_ROW18?>" /></td> <td valign="top"> <table width="90%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW18?>" height="1" /></td> <td style="font-size:<?php echo (strlen($kab)>15)?12:14;?>"><b><?php echo "DI ".$kab;?></b></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW19?>" /></td> <td valign="bottom"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW19?>" height="1" /></td><td><b><?php echo $AktaTglIndo;?></b></td> </tr> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW19?>" height="1" /></td><td><em><?php echo $AktaTglIng;?></em></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW21?>" /></td> <td valign="bottom"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW21?>" height="1" /></td><td><b><?php echo $AktaThnIndo;?></b></td> </tr> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW21?>" height="1" /></td><td><em><?php echo $AktaThnIng;?></em></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW23?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW23?>" height="1" /></td> <td><b><?php echo $jabatan;?></b></td> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="100" height="1" /></td> </tr> </table> </td> </tr> <tr> <td><img src="<?php echo getcwd();?>/images/spacer.gif" width="1" height="<?php echo $MATI_ROW24?>" /></td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:14px;"> <tr> <td width="1" height="1"><img src="<?php echo getcwd();?>/images/spacer.gif" width="<?php echo $MATI_COL01_ROW24?>" height="1" /></td> <td> <b><u><?php echo $NamaPej;?> </u><br />NIP. <?php echo $NipPej;?> </b> </td> </tr> </table> </td> </tr> <tr></tr> </table> </body> </html> <?php }else echo "<center>Pencetakan kutipan akta telah melewati limit</center>"; }// end for ?>
Copyright ©2021 || Defacer Indonesia