2013-11-11 Alejandro Gallardo <alejandro.gallardo@artica.es>

* mobile/operation/home.php: Added an option to hide the
	logout button.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
alexhigh 2013-11-11 19:06:43 +00:00
parent ec57ccc601
commit 44ac224fce
2 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-11-11 Alejandro Gallardo <alejandro.gallardo@artica.es>
* mobile/operation/home.php: Added an option to hide the
logout button.
2013-11-11 Sergio Martin <sergio.martin@artica.es>
* include/javascript/OpenLayers/OpenLayers.js: Fix layer

View File

@ -25,9 +25,19 @@ class Home {
require_once ($config["homedir"] . '/include/functions_graph.php');
$ui = Ui::getInstance();
$system = System::getInstance();
$ui->createPage();
$ui->createDefaultHeader(__("PandoraFMS: Home"));
if ($system->getRequest('hide_logout', 0)) {
$left_button = null;
} else {
$left_button = $ui->createHeaderButton(
array('icon' => 'back',
'pos' => 'left',
'text' => __('Logout'),
'href' => 'index.php?action=logout'));
}
$ui->createHeader(__("PandoraFMS: Home"), $left_button);
$ui->showFooter(false);
$ui->beginContent();
$ui->beginForm("index.php?page=agents");
@ -80,4 +90,4 @@ class Home {
return;
}
}
?>
?>