<?php
require_once GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/kota/business/AppKota.class.php';
class ViewImportKota extends HtmlResponse{
	function TemplateModule() {
		$this->SetTemplateBasedir(GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/kota/template');
		$this->SetTemplateFile('import_kota.html');
	}

   function ProcessRequest() {
		$msg = Messenger::Instance()->Receive(__FILE__);
      $return['pesan']=$msg[0][1];
      $return['data']=$msg[0][0];
      
		return $return;
	}

   function ParseTemplate($data = NULL) {
		if ($data['pesan']) {
			$this->mrTemplate->SetAttribute('warning_box', 'visibility', 'visible');
			$this->mrTemplate->AddVar('warning_box', 'ISI_PESAN', $data['pesan']);
		}

		$this->mrTemplate->AddVar('content', 'URL_ACTION', Dispatcher::Instance()->GetUrl('kota', 'importFileDbfKota', 'do', 'html') . "&dataId=" . Dispatcher::Instance()->Encrypt($data['decDataId']));
		
	}
}
?>
