From 67e41f24a301b517832483e8410557753d185f96 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 16 Apr 2013 10:01:37 +0000 Subject: [PATCH] 2013-04-16 Miguel de Dios * godmode/setup/setup.php: updated the method to fill the header with the new header. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++ pandora_console/godmode/setup/setup.php | 56 +++++++++++++------------ 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 22514431bb..b11a35203b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-04-16 Miguel de Dios + + * godmode/setup/setup.php: updated the method to fill the header + with the new header. + 2013-04-16 Sergio Martin * include/functions_ui.php diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index 267fd36a43..56c8be9aaa 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -69,35 +69,36 @@ $buttons = array(); // Draws header $buttons['general'] = array('active' => false, - 'text' => '' . - html_print_image("images/gm_setup.png", true, array ("title" => __('General'))) . ''); + 'text' => '' . + html_print_image("images/gm_setup.png", true, array ("title" => __('General'))) . ''); if (enterprise_installed()) { $buttons = setup_enterprise_add_Tabs($buttons); } $buttons['auth'] = array('active' => false, - 'text' => '' . - html_print_image("images/key.png", true, array ("title" => __('Authentication'))) . ''); - + 'text' => '' . + html_print_image("images/key.png", true, array ("title" => __('Authentication'))) . ''); + $buttons['perf'] = array('active' => false, - 'text' => '' . - html_print_image("images/performance.png", true, array ("title" => __('Performance'))) . ''); - + 'text' => '' . + html_print_image("images/performance.png", true, array ("title" => __('Performance'))) . ''); + $buttons['vis'] = array('active' => false, - 'text' => '' . - html_print_image("images/chart.png", true, array ("title" => __('Visual styles'))) . ''); + 'text' => '' . + html_print_image("images/chart.png", true, array ("title" => __('Visual styles'))) . ''); if (check_acl ($config['id_user'], 0, "AW")) { if ($config['activate_netflow']) { $buttons['net'] = array('active' => false, - 'text' => '' . - html_print_image("images/op_netflow.png", true, array ("title" => __('Netflow'))) . ''); + 'text' => '' . + html_print_image("images/op_netflow.png", true, array ("title" => __('Netflow'))) . ''); } } +$help_header = ''; if (enterprise_installed()) { - $subpage = setup_enterprise_add_subsection_main($section, $buttons); + $subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header); } switch ($section) { @@ -111,7 +112,8 @@ switch ($section) { break; case 'perf': $buttons['perf']['active'] = true; - $subpage = ' » ' . __('Performance') . ' ' . ui_print_help_icon ('performance', true); + $subpage = ' » ' . __('Performance'); + $help_header = 'performance'; break; case 'vis': $buttons['vis']['active'] = true; @@ -124,7 +126,7 @@ switch ($section) { } // Header -ui_print_page_header (__('Configuration') . $subpage, "", false, "", true, $buttons); +ui_print_page_header (__('Configuration') . $subpage, "", false, $help_header, true, $buttons); if (isset($config['error_config_update_config'])) { if ($config['error_config_update_config']['correct'] == false) { @@ -139,23 +141,23 @@ if (isset($config['error_config_update_config'])) { switch ($section) { case "general": - require_once($config['homedir'] . "/godmode/setup/setup_general.php"); - break; + require_once($config['homedir'] . "/godmode/setup/setup_general.php"); + break; case "auth": - require_once($config['homedir'] . "/godmode/setup/setup_auth.php"); - break; + require_once($config['homedir'] . "/godmode/setup/setup_auth.php"); + break; case "perf": - require_once($config['homedir'] . "/godmode/setup/performance.php"); - break; + require_once($config['homedir'] . "/godmode/setup/performance.php"); + break; case "net": - require_once($config['homedir'] . "/godmode/setup/setup_netflow.php"); - break; + require_once($config['homedir'] . "/godmode/setup/setup_netflow.php"); + break; case "vis": - require_once($config['homedir'] . "/godmode/setup/setup_visuals.php"); - break; + require_once($config['homedir'] . "/godmode/setup/setup_visuals.php"); + break; default: - enterprise_hook('setup_enterprise_select_tab', array($section)); - break; + enterprise_hook('setup_enterprise_select_tab', array($section)); + break; } ?>