mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
back button can be turned off
This commit is contained in:
parent
2e25da5719
commit
b7d61aea43
|
@ -37,6 +37,7 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
|
||||||
$pagetitle = $this->params['pagetitle'];
|
$pagetitle = $this->params['pagetitle'];
|
||||||
$errormsg = $this->params['errormsg'];
|
$errormsg = $this->params['errormsg'];
|
||||||
$plain = $this->params['plain'];
|
$plain = $this->params['plain'];
|
||||||
|
$showbutton = $this->hasParam('nobackbutton') === false || $this->getParam('nobackbutton') === false;
|
||||||
$settings = $this->params['settings'];
|
$settings = $this->params['settings'];
|
||||||
|
|
||||||
if(!$plain) {
|
if(!$plain) {
|
||||||
|
@ -49,7 +50,8 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
|
||||||
print "<h4>".getMLText('error')."!</h4>";
|
print "<h4>".getMLText('error')."!</h4>";
|
||||||
print htmlspecialchars($errormsg);
|
print htmlspecialchars($errormsg);
|
||||||
print "</div>";
|
print "</div>";
|
||||||
print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
|
if($showbutton)
|
||||||
|
print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
|
||||||
|
|
||||||
$this->contentEnd();
|
$this->contentEnd();
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user