MINI
C:
/
SiakApp2.2
/
lib
/
Upload File:
files >> C:/SiakApp2.2/lib/SiakLib01.php
<?php function siakWNAKitasOnly(){ $dpValueOption01 = array(); $dpValueOption01["1"] = "1 - KITAS/LIMITED STAY PERMIT CARD"; return $dpValueOption01; } function siakWNAKitapOnly(){ $dpValueOption01 = array(); $dpValueOption01["2"] = "2 - KITAP/PERMANENT STAY PERMIT CARD"; return $dpValueOption01; } function siakGetAuthBiodataWniRegisterByParam($nik,$user){ $cUser = new Criteria(); $cUser->add(SiakUserPeer::SIAK_USER, $user); $siakUser = SiakUserPeer::doSelect($cUser); $crBiodata = new Criteria(); if($siakUser){ foreach ($siakUser as $object){} if($object->getSiakLevel()->getUserLevel() == "0"){ $crBiodata->add(BiodataWniPeer::NIK,$nik); $dataPersonal = BiodataWniPeer::doSelect($crBiodata); }else if($object->getSiakLevel()->getUserLevel()== "1"){ $crBiodata->add(BiodataWniPeer::NIK,$nik); $crBiodata->add(BiodataWniPeer::NO_PROP,$object->getNoProp()); $dataPersonal = BiodataWniPeer::doSelect($crBiodata); }else if($object->getSiakLevel()->getUserLevel() == "2" || $object->getSiakLevel()->getUserLevel() == "5" || $object->getSiakLevel()->getUserLevel() == "6"){ $crBiodata->add(BiodataWniPeer::NIK,$nik); $crBiodata->add(BiodataWniPeer::NO_PROP,$object->getNoProp()); $crBiodata->add(BiodataWniPeer::NO_KAB,$object->getNoKab()); $dataPersonal = BiodataWniPeer::doSelect($crBiodata); }else if($object->getSiakLevel()->getUserLevel() == "3"){ $crBiodata->add(BiodataWniPeer::NIK,$nik); $crBiodata->add(BiodataWniPeer::NO_PROP,$object->getNoProp()); $crBiodata->add(BiodataWniPeer::NO_KAB,$object->getNoKab()); $crBiodata->add(BiodataWniPeer::NO_KEC,$object->getNoKec()); $dataPersonal = BiodataWniPeer::doSelect($crBiodata); }else if($object->getSiakLevel()->getUserLevel() == "14"){ $crBiodata->add(BiodataWniPeer::NIK,$nik); $crBiodata->add(BiodataWniPeer::NO_PROP,$object->getNoProp()); $crBiodata->add(BiodataWniPeer::NO_KAB,$object->getNoKab()); $crBiodata->add(BiodataWniPeer::NO_KEC,$object->getNoKec()); $crBiodata->add(BiodataWniPeer::NO_KEL,$object->getNoKel()); $dataPersonal = BiodataWniPeer::doSelect($crBiodata); } return $dataPersonal; } return $dataPersonal; } function siakCriteriaLaporanPindahDatang(){ $dpValueOption01 = array(); $dpValueOption01["1"] = "1 - Seluruhnya"; $dpValueOption01["2"] = "2 - Dalam Satu Desa/Kelurahan"; $dpValueOption01["3"] = "3 - Antar Desa/Kelurahan"; $dpValueOption01["4"] = "4 - Antar Kecamatan"; $dpValueOption01["5"] = "5 - Antar Kabupaten/Kota"; $dpValueOption01["6"] = "6 - Antar Provinsi"; return $dpValueOption01; } function tambahspasi($input,$jumlah){ $hasil=substr(str_repeat(" ",$jumlah).$input, (-1*$jumlah)); return $hasil; } ?>
Copyright ©2021 || Defacer Indonesia