From c96cfbb9f6e09019de290fcb02c4bde663174efb Mon Sep 17 00:00:00 2001 From: darode Date: Mon, 2 Apr 2012 07:53:24 +0000 Subject: [PATCH] 2012-04-02 Dario Rodriguez *operation/visual_console/render_view.php, operation/visual_console/index.php, operation/agentes/networkmap.php, operation/servers/view_server.php, operation/servers/recon_view.php, operation/servers/view_server_detail.php, operation/menu.php, operation/reporting/reporting_viewer.php, operation/reporting/graph_viewer.php, general/header.php, godmode/servers/modificar_server.php, godmode/reporting/visual_console_builder.wizard.php, godmode/reporting/graph_builder.main.php, godmode/reporting/visual_console_builder.php, godmode/reporting/visual_console_builder.elements.php, godmode/reporting/graph_builder.php, godmode/reporting/graph_builder.graph_editor.php, godmode/reporting/reporting_builder.php, godmode/reporting/visual_console_builder.editor.php, godmode/reporting/map_builder.php, godmode/reporting/graphs.php: Merged changes in menu structure from 4.0.2 to trunk version git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 25 +++ pandora_console/general/header.php | 2 +- .../reporting/graph_builder.graph_editor.php | 8 +- .../godmode/reporting/graph_builder.main.php | 4 +- .../godmode/reporting/graph_builder.php | 4 +- pandora_console/godmode/reporting/graphs.php | 59 ++--- .../godmode/reporting/map_builder.php | 47 ++-- .../godmode/reporting/reporting_builder.php | 125 ++++++++--- .../visual_console_builder.editor.php | 2 +- .../visual_console_builder.elements.php | 4 +- .../reporting/visual_console_builder.php | 14 +- .../visual_console_builder.wizard.php | 2 +- .../godmode/servers/modificar_server.php | 168 +++++++------- .../operation/agentes/networkmap.php | 20 +- pandora_console/operation/menu.php | 209 +++++++++--------- .../operation/reporting/graph_viewer.php | 4 +- .../operation/reporting/reporting_viewer.php | 2 +- .../operation/servers/recon_view.php | 176 +++++++++++++++ .../operation/servers/view_server.php | 115 ---------- .../operation/servers/view_server_detail.php | 165 -------------- .../operation/visual_console/index.php | 71 ------ .../operation/visual_console/render_view.php | 9 +- 22 files changed, 588 insertions(+), 647 deletions(-) create mode 100644 pandora_console/operation/servers/recon_view.php delete mode 100644 pandora_console/operation/servers/view_server.php delete mode 100644 pandora_console/operation/servers/view_server_detail.php delete mode 100644 pandora_console/operation/visual_console/index.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9f8f5729bf..b9d155b3b1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,28 @@ +2012-04-02 Dario Rodriguez + + *operation/visual_console/render_view.php, + operation/visual_console/index.php, + operation/agentes/networkmap.php, + operation/servers/view_server.php, + operation/servers/recon_view.php, + operation/servers/view_server_detail.php, + operation/menu.php, + operation/reporting/reporting_viewer.php, + operation/reporting/graph_viewer.php, + general/header.php, + godmode/servers/modificar_server.php, + godmode/reporting/visual_console_builder.wizard.php, + godmode/reporting/graph_builder.main.php, + godmode/reporting/visual_console_builder.php, + godmode/reporting/visual_console_builder.elements.php, + godmode/reporting/graph_builder.php, + godmode/reporting/graph_builder.graph_editor.php, + godmode/reporting/reporting_builder.php, + godmode/reporting/visual_console_builder.editor.php, + godmode/reporting/map_builder.php, + godmode/reporting/graphs.php: Merged changes in menu structure + from 4.0.2 to trunk version + 2012-04-02 Hirofumi Kosaka * include/functions_api.php: Added new functions diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 689ade90f9..beef9b84e3 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -88,7 +88,7 @@ config_check(); echo ''; if ($config["metaconsole"] == 0){ - echo ''; + echo ''; $servers["all"] = (int) db_get_value ('COUNT(id_server)','tserver'); $servers["up"] = (int) servers_check_status (); diff --git a/pandora_console/godmode/reporting/graph_builder.graph_editor.php b/pandora_console/godmode/reporting/graph_builder.graph_editor.php index 8fee8793f2..63791f5132 100644 --- a/pandora_console/godmode/reporting/graph_builder.graph_editor.php +++ b/pandora_console/godmode/reporting/graph_builder.graph_editor.php @@ -99,14 +99,14 @@ if(count($module_array) > 0){ echo ""; echo ""; $new_weight = $weight_array[$a]-0.125; - echo ""; + echo ""; echo ""; $new_weight = $weight_array[$a]+0.125; - echo ""; + echo ""; echo "
".html_print_image('images/down.png', true, array ('title' => __('Decrease Weight')))."".html_print_image('images/down.png', true, array ('title' => __('Decrease Weight')))."$weight_array[$a]".html_print_image('images/up.png', true, array ('title' => __('Increase Weight')))."".html_print_image('images/up.png', true, array ('title' => __('Increase Weight')))."
"; echo ""; echo ""; - echo "
".html_print_image('images/cross.png', true, array ('title' => __('Delete'))).""; + echo "".html_print_image('images/cross.png', true, array ('title' => __('Delete'))).""; echo ""; } @@ -116,7 +116,7 @@ if(count($module_array) > 0){ //Configuration form echo ''; -echo "
"; +echo ""; echo ""; echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index 36eb2a4836..68585c674e 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -89,9 +89,9 @@ else { echo "
"; if ($edit_graph) - echo ""; + echo ""; else - echo ""; + echo ""; echo ""; echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index 57b8d322e9..c0c85bd83f 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -161,10 +161,10 @@ if($change_weight){ if($edit_graph) { $buttons = array( 'main' => array('active' => false, - 'text' => '' . + 'text' => '' . html_print_image("images/setup.png", true, array ("title" => __('Setup'))) .''), 'graph_editor' => array('active' => false, - 'text' => '' . + 'text' => '' . html_print_image("images/config.png", true, array ("title" => __('Graph editor'))) .''), 'view' => array('active' => false, 'text' => '' . diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index fc0ddafc43..760c02618f 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -20,7 +20,7 @@ require_once ('include/functions_custom_graphs.php'); // Check user credentials check_login (); -if (! check_acl ($config['id_user'], 0, "IW")) { +if (! check_acl ($config['id_user'], 0, "IR")) { db_pandora_audit("ACL Violation", "Trying to access Inventory Module Management"); require ("general/noaccess.php"); @@ -65,7 +65,7 @@ $id = (int) get_parameter ('id'); $multiple_delete = (bool)get_parameter('multiple_delete', 0); // Header -ui_print_page_header (__('Graphs management'), "", false, "", true, $buttons); +ui_print_page_header (__('Reporting')." » ".__('Custom graphs'), "images/reporting", false, ""); // Delete module SQL code if ($delete_graph) { @@ -141,22 +141,19 @@ if (! empty ($graphs)) { $table->width = '98%'; $tale->class = 'databox_frame'; $table->align = array (); - $table->align[0] = 'center'; - $table->align[3] = 'right'; - $table->align[4] = 'center'; $table->head = array (); - $table->head[0] = __('View'); - $table->head[1] = __('Graph name'); - $table->head[2] = __('Description'); - $table->head[3] = __('Number of Graphs'); - $table->head[4] = __('Group'); - $table->size[0] = '20px'; - $table->size[3] = '125px'; - $table->size[4] = '50px'; + $table->head[0] = __('Graph name'); + $table->head[1] = __('Description'); + $table->head[2] = __('Number of Graphs'); + $table->head[3] = __('Group'); + $table->size[2] = '125px'; + $table->size[3] = '50px'; + $table->align[2] = 'center'; + $table->align[3] = 'center'; if (check_acl ($config['id_user'], 0, "AW")) { - $table->align[5] = 'center'; - $table->head[5] = __('Delete'). html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();'); - $table->size[5] = '60px'; + $table->align[4] = 'center'; + $table->head[4] = __('Op.'); + $table->size[4] = '50px'; } $table->data = array (); @@ -164,16 +161,20 @@ if (! empty ($graphs)) { $data = array (); $data[0] = '' . html_print_image('images/eye.png', true) . "" . ''; - $data[1] = ''.$graph['name'].''; - $data[2] = $graph["description"]; + $graph['id_graph'].'">' . $graph['name'] . ''; - $data[3] = $graph["graphs_count"]; - $data[4] = ui_print_group_icon($graph['id_group'],true); + $data[1] = $graph["description"]; + + $data[2] = $graph["graphs_count"]; + $data[3] = ui_print_group_icon($graph['id_group'],true); if (check_acl ($config['id_user'], 0, "AW")) { - $data[5] = ''.html_print_image("images/config.png", true).''; + + $data[4] .= '  '; + + $data[4] .= '' . html_print_image("images/cross.png", true) . '' . html_print_checkbox_extended ('delete_multiple[]', $graph['id_graph'], false, false, '', 'class="check_delete"', true); @@ -194,11 +195,13 @@ else { echo "
".__('There are no defined reportings')."
"; } -echo ''; -echo '
'; -html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next"'); -echo "
"; -echo ""; +if (check_acl ($config['id_user'], 0, "AW")) { + echo ''; + echo '
'; + html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next"'); + echo "
"; + echo ""; +} ?>
".__('Name')."