<?php
/*
	@ClassName : ViewSearchLantai
	@Copyright : PT Gamatechno Indonesia
	@Analyzed By : Nanang Ruswianto <nanang@gamatechno.com>
	@Author By : Dyan Galih <galih@gamatechno.com>
	@Version : 0.1
	@StartDate : 2010-02-02
	@LastUpdate : 2010-02-02
	@Description : 
*/

require_once GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/gedung/business/Lantai.class.php';

class ViewSearchLantai extends HtmlResponse {
	
	function TemplateModule() {
		$this->SetTemplateBasedir(GTFWConfiguration::GetValue( 'application', 'docroot').'module/gedung/template');
		$this->SetTemplateFile('view_search_lantai.html');
	}
	
	function ProcessRequest() {
		$objLantai = new Lantai();
		$return['gedung'] = $objLantai->GetGedungById(Dispatcher::Instance()->Decrypt($_GET['gId']));
		
		return $return;
	}

	function ParseTemplate($data = NULL) {
		$this->mrTemplate->AddVar('content', 'KODE_GEDUNG', $data['gedung']['gedungKode']);
		$this->mrTemplate->AddVar('content', 'NAMA_GEDUNG', $data['gedung']['gedungNama']);
	}
}
?>
