AnonSec Team
Server IP : 127.0.0.1  /  Your IP : 127.0.0.1
Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586
User : GerbangSIPAD ( 0)
PHP Version : 5.6.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/xampp5/htdocs/bhumie/protected/components/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : C:/xampp5/htdocs/bhumie/protected/components/GlobalId.php
<?php

class GlobalId extends CApplicationComponent{
	
	public $kd_propinsi = '74';
	public $kd_dati2 = '04';
	public $kd_kanwil = '15';
	public $kd_kantor = '14';
	public $kd_seksi_berkas = '08';

	//public $tbl_gis = '3207';

	public function getKodePropinsi(){
		return $this->kd_propinsi;
	}

	public function getKodeDati2(){
		return $this->kd_dati2;
	}

	public function getTblGis(){
		return $this->tbl_gis;
	}

	public function getNilaiTarif(){
	$tarif = Yii::app()->db->createCommand()
					->from('pbb.tarif')
					->where('kd_propinsi=:kd_propinsi AND kd_dati2=:kd_dati2', array(
						':kd_propinsi'=>$this->kd_propinsi,
						':kd_dati2'=>$this->kd_dati2,
						))
					->queryRow();
		return $tarif['nilai_tarif'];
	}

	public function getNamaDati2(){
			$namaDati = RefDati2::model()->find(array("condition"=>"kd_propinsi='".$this->kd_propinsi."' and kd_dati2='".$this->kd_dati2."'"));
		return $namaDati->nm_dati2;
	}

	public function getKodeKanwil(){
		return $this->kd_kanwil;
	}

	public function getKodeKantor(){
		return $this->kd_kantor;
	}

	public function getBundelPelayanan(){
		return $this->bundel_pelayanan;
	}

	public function getNoUrutPelayanan(){
		return $this->no_urut_pelayanan;
	}

	public function getNIP(){
		return User::model()->findByPk(Yii::app()->user->getId())->nip;
	}

	public function getNama(){
		return Pegawai::model()->find("nip='".$this->getNIP()."'")->nm_pegawai;
	}

	public function getKdJenisPelayanan(){
		return $this->kd_jenis_pelayanan;
	}

	public function getKdSeksiBerkas(){
		return $this->kd_seksi_berkas;
	}

	public function post_value_empty($key, $default = NULL) {
		return isset($key) && !empty($key) ? $key : $default;
	}

	public function post_ifvalue_empty($key, $default = NULL) {
	return isset($_POST[$key]) && !empty($_POST[$key]) ? $_POST[$key] : $default;
	}
	public function get_ifvalue_empty($key, $default = NULL) {
	return isset($_GET[$key]) && !empty($_GET[$key]) ? $_GET[$key] : $default;
	}

	public function showsDate($key) {
		if($key == null or $key ==""){
			$key = date('d-m-Y');
		}
	return date('d-m-Y',strtotime($key));
	}

	public function saveDate($key) {
		if($key == null or $key ==""){
		return $key ;
		}else{
	return date('Y-m-d',strtotime($key));
		}

	}

	public function getUrlQr(){
		return "https://e-pbb.kendarikota.go.id:3013";
	}

}

?>

AnonSec - 2021