2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Implementation of ErrorDlg view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Include parent class
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
//require_once("class.Bootstrap.php");
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which outputs the html page for ErrorDlg view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
class SeedDMS_View_ErrorDlg extends SeedDMS_Theme_Style {
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
function show() { /* {{{ */
|
2018-04-06 14:34:01 +00:00
|
|
|
$dms = $this->params['dms'];
|
|
|
|
$pagetitle = $this->params['pagetitle'];
|
|
|
|
$errormsg = $this->params['errormsg'];
|
|
|
|
$plain = $this->params['plain'];
|
2020-05-12 10:02:22 +00:00
|
|
|
$showbutton = $this->hasParam('nobackbutton') === false || $this->getParam('nobackbutton') === false;
|
2019-02-12 10:15:19 +00:00
|
|
|
$settings = $this->params['settings'];
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2019-02-12 10:15:19 +00:00
|
|
|
if(!$plain) {
|
2019-07-05 06:07:52 +00:00
|
|
|
$this->htmlStartPage($pagetitle, 'errorpage', $settings->_httpRoot."out/");
|
2018-04-06 14:34:01 +00:00
|
|
|
$this->globalNavigation();
|
|
|
|
$this->contentStart();
|
|
|
|
}
|
|
|
|
|
|
|
|
print "<h4>".getMLText('error')."!</h4>";
|
2021-04-18 05:08:00 +00:00
|
|
|
$this->errorMsg(htmlspecialchars($errormsg));
|
2020-05-12 10:02:22 +00:00
|
|
|
if($showbutton)
|
2021-04-18 05:08:00 +00:00
|
|
|
print "<div><button class=\"btn btn-primary history-back\">".getMLText('back')."</button></div>";
|
2018-04-06 14:34:01 +00:00
|
|
|
|
|
|
|
$this->contentEnd();
|
|
|
|
$this->htmlEndPage();
|
|
|
|
|
|
|
|
add_log_line(" UI::exitError error=".$errormsg." pagetitle=".$pagetitle, PEAR_LOG_ERR);
|
|
|
|
|
|
|
|
return;
|
2012-12-14 07:53:13 +00:00
|
|
|
} /* }}} */
|
|
|
|
}
|
|
|
|
?>
|