From 1f3fc1f908d6536c0f25f3eedf452d874f595092 Mon Sep 17 00:00:00 2001 From: marcos Date: Thu, 12 Dec 2019 16:27:11 +0100 Subject: [PATCH] add more pages in order interpreter --- .../include/ajax/order_interpreter.php | 1 - .../include/class/OrderInterpreter.class.php | 69 +++++++++++-------- .../include/styles/order_interpreter.css | 4 ++ 3 files changed, 43 insertions(+), 31 deletions(-) diff --git a/pandora_console/include/ajax/order_interpreter.php b/pandora_console/include/ajax/order_interpreter.php index 8e4cc557b4..ce14996bb4 100644 --- a/pandora_console/include/ajax/order_interpreter.php +++ b/pandora_console/include/ajax/order_interpreter.php @@ -58,6 +58,5 @@ if (method_exists($order_interpreter, $method) === true) { $order_interpreter->error('Method not found. ['.$method.']'); } - // Stop any execution. exit; diff --git a/pandora_console/include/class/OrderInterpreter.class.php b/pandora_console/include/class/OrderInterpreter.class.php index 3e5e5bc50c..c1d190b110 100644 --- a/pandora_console/include/class/OrderInterpreter.class.php +++ b/pandora_console/include/class/OrderInterpreter.class.php @@ -30,6 +30,7 @@ global $config; require_once $config['homedir'].'/godmode/wizards/Wizard.main.php'; +ui_require_css_file('order_interpreter'); /** * Class OrderInterpreter. @@ -102,16 +103,18 @@ class OrderInterpreter extends Wizard $this->pages_name = [ 0 => __('Tactical View'), 1 => __('Agent Management'), - 2 => __('List Alerts'), + 2 => __('General Setup'), 3 => __('Manage Policies'), - 4 => __('Tactical View'), - 5 => __('Agent Management'), - 7 => __('List Alerts'), - 8 => __('Manage Policies'), - 9 => __('Tactical View'), - 10 => __('Agent Management'), - 11 => __('List Alerts'), - 12 => __('Manage Policies'), + 4 => __('List Alerts'), + 5 => __('View Events'), + 6 => __('Dashboard'), + 7 => __('Visual Console'), + 8 => __('Manage Servers'), + 9 => __('Edit User'), + 10 => __('Three View'), + 11 => __('Network Component'), + 12 => __('Task List'), + 13 => __('Update Manager'), ]; // Example ICON. @@ -123,37 +126,40 @@ class OrderInterpreter extends Wizard 'images/gm_resources.menu_gray.png' ), 2 => ui_get_full_url( - 'images/gm_alerts.menu_gray.png' + 'images/gm_setup.menu_gray.png' ), 3 => ui_get_full_url( 'images/gm_configuration.menu_gray.png' ), 4 => ui_get_full_url( - 'images/op_monitoring.menu_gray.png' + 'images/gm_alerts.menu_gray.png' ), 5 => ui_get_full_url( - 'images/gm_resources.menu_gray.png' + 'images/op_events.menu_gray.png' ), 6 => ui_get_full_url( - 'images/gm_alerts.menu_gray.png' + 'images/op_reporting.menu_gray.png' ), 7 => ui_get_full_url( - 'images/gm_configuration.menu_gray.png' + 'images/op_network.menu_gray.png' ), 8 => ui_get_full_url( - 'images/op_monitoring.menu_gray.png' + 'images/gm_servers.menu_gray.png' ), 9 => ui_get_full_url( - 'images/gm_resources.menu_gray.png' + 'images/gm_users.menu_gray.png' ), 10 => ui_get_full_url( - 'images/gm_alerts.menu_gray.png' + 'images/op_monitoring.menu_gray.png' ), 11 => ui_get_full_url( 'images/gm_configuration.menu_gray.png' ), 12 => ui_get_full_url( - 'images/gm_configuration.menu_gray.png' + 'images/gm_discovery.menu.png' + ), + 13 => ui_get_full_url( + 'images/um_messages.menu_gray.png' ), ]; @@ -166,37 +172,40 @@ class OrderInterpreter extends Wizard 'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente' ), 2 => ui_get_full_url( - 'index.php?sec=galertas&sec2=godmode/alerts/alert_list' + 'index.php?sec=general&sec2=godmode/setup/setup§ion=general' ), 3 => ui_get_full_url( 'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies' ), 4 => ui_get_full_url( - 'index.php?sec=view&sec2=operation/agentes/tactical' + 'index.php?sec=galertas&sec2=godmode/alerts/alert_list' ), 5 => ui_get_full_url( - 'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente' + 'index.php?sec=eventos&sec2=operation/events/events' ), 6 => ui_get_full_url( - 'index.php?sec=galertas&sec2=godmode/alerts/alert_list' + 'index.php?sec=reporting&sec2=enterprise/dashboard/dashboards' ), 7 => ui_get_full_url( - 'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies' + 'index.php?sec=network&sec2=godmode/reporting/map_builder' ), 8 => ui_get_full_url( - 'index.php?sec=view&sec2=operation/agentes/tactical' + 'index.php?sec=gservers&sec2=godmode/servers/modificar_server' ), 9 => ui_get_full_url( - 'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente' + 'index.php?sec=workspace&sec2=operation/users/user_edit' ), 10 => ui_get_full_url( - 'index.php?sec=galertas&sec2=godmode/alerts/alert_list' + 'index.php?sec=view&sec2=operation/tree' ), 11 => ui_get_full_url( - 'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies' + 'index.php?sec=gmodules&sec2=godmode/modules/manage_network_components' ), 12 => ui_get_full_url( - 'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies' + 'index.php?sec=discovery&sec2=godmode/servers/discovery&wiz=tasklist' + ), + 13 => ui_get_full_url( + 'index.php?sec=messages&sec2=godmode/update_manager/update_manager&tab=setup' ), ]; @@ -228,9 +237,9 @@ class OrderInterpreter extends Wizard ) ) { if ($iterator <= 9) { - echo '
  • '; + echo '
  • '; echo ' - Go to    + Go to   '; echo '  diff --git a/pandora_console/include/styles/order_interpreter.css b/pandora_console/include/styles/order_interpreter.css index 694637c606..ae7c49d8f2 100644 --- a/pandora_console/include/styles/order_interpreter.css +++ b/pandora_console/include/styles/order_interpreter.css @@ -39,3 +39,7 @@ div.show_result_interpreter { border-top-right-radius: 50px; border-color: transparent; } + +.list_found { + padding-top: 5px; +}