<?php
class ViewPopupResizeQrcode 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_qrcode.html');
   }
	
	function ProcessRequest() {
		$url27 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKibQrcode', 'view', 'html')."&size=5";
		$url16 = Dispatcher::Instance()->GetUrl('inventarisasi', 'cetakKibQrcode', 'view', 'html')."&size=3";
		$return['url27'] = $url27;
		$return['url16'] = $url16;
		return $return;
	}
   
	function ParseTemplate($data = NULL)
   {
		$this->mrTemplate->AddVar('content', 'URL_5', $data['url27']);
		$this->mrTemplate->AddVar('content', 'URL_3', $data['url16']);
	}
}
?>
