2011-12-07 Sergio Martin <sergio.martin@artica.es>

* operation/agentes/estado_agente.php
	godmode/agentes/modificar_agente.php: Added tab on header in the
	agent list views to navigate from operation to godmode sections
	improving usability



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5240 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-12-07 15:04:40 +00:00
parent ce862be0ec
commit b7faa74556
3 changed files with 43 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-12-07 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/estado_agente.php
godmode/agentes/modificar_agente.php: Added tab on header in the
agent list views to navigate from operation to godmode sections
improving usability
2011-12-07 Sergio Martin <sergio.martin@artica.es>
* include/functions_modules.php

View File

@ -65,8 +65,23 @@ if (!empty($agent_to_delete)) {
}
}
// Prepare the tab system to the future
$tab = 'view';
/* Setup tab */
$viewtab['text'] = '<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente">'
. html_print_image ("images/zoom.png", true, array ("title" =>__('View')))
. '</a>';
if($tab == 'view')
$viewtab['active'] = true;
else
$viewtab['active'] = false;
$onheader = array('view' => $viewtab);
// Header
ui_print_page_header (__('Agent configuration')." &raquo; ".__('Agents defined in Pandora'), "", false, "", true);
ui_print_page_header (__('Agent configuration')." &raquo; ".__('Agents defined in Pandora'), "", false, "", true, $onheader);
if (isset($result)) {
ui_print_result_message($result, __('Success deleted agent.'), __('Could not be deleted.'));

View File

@ -122,7 +122,26 @@ $refr = get_parameter('refr', 0);
$recursion = get_parameter('recursion', 0);
$status = (int) get_parameter ('status', -1);
ui_print_page_header ( __("Agent detail"), "images/bricks.png", false, "agent_status");
$onheader = array();
if (check_acl ($config['id_user'], 0, "AW")) {
// Prepare the tab system to the future
$tab = 'setup';
/* Setup tab */
$setuptab['text'] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente">'
. html_print_image ("images/setup.png", true, array ("title" =>__('Setup')))
. '</a>';
if($tab == 'setup')
$setuptab['active'] = true;
else
$setuptab['active'] = false;
$onheader = array('setup' => $setuptab);
}
ui_print_page_header ( __("Agent detail"), "images/bricks.png", false, "agent_status", false, $onheader);
echo '<form method="post" action="?sec=estado&sec2=operation/agentes/estado_agente&group_id=' . $group_id . '">';