コード例 #1
0
function ShowErrorPage($message)
{
    $smarty = new Smarty();
    $smarty->template_dir = '/components/templates';
    $smarty->assign('Message', $message);
    $captions = GetCaptions('UTF-8');
    $smarty->assign('Captions', $captions);
    $common = new CommonPageViewData();
    $common->setTitle($captions->GetMessageString('Error'))->setHeader(GetPagesHeader())->setFooter(GetPagesFooter());
    $smarty->assign('common', $common);
    $smarty->display('error_page.tpl');
}
コード例 #2
0
 /**
  * @return CommonPageViewData
  */
 public function getCommonViewData()
 {
     $viewData = new CommonPageViewData();
     return $viewData->setDirection($this->GetPageDirection())->setContentEncoding($this->GetContentEncoding())->setTitle($this->GetCaption())->setValidationScripts($this->GetValidationScripts())->setHeader($this->GetHeader())->setFooter($this->GetFooter())->setCustomHead($this->GetCustomPageHeader())->setClientSideScript('OnBeforeLoadEvent', $this->GetCustomClientScript())->setClientSideScript('OnAfterLoadEvent', $this->GetOnPageLoadedClientScript());
 }