MINI
C:
/
siak
/
Siak71
/
application
/
views
/
st_kartu_anak
/
cetak
/
Upload File:
files >> C:/siak/Siak71/application/views/st_kartu_anak/cetak/satuKIA.php
<?php $datenow =new DateTime(); $datebirth=ActiveRecord\DateTime::createFromFormat(ActiveRecord\DateTime::$DEFAULT_FORMAT,$data->tgl_lhr.' 00:00:00'); $tgl_berlaku=ActiveRecord\DateTime::createFromFormat(ActiveRecord\DateTime::$DEFAULT_FORMAT,$data->tgl_lhr.' 00:00:00'); $temp_age =$datenow->diff($datebirth); $pathPhotoKosong =$this->siaklib->getUrlPhotoAnakBawahUmurPrint($data->nik, $data->jenis_klmin); $foto ='<img src="'.$pathPhotoKosong.'" style="width: '.$kiaUserPosPhotoLebar.'px;height: '.$kiaUserPosPhotoTinggi.'px" />'; $age = $temp_age->y; if($age >= 5){ $pathPhoto =$this->siaklib->getUrlPhotoAnakPrint($data->nik); if($pathPhoto <> ""){ $foto ='<img src="'.$pathPhoto.'" style="width: '.$kiaUserPosPhotoLebar.'px;height: '.$kiaUserPosPhotoTinggi.'px" />'; } $tgl_berlaku->modify('+17 years'); $tgl_berlaku->modify('-1 day'); }else{ $tgl_berlaku->modify('+5 years'); $tgl_berlaku->modify('-1 day'); } ?> <div class="melayang_wrap"> <? $ttd_path='/upload/kia_ttd.jpg'; if(file_exists(getcwd().$ttd_path)):?> <? endif; ?> <table width="100%"> <tr> <td height="<?=$kiaUserMarginAtas?>"></td> </tr> </table> <table width="100%" class="lebar_kia rapat tengah renggang font12"> <tr> <td><b>PROVINSI <?php echo $data->nama_prop?> <?php echo $is_preview;?></b></td> </tr> <tr> <td><b>PEMERINTAH <?if($data->no_kab<70):?>KABUPATEN <?endif;?><?=$data->nama_kab?></b></td> </tr> </table> <table width="100%"> <tr> <td height="7"></td> </tr> </table> <table width="100%" class="lebar_kia rapat atas renggang1"> <tr> <td width="20%" class="font10"><strong>NIK</strong></td> <td width="1%"><strong>:</strong></td> <td width="79%" class="font11"><b><span class="ocraext"><?=$data->nik?></span></b></td> </tr> </table> <table width="100%" class="lebar_kia font81 rapat atas renggang"> <tr> <td height="2"></td> </tr> <tr> <td width="27%"><strong>Nama Lengkap</strong></td> <td width="1%"><strong>:</strong></td> <td width="44%"><strong><?=$data->nama_lgkp?></strong></td> <td width="25%" rowspan="10"></td> </tr> <tr> <td><strong>Tempat/Tgl. Lahir</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->tmpt_lhr?>, <?=$datebirth->format('d-m-Y')?></strong> </td> </tr> <tr> <td><strong>Jenis Kelamin</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->jenis_klmin?>          Gol. Darah : <? if ($data->darah=="TIDAK TAHU"){ echo "-"; } else{ echo $data->darah; }?></strong></td> </tr> <tr> <td><strong>Nomor Kartu Keluarga</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->no_kk?></strong></td> </tr> <tr> <td><strong>Nama Kepala Keluarga</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->nama_kep;?></strong></td> </tr> <tr> <td><strong>Nomor Akta Kelahiran</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->no_akta_lhr?></strong></td> </tr> <?php $arrLabelAgama = array("1", "2", "3","4","5","6"); $lblAgama = "Kepercayaan"; $lblFont = "font7"; if(in_array($data->agama_code, $arrLabelAgama)){ $lblAgama = "Agama"; $lblFont = "font8"; } ?> <tr> <td><strong><?=$lblAgama?></strong></td> <td><strong>:</strong></td> <td class="<?=$lblFont?>"><strong><?=$data->agama?></strong></td> </tr> <tr> <td><strong>Kewarganegaraan</strong></td> <td><strong>:</strong></td> <td><strong>WNI</strong></td> </tr> <tr> <td><strong>Alamat</strong></td> <td><strong>:</strong></td> <td height="18"><strong><?=htmlentities($data->alamat)?></strong></td> </tr> </table> <table width="100%" class="lebar_kia rapat atas font81 renggang1"> <tr> <td width="12%"></td> <td width="14%"><strong>RT/RW</strong></td> <td width="1%"><strong>:</strong></td> <td width="32%"><strong><?php echo is_null($data->no_rt)||($data->no_rt == 0)?'-':str_pad($data->no_rt, 3, '0', STR_PAD_LEFT);?>/<?php echo is_null($data->no_rw)||($data->no_rw == 0)?'-':str_pad($data->no_rw, 3, '0', STR_PAD_LEFT);?></strong></td> <td width="41%"></td> </tr> <tr> <td></td> <td><strong>Desa/Kelurahan</strong></td> <td><strong>:</strong></td> <td><strong><?=$data->nama_kel?></strong></td> </tr> <tr> <td></td> <td><strong>Kecamatan</strong></td> <td><strong>:</strong></td> <td rowspan="2" valign="top"><strong><?=$data->nama_kec?></strong></td> <td rowspan="2" align="center" valign="top"></td> </tr> <tr> <td height="5"> <div style="position: absolute; left: -7px; top: 145px; z-index: -1;"><img width="45" height="45" src="<?=$this->siak_barcode->qrcodeOrg($data->nik."-o",$data->nik,"KIA").'?_='.time()?>"/></div> </td> </tr> <tr> <td></td> <td><strong>Berlaku s/d</strong></td> <td><strong>:</strong></td> <td><strong> <?php echo $tgl_berlaku->format('d-m-Y'); ?></strong> </td> <td align="center"></td> </tr> <?php if($is_preview == NULL){ $data->tgl_cetak = $datenow->format('d-m-Y'); $data->tgl_cetak_by = $this->session_activerecord->userdata('user_id'); $data->tgl_ganti = $tgl_berlaku->format('d-m-Y'); $data->save(); } ?> </table> <div style="position: absolute; left: <?=$kiaUserPosPhotoX?>px; top: <?=$kiaUserPosPhotoY?>px; z-index: -1;"> <?php echo $foto;?> </div> <div class="melayang" style="left:<?=$kiaUserPosTtdXKadis?>px; top:<?=$kiaUserPosTtdYKadis?>px; position:absolute; z-index:-1;"> <img style="height:<?=$kiaUserPosTtdTinggiKadis?>px; width:<?=$kiaUserPosTtdLebarKadis?>px;" src="../..<?=$ttd_path?>"/> </div> <div style="position: absolute; left: <?=$kiaUserPosTtdX?>px; top: <?=$kiaUserPosTtdY?>px; z-index: -1; width:<?=$kiaUserPosTtdLebar?>%"> <table class="rapat atas font81 renggang1 tengah"> <tr> <td valign="top" height="19px"><strong><?=$data->nama_kab?>, <?=date('d-m-Y')?></strong></td> </tr> <tr> <td><div class="melayang_wrap" style="top:-1mm"><strong><?=htmlentities($this->siakconfig->getViewConfig("KIA_JABATAN","valuez1"))?></strong></div></td> </tr> <tr> <td> </td> </tr> <tr> <td><u><b><?=htmlentities($this->siakconfig->getViewConfig("KIA_NAMA_PEJABAT","valuez1"))?></b></u><br /><div class="melayang_wrap" style="top: 0.2mm"><strong>NIP. <?=htmlentities($this->siakconfig->getViewConfig("KIA_NIP_PEJABAT","valuez1"))?></strong></div></td> </tr> </table> </div> </div> <?php if($is_preview == NULL){ $counts =is_null($data->count_cetak_kia)?0:$data->count_cetak_kia; $data->count_cetak_kia =$counts++; $data->save(); } ?>
Copyright ©2021 || Defacer Indonesia