pref-labels index: use cleaner markup
This commit is contained in:
parent
46f6d7c11a
commit
aa63014073
|
@ -150,43 +150,35 @@ class Pref_System extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
print "</div>";
|
||||||
|
print "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function index() {
|
function index() {
|
||||||
|
|
||||||
$severity = (int) ($_REQUEST["severity"] ?? E_USER_WARNING);
|
$severity = (int) ($_REQUEST["severity"] ?? E_USER_WARNING);
|
||||||
$page = (int) ($_REQUEST["page"] ?? 0);
|
$page = (int) ($_REQUEST["page"] ?? 0);
|
||||||
|
?>
|
||||||
print "<div dojoType='dijit.layout.AccordionContainer' region='center'>";
|
<div dojoType='dijit.layout.AccordionContainer' region='center'>
|
||||||
print "<div dojoType='dijit.layout.AccordionPane' style='padding : 0'
|
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?php echo __('Event Log') ?>'>
|
||||||
title='<i class=\"material-icons\">report</i> ".__('Event Log')."'>";
|
<?php
|
||||||
|
|
||||||
if (LOG_DESTINATION == "sql") {
|
if (LOG_DESTINATION == "sql") {
|
||||||
|
|
||||||
$this->log_viewer($page, $severity);
|
$this->log_viewer($page, $severity);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
print_notice("Please set LOG_DESTINATION to 'sql' in config.php to enable database logging.");
|
print_notice("Please set LOG_DESTINATION to 'sql' in config.php to enable database logging.");
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
print "</div>"; # content pane
|
<div dojoType='dijit.layout.AccordionPane' title='<i class="material-icons">info</i> <?php echo __('PHP Information') ?>'>
|
||||||
print "</div>"; # container
|
<script type='dojo/method' event='onSelected' args='evt'>
|
||||||
print "</div>"; # accordion pane
|
|
||||||
|
|
||||||
print "<div dojoType='dijit.layout.AccordionPane'
|
|
||||||
title='<i class=\"material-icons\">info</i> ".__('PHP Information')."'>";
|
|
||||||
|
|
||||||
print "<script type='dojo/method' event='onSelected' args='evt'>
|
|
||||||
Helpers.System.getPHPInfo(this);
|
Helpers.System.getPHPInfo(this);
|
||||||
</script>";
|
</script>
|
||||||
|
<div class='phpinfo'><?php echo __("Loading, please wait...") ?></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
print "<div class='phpinfo'>" . __("Loading, please wait...") . "</div>";
|
<?php PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB, "prefSystem") ?>
|
||||||
|
</div>
|
||||||
print "</div>"; # accordion pane
|
<?php
|
||||||
|
|
||||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB, "prefSystem");
|
|
||||||
|
|
||||||
print "</div>"; #container
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue