<?php
class ViewPopupResize extends HtmlResponse {

	function TemplateBase()
   {
      $this->SetTemplateBasedir(GTFWConfiguration::GetValue('application', 'docroot') . 'main/template/');
      $this->SetTemplateFile('document-common-popup.html');
      $this->SetTemplateFile('layout-common-popup.html');
   }
   
   function TemplateModule()
   {
      $this->SetTemplateBasedir(GTFWConfiguration::GetValue('application','docroot').
         'module/inventarisasi/template');
      $this->SetTemplateFile('pop_up_resize.html');
   }
	
	function ProcessRequest() {
		$get = $_GET->AsArray();
		if ($get['ver'] == '2'){
			$url1 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKib2', 'view', 'html')."&size=10";
			$url5 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKib2', 'view', 'html')."&size=5";
		}else{
			$url1 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKib', 'view', 'html')."&size=10";
			$url5 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKib', 'view', 'html')."&size=5";
		}
		$return['url10'] = $url1;
		$return['url5'] = $url5;
		return $return;
	}
   
	function ParseTemplate($data = NULL)
   {
		$this->mrTemplate->AddVar('content', 'URL_L', $data['url10']);
		$this->mrTemplate->AddVar('content', 'URL_S', $data['url5']);
	}
}
?>
