diff --git a/pandora_console/extensions/agents_alerts.php b/pandora_console/extensions/agents_alerts.php index e93b97cddf..5e8b00ee42 100755 --- a/pandora_console/extensions/agents_alerts.php +++ b/pandora_console/extensions/agents_alerts.php @@ -211,7 +211,7 @@ function mainAgentsAlerts() { if ($tname == '') { continue; } - echo ''. io_safe_output($tname) . html_print_image('images/information.png', true, array('title' => io_safe_output($tname))) .""; + echo ''. io_safe_output($tname) . html_print_image('images/information_alerts.png', true, array('title' => io_safe_output($tname),'style' => 'margin-left:5px' )) .""; } if (($hor_offset + $block) < $ntemplates) { diff --git a/pandora_console/extensions/agents_modules.php b/pandora_console/extensions/agents_modules.php index 7f79e1540c..7bab565cff 100644 --- a/pandora_console/extensions/agents_modules.php +++ b/pandora_console/extensions/agents_modules.php @@ -191,7 +191,7 @@ function mainAgentsModules() { echo ""; - echo "" . __("Agents") . " / " . __("Modules") . ""; + echo "" . __("Agents") . " / " . __("Modules") . ""; if ($hor_offset > 0) { $new_hor_offset = $hor_offset-$block; @@ -224,7 +224,7 @@ function mainAgentsModules() { echo '
- diff --git a/pandora_console/extensions/users_connected.php b/pandora_console/extensions/users_connected.php index 1bbba158ec..116df50ed6 100644 --- a/pandora_console/extensions/users_connected.php +++ b/pandora_console/extensions/users_connected.php @@ -68,8 +68,8 @@ function users_extension_main_god ($god = true) { else { $table->cellpadding = 4; $table->cellspacing = 4; - $table->width = '98%'; - $table->class = "databox"; + $table->width = '100%'; + $table->class = "databox data"; $table->size = array (); $table->data = array (); $table->head = array (); diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index 6a3261e1a4..4c8e46e292 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -121,8 +121,8 @@ if (tags_has_user_acl_tags()) { //////////////////NEWS BOARD///////////////////////////// echo '
'; - echo ''; - echo ''; + echo '
' . __('News board') . '
'; + echo ''; if ($config["prominent_time"] == "timestamp") { $comparation_suffix = ""; } @@ -133,7 +133,7 @@ if (tags_has_user_acl_tags()) { $text = io_safe_output($article["text"]); - echo ''; + echo ''; echo ''; echo '"; echo ""; echo ""; - echo ""; + echo ""; $color=1; $rowPair = true; @@ -505,31 +504,14 @@ if ($agents !== false) { &id_agente='.$agent["id_agente"].'">'.__('View').''; echo ''; - echo ""; - - echo ""; - + echo ""; // Operating System icon - echo ""; // Group icon and name - echo ""; + echo ""; // Description echo ""; @@ -540,7 +522,7 @@ if ($agents !== false) { else $offsetArg = $offset; - echo ""; echo ""; -echo ""; -echo "
' . __('News board') . '
'.$article["subject"].'
'.$article["subject"].'
' . __('by') . ' ' . $article["author"] . ' ' . ui_print_timestamp ($article["timestamp"], true).' ' . $comparation_suffix . '
'; diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 699e70a321..02ef042b7e 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -279,7 +279,8 @@ $table->class = "databox filters"; $table->head = array (); $table->style = array (); -$table->style[0] = 'font-weight: bold; width: 150px;'; +$table->style[0] = 'font-weight: bold; '; +$table->style[2] = 'font-weight: bold;'; $table->data = array (); // Custom ID @@ -338,7 +339,7 @@ foreach ($listIcons as $index => $value) $arraySelectIcon[$index] = $index; $path = 'images/gis_map/icons/'; //TODO set better method the path -$table->data[4][0] = __('Agent icon') . ui_print_help_tip(__('Agent icon for GIS Maps.'), true); +$table->data[0][2] = __('Agent icon') . ui_print_help_tip(__('Agent icon for GIS Maps.'), true); if ($icon_path == '') { $display_icons = 'none'; // Hack to show no icon. Use any given image to fix not found image errors @@ -357,7 +358,7 @@ else { $path_warning = $path . $icon_path . ".warning.png"; } -$table->data[4][1] = html_print_select($arraySelectIcon, "icon_path", +$table->data[0][3] = html_print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) . ' ' . html_print_image($path_ok, true, array("id" => "icon_ok", "style" => "display:".$display_icons.";")) . @@ -367,23 +368,23 @@ $table->data[4][1] = html_print_select($arraySelectIcon, "icon_path", array("id" => "icon_warning", "style" => "display:".$display_icons.";")); if ($config['activate_gis']) { - $table->data[5][0] = __('Ignore new GIS data:'); - $table->data[5][1] = __('Yes') . ' ' . + $table->data[1][2] = __('Ignore new GIS data:'); + $table->data[1][3] = __('Yes') . ' ' . html_print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); - $table->data[5][1] .= __('No') . ' ' . + $table->data[1][3] .= __('No') . ' ' . html_print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); } -$table->data[6][0] = __('Url address'); -$table->data[6][1] = html_print_input_text ('url_description', +$table->data[2][2] = __('Url address'); +$table->data[2][3] = html_print_input_text ('url_description', $url_description, '', 45, 255, true); -$table->data[7][0] = __('Quiet'); -$table->data[7][0] .= ui_print_help_tip( +$table->data[3][2] = __('Quiet'); +$table->data[3][3] .= ui_print_help_tip( __('The agent still runs but the alerts and events will be stop'), true); -$table->data[7][1] = html_print_checkbox('quiet', 1, $quiet, true); +$table->data[3][3] = html_print_checkbox('quiet', 1, $quiet, true); ui_toggle(html_print_table ($table, true), __('Advanced options')); unset($table); @@ -393,7 +394,7 @@ $table->class = "databox filters"; $table->head = array (); $table->style = array (); -$table->style[0] = 'font-weight: bold; width: 150px;'; +$table->style[0] = 'font-weight: bold; width: 100px;'; $table->data = array (); $fields = db_get_all_fields_in_table('tagent_custom_fields'); @@ -413,7 +414,7 @@ foreach ($fields as $field) { } $data[1] = html_print_textarea ('customvalue_'.$field['id_field'], - 2, 65, $custom_value, 'style="min-height: 30px;"', true); + 2, 65, $custom_value, 'style="min-height: 30px; width:96%;"', true); array_push ($table->data, $data); } @@ -529,7 +530,7 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); echo '"' . implode(', ', $elements) . '"'; ?>, - width: '100%', + width: '95%', theme : "advanced", theme_advanced_path : false, statusbar : false, diff --git a/pandora_console/godmode/agentes/fields_manager.php b/pandora_console/godmode/agentes/fields_manager.php index 75fd470e12..6f697030c7 100644 --- a/pandora_console/godmode/agentes/fields_manager.php +++ b/pandora_console/godmode/agentes/fields_manager.php @@ -86,7 +86,8 @@ if ($delete_field) { $fields = db_get_all_fields_in_table('tagent_custom_fields'); -$table->width = '98%'; +$table->width = '100%'; +$table->class = 'databox data'; if ($fields) { $table->head = array (); $table->head[0] = __('ID'); @@ -94,9 +95,10 @@ if ($fields) { $table->head[2] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true); $table->head[3] = __('Actions'); $table->align = array (); - $table->align[0] = 'right'; - $table->align[2] = 'center'; - $table->align[3] = 'center'; + $table->align[0] = 'left'; + $table->align[2] = 'left'; + $table->align[3] = 'left'; + $table->size[3] = '8%'; $table->data = array (); } else { diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index e6139af261..3346cdbedc 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -419,7 +419,6 @@ if ($agents !== false) { '' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown)) . ''; echo ""; - echo "".__('R')."".__('OS'). ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectOsUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectOsDown)) . ''; @@ -429,7 +428,7 @@ if ($agents !== false) { '' . html_print_image("images/sort_down.png", true, array("style" => $selectGroupDown)) . ''; echo "" . __('Description') . "" . __('Actions') . "" . __('Actions') . ""; - // Has remote configuration ? - if (enterprise_installed()) { - enterprise_include_once('include/functions_config_agents.php'); - if (config_agents_has_remote_configuration($agent["id_agente"])) { - echo ""; - echo html_print_image("images/application_edit.png", true, array("align" => 'middle', "title" => __('Edit remote config'))); - echo ""; - } - } - echo ""; + echo ""; ui_print_os_icon ($agent["id_os"], false); echo "" . ui_print_group_icon ($id_grupo, true)."" . ui_print_group_icon ($id_grupo, true)."" . ui_print_truncate_text($agent["comentarios"], 'description', true, true, true, '[…]', 'font-size: 6.5pt;').""; + echo ""; if ($agent['disabled']) { echo "width = '100%'; -$table_advanced->class = 'databox'; +$table_advanced->class = 'databox filters'; $table_advanced->data = array (); $table_advanced->style = array (); $table_advanced->style[0] = @@ -556,12 +556,12 @@ else { /* Advanced form part */ $table_macros->id = 'module_macros'; -$table_macros->width = '98%'; -$table_macros->class = 'databox_color'; +$table_macros->width = '100%'; +$table_macros->class = 'databox filters'; $table_macros->data = array (); $table_macros->style = array (); -$table_macros->style[0] = 'font-weight: bold; vertical-align: top'; -$table_macros->style[2] = 'font-weight: bold; vertical-align: top'; +$table_macros->style[0] = 'font-weight: bold;'; +$table_macros->style[2] = 'font-weight: bold;'; $table_macros->style[5] = 'width: 10px'; $table_macros->colspan = array (); @@ -588,8 +588,8 @@ html_print_input_hidden ('module_macro_count', $macro_count); // Add relationships $table_new_relations = new stdClass(); $table_new_relations->id = 'module_new_relations'; -$table_new_relations->width = '98%'; -$table_new_relations->class = 'databox_color'; +$table_new_relations->width = '100%'; +$table_new_relations->class = 'databox filters'; $table_new_relations->data = array (); $table_new_relations->style = array (); $table_new_relations->style[0] = 'width: 10%; font-weight: bold;'; @@ -616,8 +616,8 @@ $table_new_relations->data[0][4] .= "  
id = 'module_relations'; -$table_relations->width = '98%'; -$table_relations->class = 'databox'; +$table_relations->width = '100%'; +$table_relations->class = 'databox data'; $table_relations->head = array (); $table_relations->data = array (); $table_relations->rowstyle = array (); diff --git a/pandora_console/godmode/alerts/alert_list.builder.php b/pandora_console/godmode/alerts/alert_list.builder.php index 9a3a6b7dd6..00df1d4d50 100644 --- a/pandora_console/godmode/alerts/alert_list.builder.php +++ b/pandora_console/godmode/alerts/alert_list.builder.php @@ -98,7 +98,7 @@ $table->data[0][3] .= ' '; $table->data[0][3] .= html_print_image ('images/add.png', true); - $table->data[0][3] .= __('Create Template'); + $table->data[0][3] .= "
" . __('Create Template') . "
"; $table->data[0][3] .= '
'; } @@ -124,9 +124,9 @@ $table->data[1][1] .= ui_print_help_icon ("alert-matches", true, ui_get_full_url(false, false, false, false)); $table->data[1][1] .= ''; if (check_acl ($config['id_user'], 0, "LM")) { - $table->data[1][1] .= '' . html_print_image ('images/add.png', true); + $table->data[1][1] .= ''; - $table->data[1][1] .= __('Create Action'); + $table->data[1][1] .= ' ' . __('Create Action'); $table->data[1][1] .= ''; } $table->data[1][2] = __('Threshold'); diff --git a/pandora_console/godmode/category/category.php b/pandora_console/godmode/category/category.php index 141180d367..3b2a3e5880 100755 --- a/pandora_console/godmode/category/category.php +++ b/pandora_console/godmode/category/category.php @@ -88,21 +88,6 @@ $result = false; $result = categories_get_all_categories (); -// Form to add new categories or search categories -if (!defined('METACONSOLE')) { - echo ""; - echo ""; - echo ""; - echo ""; - echo "
"; - echo '
'; - html_print_input_hidden ("create_category", "1", true); - html_print_submit_button (__('Create category'), - 'create_button', false, 'class="sub next"'); - echo "
"; - echo "
"; -} - // Prepare pagination ui_pagination ($total_categories, $url); @@ -112,7 +97,8 @@ $iterator = 0; if (!empty($result)) { - $table->width = '98%'; + $table->width = '100%'; + $table->class = 'databox data'; if(defined('METACONSOLE')) $table->width = '100%'; $table->data = array (); @@ -169,7 +155,20 @@ else { // No categories available or selected echo "
".__('No categories found')."
"; } - +// Form to add new categories or search categories +if (!defined('METACONSOLE')) { + echo ""; + echo ""; + echo ""; + echo ""; + echo "
"; + echo '
'; + html_print_input_hidden ("create_category", "1", true); + html_print_submit_button (__('Create category'), + 'create_button', false, 'class="sub next"'); + echo "
"; + echo "
"; +} enterprise_hook('close_meta_frame'); ?> diff --git a/pandora_console/godmode/category/edit_category.php b/pandora_console/godmode/category/edit_category.php index aeb828c5c8..a841c19e1e 100755 --- a/pandora_console/godmode/category/edit_category.php +++ b/pandora_console/godmode/category/edit_category.php @@ -123,12 +123,12 @@ else { echo '
'; if(!defined('METACONSOLE')) - echo '
'; + echo '
'; else echo '
'; if(!defined('METACONSOLE')) - echo ""; + echo "
"; else echo "
"; if (defined("METACONSOLE")) { @@ -152,59 +152,34 @@ else } } echo ""; - if(defined('METACONSOLE')) - echo ""; - if(defined('METACONSOLE')) - echo ""; echo ""; - if (!defined('METACONSOLE')) { - echo ""; - if ($action == "update") { - echo ""; - echo ""; - } - if ($action == "new") { - echo ""; - echo ""; - } - echo ""; - } + echo "
"; - else - echo ""; + echo ""; + html_print_label (__("Name"),'name'); echo ""; - else - echo ""; + echo ""; html_print_input_text ('name_category', $name_category); echo "
"; - html_print_input_hidden ('update_category', 1); - echo ""; - html_print_submit_button (__('Update'), 'update_button', - false, 'class="sub next"'); - echo ""; - html_print_input_hidden ('create_category', 1); - echo ""; - html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"'); - echo "
"; -if (defined('METACONSOLE')) { - echo ""; - echo ""; - echo ""; - echo ""; - echo "
"; - if ($action == "update") { - html_print_input_hidden ('update_category', 1); - html_print_submit_button (__('Update'), 'update_button', false, - 'class="sub next"'); - } - if ($action == "new") { - html_print_input_hidden ('create_category', 1); - html_print_submit_button (__('Create'), 'create_button', false, - 'class="sub next"'); - } - echo "
"; + +echo ""; +echo ""; +echo ""; +echo ""; +echo "
"; +if ($action == "update") { + html_print_input_hidden ('update_category', 1); + html_print_submit_button (__('Update'), 'update_button', false, + 'class="sub next"'); } +if ($action == "new") { + html_print_input_hidden ('create_category', 1); + html_print_submit_button (__('Create'), 'create_button', false, + 'class="sub next"'); +} +echo "
"; + echo '
'; echo ''; diff --git a/pandora_console/godmode/gis_maps/index.php b/pandora_console/godmode/gis_maps/index.php index ffa91e5c76..f734de2216 100644 --- a/pandora_console/godmode/gis_maps/index.php +++ b/pandora_console/godmode/gis_maps/index.php @@ -64,7 +64,8 @@ switch ($action) { ui_print_page_header (__('GIS Maps builder'), "images/gm_gis.png", false, "gis_map_builder", true); -$table->width = '98%'; +$table->width = '100%'; +$table->class = 'databox data'; $table->head[0] = __('Map name'); $table->head[1] = __('Group'); $table->head[2] = __('View'); @@ -72,12 +73,12 @@ if ($display_default_column) $table->head[3] = __('Default'); $table->head[4] = '' . __('Op.') . ''; -$table->align[1] = 'center'; -$table->align[2] = 'center'; -$table->align[3] = 'center'; -$table->align[4] = 'center'; +$table->align[1] = 'left'; +$table->align[2] = 'left'; +$table->align[3] = 'left'; +$table->headstyle[4] = 'text-align:center'; $table->size = array(); -$table->size[4] = '60px'; +$table->size[4] = '80px'; $maps = db_get_all_rows_in_table ('tgis_map','map_name'); diff --git a/pandora_console/godmode/groups/modu_group_list.php b/pandora_console/godmode/groups/modu_group_list.php index 9dfc312a46..4ff5bd2ff7 100644 --- a/pandora_console/godmode/groups/modu_group_list.php +++ b/pandora_console/godmode/groups/modu_group_list.php @@ -173,7 +173,7 @@ switch ($config["dbtype"]) { $groups = db_get_all_rows_sql($sql); -$table->width = '98%'; +$table->width = '100%'; if (!empty($groups)) { $table->head = array (); @@ -182,7 +182,8 @@ if (!empty($groups)) { $table->head[2] = __('Delete'); $table->align = array (); $table->align[1] = 'left'; - $table->align[2] = 'center'; + $table->align[2] = 'left'; + $table->size[2] = '5%'; $table->data = array (); foreach ($groups as $id_group ) { diff --git a/pandora_console/godmode/modules/manage_nc_groups.php b/pandora_console/godmode/modules/manage_nc_groups.php index 621cd1300d..3a9f462c50 100644 --- a/pandora_console/godmode/modules/manage_nc_groups.php +++ b/pandora_console/godmode/modules/manage_nc_groups.php @@ -187,9 +187,8 @@ foreach ($groups as $group_key => $group_val) { // Format component groups in tree form $groups = component_groups_get_groups_tree_recursive($groups_clean,0,0); -$table->width = '98%'; -if (defined('METACONSOLE')) - $table->width = '100%'; +$table->width = '100%'; +$table->class = 'databox data'; $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Action') . @@ -197,7 +196,7 @@ $table->head[1] = __('Action') . $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->align = array (); -$table->align[1] = 'center'; +$table->align[1] = 'left'; $table->size = array (); $table->size[0] = '80%'; $table->size[1] = '50px'; diff --git a/pandora_console/godmode/modules/manage_nc_groups_form.php b/pandora_console/godmode/modules/manage_nc_groups_form.php index 2ed99d1128..91b442f4df 100644 --- a/pandora_console/godmode/modules/manage_nc_groups_form.php +++ b/pandora_console/godmode/modules/manage_nc_groups_form.php @@ -44,7 +44,8 @@ else { $parent = ''; } -$table->width = '98%'; +$table->width = '100%'; + $table->class = 'databox filters'; if (defined('METACONSOLE')) { $table->width = '100%'; $table->class = 'databox data'; diff --git a/pandora_console/godmode/modules/module_list.php b/pandora_console/godmode/modules/module_list.php index 07c5da3049..ef7db64282 100644 --- a/pandora_console/godmode/modules/module_list.php +++ b/pandora_console/godmode/modules/module_list.php @@ -53,7 +53,7 @@ if ($update_module) { } -echo ""; +echo "
"; echo ""; echo ""; echo ""; diff --git a/pandora_console/godmode/netflow/nf_edit.php b/pandora_console/godmode/netflow/nf_edit.php index 5f6acf2a00..4d0650ffaf 100644 --- a/pandora_console/godmode/netflow/nf_edit.php +++ b/pandora_console/godmode/netflow/nf_edit.php @@ -111,7 +111,7 @@ $filters = db_get_all_rows_sql($sql); if ($filters === false) $filters = array (); -$table->width = '90%'; +$table->width = '100%'; if (defined('METACONSOLE')) { $table->width = '100%'; } diff --git a/pandora_console/godmode/netflow/nf_edit_form.php b/pandora_console/godmode/netflow/nf_edit_form.php index d3742ac428..addeabe6a8 100644 --- a/pandora_console/godmode/netflow/nf_edit_form.php +++ b/pandora_console/godmode/netflow/nf_edit_form.php @@ -168,11 +168,11 @@ if ($create) { } $table->id = 'table1'; -$table->width = '80%'; +$table->width = '100%'; $table->border = 0; $table->cellspacing = 3; $table->cellpadding = 5; -$table->class = "databox_color"; +$table->class = "databox filters"; if (defined('METACONSOLE')) { $table->width = '100%'; $table->class = 'databox data'; diff --git a/pandora_console/godmode/reporting/graph_builder.graph_editor.php b/pandora_console/godmode/reporting/graph_builder.graph_editor.php index 2d766b0263..86a0cefbf8 100644 --- a/pandora_console/godmode/reporting/graph_builder.graph_editor.php +++ b/pandora_console/godmode/reporting/graph_builder.graph_editor.php @@ -74,7 +74,7 @@ if ($editGraph) { // Modules table if (count($module_array) > 0) { - echo "
".__('Icon')."".__('ID')."".__('Name')."
"; + echo "
"; echo " @@ -118,7 +118,7 @@ if (count($module_array) > 0) { echo ''; echo ""; -echo "
".__('Agent')." ".__('Module')."
"; +echo "
"; echo ""; echo ""; echo ""; @@ -139,8 +139,9 @@ echo ""; echo "
".__('Filter group')."
"; echo "
"; +echo ""; +echo ""; +echo "
"; ui_require_jquery_file ('pandora.controls'); ui_require_jquery_file ('ajaxqueue'); diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index 3e8f28edd4..e38725f9ff 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -83,7 +83,7 @@ else { // CREATE/EDIT GRAPH FORM // ----------------------- -echo ""; +echo "
"; if ($edit_graph) echo ""; @@ -144,12 +144,12 @@ $stackeds = array( html_print_select ($stackeds, 'stacked', $stacked); echo ""; -echo "
"; +echo "
"; + if ($edit_graph) { - echo ""; + echo "
"; } else { - echo ""; + echo "
"; } -echo ""; echo ""; diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index 2d132e04d5..6c3cf632a3 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -135,20 +135,21 @@ $graphs = custom_graphs_get_user ($config['id_user'], false, true, "RR"); if (!empty ($graphs)) { $table = new stdClass(); - $table->width = '98%'; - $table->class = 'databox_frame'; + $table->width = '100%'; + $table->class = 'databox data'; $table->align = array (); $table->head = array (); $table->head[0] = __('Graph name'); $table->head[1] = __('Description'); $table->head[2] = __('Number of Graphs'); $table->head[3] = __('Group'); - $table->size[2] = '80px'; - $table->size[3] = '50px'; - $table->align[2] = 'center'; - $table->align[3] = 'center'; + $table->size[0] = '30%'; + $table->size[2] = '200px'; + $table->size[3] = '200px'; + $table->align[2] = 'left'; + $table->align[3] = 'left'; if (check_acl ($config['id_user'], 0, "RW")) { - $table->align[4] = 'center'; + $table->align[4] = 'left'; $table->head[4] = __('Op.'); $table->size[4] = '90px'; } @@ -194,7 +195,7 @@ else { if (check_acl ($config['id_user'], 0, "RW")) { echo '
'; - echo '
'; + echo '
'; html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next"'); echo "
"; echo ""; diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 9cf37105e2..0e3df3ee29 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -179,6 +179,7 @@ if ($delete_layout || $copy_layout) { } $table->width = '100%'; +$table->class = 'databox data'; $table->data = array (); $table->head = array (); $table->head[0] = __('Map name'); @@ -190,6 +191,8 @@ $table->head[2] = __('Items'); if ($vconsoles_write || $vconsoles_manage) { $table->head[3] = __('Copy'); $table->head[4] = __('Delete'); + $table->size[3] = "6%"; + $table->size[4] = "6%"; } $table->align = array (); diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 842e641b41..b9512869fd 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -526,7 +526,7 @@ html_print_input_hidden('id_item', $idItem); if (defined("METACONSOLE")) $class = 'databox data'; else - $class = 'databox'; + $class = 'databox filters'; ?> @@ -1210,8 +1210,8 @@ else

'; if ($action == 'new') { html_print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"'); @@ -1240,7 +1240,7 @@ function print_SLA_list($width, $action, $idItem = null) { $report_item_type = db_get_value('type', 'treport_content', 'id_rc', $idItem); ?> -
+
@@ -1405,7 +1405,7 @@ function print_General_list($width, $action, $idItem = null, $type = 'general') include_once($config['homedir'] . '/include/functions_html.php'); ?> -
+
' . - __('Items filter') . ' ' . - html_print_image("images/down.png", true, - array("title" => __('Toggle filter(s)'), - "id" => 'image_form_filter')) . ''; - if (!defined("METACONSOLE")) { $table = new stdClass(); $table->width = '100%'; + $table->class = 'databox filters'; $table->data[0][0] = __('Agents'); - $table->data[0][1] = html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true); - $table->data[0][2] = __('Modules'); - $table->data[0][3] = html_print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true); - $table->data[1][0] = __('Type'); - $table->data[1][1] = html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true); - $table->data[1][2] = $table->data[1][3] = ''; + $table->data[0][0] .= html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true); + $table->data[0][1] = __('Modules'); + $table->data[0][1] .= html_print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true); + $table->data[0][2] = __('Type'); + $table->data[0][2] .= html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true); + //$table->data[1][2] = $table->data[1][3] = ''; - echo ''; + + $form = ''; + $form .= html_print_table ($table,true); + $form .= '
'; + $form .= html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"',true); + $form .= html_print_input_hidden('action', 'filter',true); + $form .= '
'; + $form .= ''; + + ui_toggle($form, __("Filters") ); } else { $table = null; @@ -303,7 +294,7 @@ if ($items) { $table->align[7] = 'center'; } else { - echo '

'. __('No items') . '
'; + ui_print_info_message ( array ( 'no_close' => true, 'message' => __('No items.') ) ); } $lastPage = true; @@ -440,10 +431,8 @@ if (defined("METACONSOLE")) { ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); echo ""; - if (defined("METACONSOLE")) - echo "
"; - else - echo "
"; + echo "
"; + if (check_acl ($config['id_user'], 0, "RM")) { html_print_input_hidden('ids_items_to_delete', ''); html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"'); @@ -453,23 +442,22 @@ if (defined("METACONSOLE")) { } } else { - ui_pagination ($countItems, - 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); - html_print_table($table); - ui_pagination ($countItems, - 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); - - echo ""; - if (defined("METACONSOLE")) - echo "
"; - else - echo "
"; + if ($items != false) { + ui_pagination ($countItems, + 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); + html_print_table($table); + ui_pagination ($countItems, + 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); - html_print_input_hidden('ids_items_to_delete', ''); - html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"'); - echo "
"; - echo ""; + echo "
"; + echo "
"; + + html_print_input_hidden('ids_items_to_delete', ''); + html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"'); + echo "
"; + echo ""; + } } $table = new stdClass(); $table->width = '100%'; diff --git a/pandora_console/godmode/reporting/reporting_builder.main.php b/pandora_console/godmode/reporting/reporting_builder.main.php index 7db2c14e65..10f9058989 100755 --- a/pandora_console/godmode/reporting/reporting_builder.main.php +++ b/pandora_console/godmode/reporting/reporting_builder.main.php @@ -42,9 +42,9 @@ switch ($action) { } $table = new stdClass(); -$table->width = '98%'; +$table->width = '100%'; $table->id = 'add_alert_table'; -$table->class = 'databox'; +$table->class = 'databox filters'; $table->head = array (); if (defined("METACONSOLE")) { diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index 16e20c9a3b..8720e61c88 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -520,7 +520,8 @@ switch ($action) { //$table->size = array (); $table->size[$next] = '5%'; - $table->style[$next] = 'text-align:center;'; + $table->align[$next] = 'center'; + $table->headstyle[$next] = 'text-align:center;'; } diff --git a/pandora_console/godmode/reporting/visual_console_builder.data.php b/pandora_console/godmode/reporting/visual_console_builder.data.php index 019d1c423f..6eff80cc5f 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.data.php +++ b/pandora_console/godmode/reporting/visual_console_builder.data.php @@ -94,6 +94,7 @@ if (defined('METACONSOLE')) { $table->align[0] = 'left'; $table->align[1] = 'left'; } +$table->class = 'databox filters'; $table->data = array (); $table->data[0][0] = __('Name:'). ui_print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true); @@ -125,7 +126,7 @@ else { html_print_table($table); -echo '
'; +echo '
'; html_print_submit_button ($textButtonSubmit, 'update_layout', false, 'class="' . $classButtonSubmit . '"'); echo '
'; diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index 1278f0d836..e49e432d3a 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -65,10 +65,11 @@ foreach ($all_images as $image_file) { if (!defined('METACONSOLE')) { $table->width = '100%'; + $table->class = 'databox filters'; } else { $table->width = '100%'; - $table->class = 'databox'; + $table->class = 'databox data'; } $table->head = array(); $table->head['icon'] = ''; @@ -78,9 +79,9 @@ $table->head[2] = __('Width x Height
Max value'); $table->head[3] = __('Period') . ' / ' . __('Position'); $table->head[4] = __('Parent') . ' / ' . __('Map linked'); $table->head[5] = ""; -$table->head[5] .= html_print_checkbox('head_multiple_delete', +$table->head[5] .= '   ' . html_print_checkbox('head_multiple_delete', '', false, true, false, 'toggle_checkbox_multiple_delete();'); -$table->head[5] .= '' . +$table->head[5] .= '   ' . __('A.') . ''; $table->size = array(); @@ -89,12 +90,18 @@ $table->size[0] = '25%'; $table->align = array(); if (!defined('METACONSOLE')) { + $table->headstyle[0] = "text-align:left;"; + $table->headstyle[1] = "text-align:left"; + $table->headstyle[2] = "text-align:left"; + $table->headstyle[3] = "text-align:left"; + $table->headstyle[4] = "text-align:left"; + $table->headstyle[5] = "text-align:left"; $table->align[0] = "left"; - $table->align[1] = "right"; - $table->align[2] = "center"; - $table->align[3] = "center"; - $table->align[4] = "right"; - $table->align[5] = "center"; + $table->align[1] = "left"; + $table->align[2] = "left"; + $table->align[3] = "left"; + $table->align[4] = "left"; + $table->align[5] = "left"; } $table->data = array(); @@ -103,7 +110,7 @@ $table->data[0]['icon'] = ''; $table->data[0][0] = __('Background'); $table->data[0][1] = html_print_select($backgrounds_list, 'background', $visualConsole['background'], '', 'None', '', true, false, true, '', false, 'width: 120px;'); $table->data[0][2] = html_print_input_text('width', $visualConsole['width'], '', 3, 5, true) . - 'x' . + ' x ' . html_print_input_text('height', $visualConsole['height'], '', 3, 5, true); $table->data[0][3] = $table->data[0][4] = $table->data[0][5] = ''; @@ -236,7 +243,7 @@ foreach ($layoutDatas as $layoutData) { break; default: $table->data[$i + 1][2] = html_print_input_text('width_' . $idLayoutData, $layoutData['width'], '', 2, 5, true) . - 'x' . + ' x ' . html_print_input_text('height_' . $idLayoutData, $layoutData['height'], '', 2, 5, true); break; } @@ -248,9 +255,9 @@ foreach ($layoutDatas as $layoutData) { $table->data[$i + 1][3] = ''; break; default: - $table->data[$i + 1][3] = '(' . html_print_input_text('left_' . $idLayoutData, $layoutData['pos_x'], '', 2, 5, true) . - ',' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) . - ')'; + $table->data[$i + 1][3] = '( ' . html_print_input_text('left_' . $idLayoutData, $layoutData['pos_x'], '', 2, 5, true) . + ' , ' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) . + ' )'; break; } @@ -472,22 +479,14 @@ else { echo "
"; } if (!defined('METACONSOLE')) - echo '
'; + echo '
'; if (!defined('METACONSOLE')) { html_print_input_hidden ('action', 'update'); } else { html_print_input_hidden ('action2', 'update'); } -if (!defined('METACONSOLE')) { - echo "
"; - html_print_input_hidden ('id_visual_console', $visualConsole["id"]); - html_print_submit_button (__('Update'), 'go', false, 'class="sub next"'); - echo " "; - html_print_button(__('Delete'), 'delete', false, 'submit_delete_multiple_items();', 'class="sub delete"'); - echo '
'; -} html_print_table($table); echo '
'; diff --git a/pandora_console/godmode/servers/manage_recontask.php b/pandora_console/godmode/servers/manage_recontask.php index 8f681dba9b..be11a7800b 100644 --- a/pandora_console/godmode/servers/manage_recontask.php +++ b/pandora_console/godmode/servers/manage_recontask.php @@ -248,14 +248,15 @@ else { $color=1; if ($result !== false) { $table->head = array (__('Name'), __('Network'), __('Mode'), __('Group'), __('Incident'), __('OS'), __('Interval'), __('Ports'), __('Action')); - $table->align = array ("","","","center","","","center","center"); - $table->width = "99%"; + $table->align = array ("left","left","left","left","left","left","left","left"); + $table->width = "100%"; $table->cellpadding = 4; $table->cellspacing = 4; - $table->class = "databox"; + $table->class = "databox data"; $table->data = array (); - $table->style[8] = 'text-align: center;'; + $table->style[8] = 'text-align: left;'; + $table->size[8] = '15%'; foreach ($result as $row) { $data = array(); diff --git a/pandora_console/godmode/servers/manage_recontask_form.php b/pandora_console/godmode/servers/manage_recontask_form.php index 72bf02fb7c..d82d1c1d5b 100644 --- a/pandora_console/godmode/servers/manage_recontask_form.php +++ b/pandora_console/godmode/servers/manage_recontask_form.php @@ -151,10 +151,10 @@ if ($is_windows) { } $table->id='table_recon'; -$table->width='98%'; +$table->width='100%'; $table->cellspacing=4; $table->cellpadding=4; -$table->class="databox_color"; +$table->class="databox filters"; $table->rowclass[3]="network_sweep"; $table->rowclass[5]="network_sweep"; $table->rowclass[7]="network_sweep"; diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php index d5e236f5df..e748f24e5a 100644 --- a/pandora_console/include/functions_custom_graphs.php +++ b/pandora_console/include/functions_custom_graphs.php @@ -202,8 +202,13 @@ function custom_graphs_print($id_graph, $height, $width, $period, if ($sources === false) { - echo "
" . __('Empty graph') . "
"; - return; + if ($return){ + return false; + } + else{ + ui_print_info_message ( array ( 'no_close' => true, 'message' => __('No items.') ) ); + return; + } } if (empty($homeurl)) { diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index c6df6d7d77..86b9ea6bfd 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -552,15 +552,13 @@ function filemanager_file_explorer($real_directory, $relative_directory, $files = filemanager_list_dir ($real_directory); $table = new stdClass(); - $table->width = '98%'; + $table->width = '100%'; $table->id = 'table_filemanager'; if (!defined('METACONSOLE')) { - $table->width = '100%'; $table->class = 'databox data'; $table->title = '' . __('Index of %s', $relative_directory) . ''; } if (defined('METACONSOLE')) { - $table->width = '100%'; $table->class = 'databox_tactical'; $table->title = '' . __('Index of images') . ''; } @@ -582,11 +580,11 @@ function filemanager_file_explorer($real_directory, $relative_directory, $table->head[3] = __('Size'); $table->head[4] = __('Actions'); if (!defined('METACONSOLE')) { - $table->headstyle[0] = 'background-color:#80BA27'; - $table->headstyle[1] = 'background-color:#80BA27'; - $table->headstyle[2] = 'background-color:#80BA27'; - $table->headstyle[3] = 'background-color:#80BA27'; - $table->headstyle[4] = 'background-color:#80BA27'; + $table->headstyle[0] = 'background-color:#82B92E'; + $table->headstyle[1] = 'background-color:#82B92E'; + $table->headstyle[2] = 'background-color:#82B92E'; + $table->headstyle[3] = 'background-color:#82B92E'; + $table->headstyle[4] = 'background-color:#82B92E'; } $prev_dir = explode ("/", $relative_directory); $prev_dir_str = ""; @@ -613,7 +611,7 @@ function filemanager_file_explorer($real_directory, $relative_directory, $table->data[1][1] .= '
and ) - $datastart = '
' . + $datastart = '
' . '' . '' . '' . @@ -212,11 +212,11 @@ elseif (!empty ($export_btn) && empty ($module)) { if (empty($export_btn) || $show_form) { echo ''; - $table->width = '98%'; + $table->width = '100%'; $table->border = 0; $table->cellspacing = 3; $table->cellpadding = 5; - $table->class = "databox_color"; + $table->class = "databox filters"; $table->style[0] = 'vertical-align: top;'; $table->data = array (); @@ -327,7 +327,7 @@ if (empty($export_btn) || $show_form) { html_print_table ($table); // Submit button - echo '
'; + echo '
'; html_print_button (__('Export'), 'export_btn', false, 'change_action()', 'class="sub wand"'); echo '
'; } diff --git a/pandora_console/operation/agentes/graphs.php b/pandora_console/operation/agentes/graphs.php index e6363786d5..4ff59a218f 100644 --- a/pandora_console/operation/agentes/graphs.php +++ b/pandora_console/operation/agentes/graphs.php @@ -110,44 +110,53 @@ $table->width = '100%'; $table->class = 'databox filters'; $table->style[0] = 'font-weight: bolder; text-align: left;'; -$table->style[1] = ''; +$table->size[0] = '10%'; +$table->style[1] = 'font-weight: bolder; text-align: left;'; +$table->size[1] = '15%'; $table->style[2] = 'font-weight: bolder; text-align: left;'; +$table->size[2] = '10%'; +$table->style[3] = 'font-weight: bolder; text-align: left;'; +$table->size[3] = '20%'; -$table->rowspan[0][0] = 6; -$table->rowspan[0][1] = 6; +$table->rowspan[0][0] = 7; +$table->rowspan[0][1] = 7; $table->data[0][0] = __('Modules'); $table->data[0][1] = html_print_select($list_modules, 'modules[]', $modules, '', '', 0, true, true, true, '', false, "width: 100%; height: 200px;"); -$table->data[0][2] = __('Begin date'); -$table->data[0][3] = html_print_input_text ("start_date", substr ($start_date, 0, 10),'', 10, 40, true); -$table->data[0][3] .= html_print_image ("images/calendar_view_day.png", true, array ("onclick" => "scwShow(scwID('text-start_date'),this);")); +$table->rowspan[2][0] = 7; +$table->data[2][0] = ""; -$table->data[1][2] = __('Zoom factor'); + +$table->data[2][1] = __('Begin date'); +$table->data[2][2] = html_print_input_text ("start_date", substr ($start_date, 0, 10),'', 10, 40, true); +$table->data[2][2] .= html_print_image ("images/calendar_view_day.png", true, array ("onclick" => "scwShow(scwID('text-start_date'),this);")); + +$table->data[3][1] = __('Zoom factor'); $options = array (); $options[$zoom] = 'x' . $zoom; $options[1] = 'x1'; $options[2] = 'x2'; $options[3] = 'x3'; $options[4] = 'x4'; -$table->data[1][3] = html_print_select ($options, "zoom", $zoom, '', '', 0, true); +$table->data[3][2] = html_print_select ($options, "zoom", $zoom, '', '', 0, true); -$table->data[2][2] = __('Time range'); +$table->data[4][1] = __('Time range'); -$table->data[2][3] = html_print_extended_select_for_time('period', $period, '', '', 0, 7, true); +$table->data[4][2] = html_print_extended_select_for_time('period', $period, '', '', 0, 7, true); -$table->data[3][2] = __('Show events'); -$table->data[3][3] = html_print_checkbox ("draw_events", 1, (bool) $draw_events, true); -$table->data[4][2] = __('Show alerts') . +$table->data[5][2] = __('Show events'); +$table->data[5][3] = html_print_checkbox ("draw_events", 1, (bool) $draw_events, true); +$table->data[6][2] = __('Show alerts') . ui_print_help_tip(__('the combined graph does not show the alerts into this graph'), true); -$table->data[4][3] = html_print_checkbox ("draw_alerts", 1, (bool) $draw_alerts, true); -$table->data[5][2] = __('Show as one combined graph'); -$table->data[5][3] = +$table->data[6][3] = html_print_checkbox ("draw_alerts", 1, (bool) $draw_alerts, true); +$table->data[7][2] = __('Show as one combined graph'); +$table->data[7][3] = html_print_radio_button('combined', 1, __('one combined graph'), $combined, true); -$table->data[5][3] .= +$table->data[7][3] .= html_print_radio_button('combined', 0, __('several graphs for each module'), $combined, true); @@ -156,8 +165,8 @@ $htmlForm .= html_print_table($table, true); $htmlForm .= html_print_input_hidden('filter', 1, true); $htmlForm .= '
'; $htmlForm .= html_print_button(__('Save as custom graph'), 'save_custom_graph', - false, 'save_custom_graph();', 'class="sub add" style="margin-top:10px"',true) . '  ' . - html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd" style="margin-top:10px"', true); + false, 'save_custom_graph();', 'class="sub add" style=""',true) . '  ' . + html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd" style=""', true); $htmlForm .= '
'; $htmlForm .= ''; diff --git a/pandora_console/operation/agentes/networkmap_list.php b/pandora_console/operation/agentes/networkmap_list.php index 4c50677c32..2a77785184 100644 --- a/pandora_console/operation/agentes/networkmap_list.php +++ b/pandora_console/operation/agentes/networkmap_list.php @@ -155,9 +155,9 @@ $table->style[3] = 'text-align: left;'; $table->style[4] = 'text-align: left;'; $table->size = array(); -$table->size[0] = '80%'; +$table->size[0] = '60%'; $table->size[1] = '60px'; -$table->size[2] = '30px'; +$table->size[2] = '70px'; if ($networkmaps_write || $networkmaps_manage) { $table->size[3] = '30px'; @@ -241,7 +241,7 @@ if ($networkmaps_write || $networkmaps_manage) { $table_manage->style = array(); $table_manage->style[0] = 'font-weight: bold'; $table_manage->style[2] = 'font-weight: bold'; - $table_manage->style[4] = 'text-align: right'; + $table_manage->style[4] = 'text-align: center'; $table_manage->size = array(); $table_manage->head = array(); $table_manage->data = array(); diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index a44b8c9c42..e7fddb7a8b 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -471,11 +471,7 @@ if (!defined('METACONSOLE')) $table->data[1][1] = html_print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", $ag_modulename, '', __('All'), '', true, false, true, '', false, 'width: 150px;'); -if (!defined('METACONSOLE')) - $table->data[1][2] = __('Search'); -else - $table->data[1][2] = __('Search'); - +$table->data[1][2] = __('Search'); $table->data[1][3] = html_print_input_text ("ag_freestring", $ag_freestring, '', 20,30, true); @@ -546,6 +542,7 @@ if (defined('METACONSOLE')) { } else { $table->colspan[2][0] = 7; + $table->cellstyle[2][0] = "padding-left: 10px;"; $table->data[2][0] = ui_toggle(html_print_table($table_custom_fields, true), __('Agent custom fields'),'',true,true); $filters .= html_print_table($table, true); @@ -955,7 +952,7 @@ if (! defined ('METACONSOLE')) { } if (! defined ('METACONSOLE')) - $table->align[5] = "center"; + $table->align[5] = "left"; $table->head[6] = __('Status'); if (! defined ('METACONSOLE')) { @@ -963,10 +960,10 @@ if (! defined ('METACONSOLE')) { '' . html_print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . ''; } -$table->align[6] = "center"; +$table->align[6] = "left"; $table->head[7] = __('Graph'); -$table->align[7] = "center"; +$table->align[7] = "left"; $table->head[8] = __('Warn'); $table->align[8] = "left"; diff --git a/pandora_console/operation/events/events.build_table.php b/pandora_console/operation/events/events.build_table.php index dd3198c8ad..c5ff018eab 100644 --- a/pandora_console/operation/events/events.build_table.php +++ b/pandora_console/operation/events/events.build_table.php @@ -22,7 +22,7 @@ $table->id = "eventtable"; $table->cellpadding = 4; $table->cellspacing = 4; if(!isset($table->class)) { - $table->class = "databox"; + $table->class = "databox data"; } $table->head = array (); $table->data = array (); @@ -38,10 +38,9 @@ else { //headers $i = 0; $table->head[$i] = __('ID'); -if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + +$table->align[$i] = 'left'; + $i++; if (in_array('server_name', $show_fields)) { $table->head[$i] = __('Server'); @@ -55,10 +54,8 @@ if (in_array('estado', $show_fields)) { } if (in_array('id_evento', $show_fields)) { $table->head[$i] = __('Event ID'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('evento', $show_fields)) { @@ -75,129 +72,99 @@ if (in_array('id_agente', $show_fields)) { } if (in_array('timestamp', $show_fields)) { $table->head[$i] = __('Timestamp'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('id_usuario', $show_fields)) { $table->head[$i] = __('User'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('owner_user', $show_fields)) { $table->head[$i] = __('Owner'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('id_grupo', $show_fields)) { $table->head[$i] = __('Group'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('event_type', $show_fields)) { $table->head[$i] = __('Event type'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $table->style[$i] = 'min-width: 85px;'; $i++; } if (in_array('id_agentmodule', $show_fields)) { $table->head[$i] = __('Agent Module'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('id_alert_am', $show_fields)) { $table->head[$i] = __('Alert'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('criticity', $show_fields)) { $table->head[$i] = __('Severity'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('user_comment', $show_fields)) { $table->head[$i] = __('Comment'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('tags', $show_fields)) { $table->head[$i] = __('Tags'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('source', $show_fields)) { $table->head[$i] = __('Source'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('id_extra', $show_fields)) { $table->head[$i] = __('Extra ID'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('ack_utimestamp', $show_fields)) { $table->head[$i] = __('ACK Timestamp'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if (in_array('instructions', $show_fields)) { $table->head[$i] = __('Instructions'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; + $i++; } if ($i != 0 && $allow_action) { $table->head[$i] = __('Action'); - if(defined("METACONSOLE")) - $table->align[$i] = 'left'; - else - $table->align[$i] = 'center'; - $table->size[$i] = '80px'; + $table->align[$i] = 'left'; + + $table->size[$i] = '90px'; $i++; if (check_acl ($config["id_user"], 0, "EW") == 1 && !$readonly) { $table->head[$i] = html_print_checkbox ("all_validate_box", "1", false, true); - $table->align[$i] = 'center'; + $table->align[$i] = 'left'; } } @@ -644,7 +611,7 @@ foreach ($result as $event) { echo '
'; if (!empty ($table->data)) { - echo '
'; + if ($allow_pagination) { ui_pagination ($total_events, $url, $offset, $pagination); } diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 0816ebbe75..90bddc883b 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -35,12 +35,8 @@ if (! check_acl ($config["id_user"], 0, "ER")) { return; } -if (defined('METACONSOLE')) { - $jump = '  '; -} -else { - $jump = "
"; -} + +$jump = '  '; if (is_ajax()) { $get_filter_values = get_parameter('get_filter_values', 0); @@ -162,10 +158,6 @@ require('events.build_query.php'); $id_name = get_parameter('id_name', ''); -if (!defined("METACONSOLE")) - echo "
"; - - // Trick to catch if any filter button has been pushed (don't collapse filter) // or the filter was open before click or autorefresh is in use (collapse filter) $update_pressed = get_parameter_post('update', ''); @@ -174,22 +166,7 @@ $update_pressed = (int) !empty($update_pressed); if ($update_pressed || $open_filter) { $open_filter = true; } -if (!defined("METACONSOLE")) { - $table = html_get_predefined_table('transparent', 2); - $table->styleTable = 'width: 23px; float: right; background: #ECECEC;'; - $table->width = '98%'; - $table->style[0] = 'text-align: left;'; - $table->style[1] = 'text-align: right;'; - $table->data[0][1] = '' . html_print_image('images/chart_curve.png', true, array('title' => __('Show events graph'))) . ''; - $table->cellstyle[0][1] = 'background: #ECECEC;'; - - if(defined('METACONSOLE')) { - $table->width = '100%'; - $table->class='events_list'; - } - html_print_table($table); -} unset($table); $filters = events_get_event_filter_select(); @@ -208,7 +185,7 @@ if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0, // Save filter div for dialog echo '
' . __('Agent') . '' . __('Module') . '
+echo '

'.__('Filter').'

'; $fields = incidents_get_status (); -html_print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155'); +echo __("Incidents:") . '  '; + html_print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155'); //Legend echo '
'; $fields = incidents_get_priorities (); +echo __("Priorities:") . '  '; html_print_select ($fields, "prioridad", $prioridad, 'javascript:this.form.submit();', __('All priorities'), -1,false,false,false,'w155'); echo '
'; +echo __("Users:") . '  '; html_print_select (users_get_info (), "usuario", $usuario, 'javascript:this.form.submit();', __('All users'), "", false, false, false, "w155"); echo '
'; @@ -256,16 +259,20 @@ foreach ($agents_incidents as $agent_incident) { $result_agent_incidents[$agent_incident['id_agente']] = $agent_incident['nombre']; } +echo __("Agents:") . '  '; html_print_select ($result_agent_incidents, "agent_search", $agent_search, 'javascript:this.form.submit();', __('All agents'), "", false, false, false, "w155"); echo '
'; - + +echo __("Groups:") . '  '; html_print_select_groups($config["id_user"], "IR", true, "grupo", $grupo, 'javascript:this.form.submit();', '', '',false,false,false,'w155'); -echo "    "; +//echo "    "; +echo '
'; +echo __("Free text:") . '  '; html_print_input_text ('texto', $texto, '', 45); echo ' '; html_print_input_image ("submit", "images/zoom.png", __('Search'), 'padding:0;', false, array ("alt" => __('Search'))); @@ -300,7 +307,7 @@ else { // Show headers $table->width = "100%"; - $table->class = "databox"; + $table->class = "databox data"; $table->cellpadding = 4; $table->cellspacing = 4; $table->head = array (); @@ -321,10 +328,10 @@ else { $table->size[0] = 43; $table->size[7] = 50; - $table->align[1] = "center"; - $table->align[3] = "center"; - $table->align[4] = "center"; - $table->align[8] = "center"; + $table->align[1] = "left"; + $table->align[3] = "left"; + $table->align[4] = "left"; + $table->align[8] = "left"; $rowPair = true; $iterator = 0; diff --git a/pandora_console/operation/messages/message_edit.php b/pandora_console/operation/messages/message_edit.php index e538ed5607..745fe5cfe2 100644 --- a/pandora_console/operation/messages/message_edit.php +++ b/pandora_console/operation/messages/message_edit.php @@ -71,7 +71,8 @@ if ($read_message) { $dst_name = $message["id_usuario_destino"]; } - $table->width = '98%'; + $table->width = '100%'; + $table->class = 'databox filters'; $table->data = array(); $table->data[0][0] = __('Sender'); @@ -103,7 +104,7 @@ if ($read_message) { echo ''; html_print_table($table); - echo "
"; + echo "
"; html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"'); echo "
"; echo ""; @@ -113,7 +114,7 @@ if ($read_message) { html_print_input_hidden ("subject", $new_subj); html_print_input_hidden ("message", $new_msg); html_print_input_hidden ("orig_user", $message["id_usuario_destino"]); - echo "
"; + echo "
"; html_print_submit_button (__('Reply'), 'reply', false, 'class="sub next"'); echo '
'; echo ''; @@ -149,7 +150,8 @@ if (($new_msg) && ($dst_group!='') && (!$reply)) { //user info $own_info = get_user_info ($config['id_user']); -$table->width = '98%'; +$table->width = '100%'; +$table->class = 'databox filters'; $table->data = array(); diff --git a/pandora_console/operation/messages/message_list.php b/pandora_console/operation/messages/message_list.php index b75098ebc2..64596f471a 100644 --- a/pandora_console/operation/messages/message_list.php +++ b/pandora_console/operation/messages/message_list.php @@ -93,8 +93,8 @@ if (empty ($messages)) { echo '
'.__('There are no messages').'
'; } else { - $table->width = "98%"; - $table->class = "databox"; + $table->width = '100%'; + $table->class = 'databox data'; $table->cellpadding = 4; $table->cellspacing = 4; $table->head = array (); @@ -102,11 +102,11 @@ else { $table->align = array (); $table->size = array (); - $table->align[0] = "center"; - $table->align[1] = "center"; - $table->align[2] = "center"; - $table->align[3] = "center"; - $table->align[4] = "center"; + $table->align[0] = "left"; + $table->align[1] = "left"; + $table->align[2] = "left"; + $table->align[3] = "left"; + $table->align[4] = "left"; $table->size[0] = "20px"; $table->size[1] = "100px"; @@ -200,14 +200,14 @@ else { else echo '
'; html_print_table($table); - echo "
"; + echo "
"; html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"'); echo "
"; echo ""; } echo '
'; -echo '
'; +echo '
'; html_print_submit_button (__('Create message'), 'create', false, 'class="sub next"'); echo "
"; echo ""; diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index 5b6048d6c2..7685dd8e4f 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -147,14 +147,22 @@ if ($view_graph) { __('Custom graphs') . " - " . $graph['name'], "images/chart.png", false, "", false, $options); - echo ""; - echo "
"; - custom_graphs_print($id_graph, $height, $width, $period, $stacked, - false, $unixdate); - echo "
"; + $graph_return = custom_graphs_print($id_graph, $height, $width, $period, $stacked, + true, $unixdate); + + if ($graph_return){ + echo ""; + echo "
"; + echo $graph_return; + echo "
"; + } + else { + ui_print_info_message ( array ( 'no_close' => true, 'message' => __('No data.') ) ); + } + $period_label = human_time_description_raw ($period); echo "
"; - echo ""; + echo "
"; echo ""; echo "
"; diff --git a/pandora_console/operation/servers/recon_view.php b/pandora_console/operation/servers/recon_view.php index 4a5b089b4c..1752e190ec 100644 --- a/pandora_console/operation/servers/recon_view.php +++ b/pandora_console/operation/servers/recon_view.php @@ -76,38 +76,38 @@ else { $table->cellpadding = 4; $table->cellspacing = 4; - $table->width = "99%"; - $table->class = "databox"; + $table->width = "100%"; + $table->class = "databox data"; $table->head = array (); $table->data = array (); $table->align = array (); $table->head[0] = __('Force'); - $table->align[0] = "center"; + $table->align[0] = "left"; $table->head[1] = __('Task name'); - $table->align[1] = "center"; + $table->align[1] = "left"; $table->head[2] = __('Interval'); - $table->align[2] = "center"; + $table->align[2] = "left"; $table->head[3] = __('Network'); - $table->align[3] = "center"; + $table->align[3] = "left"; $table->head[4] = __('Status'); - $table->align[4] = "center"; + $table->align[4] = "left"; $table->head[5] = __('Template'); - $table->align[5] = "center"; + $table->align[5] = "left"; $table->head[6] = __('Progress'); - $table->align[6] = "center"; + $table->align[6] = "left"; $table->head[7] = __('Updated at'); - $table->align[7] = "center"; + $table->align[7] = "left"; $table->head[8] = __('Edit'); - $table->align[8] = "center"; + $table->align[8] = "left"; foreach ($recon_tasks as $task) { $data = array (); diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index b7df07dfe2..7809dc14f3 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -180,10 +180,10 @@ if ($status != -1) { } $jump = "
"; $table->id = 'user_form'; -$table->width = '98%'; +$table->width = '100%'; $table->cellspacing = 4; $table->cellpadding = 4; -$table->class = 'vertical_fields'; +$table->class = 'databox filters'; if (defined('METACONSOLE')) { $jump = "  "; $table->width = '100%'; @@ -396,7 +396,8 @@ unset($table); if (!defined('METACONSOLE')) echo '

'.__('Profiles/Groups assigned to this user').'

'; -$table->width = '98%'; +$table->width = '100%'; +$table->class = 'databox data'; if (defined('METACONSOLE')) { echo '
'; $table->width = '100%'; @@ -417,7 +418,7 @@ $table->head[0] = __('Profile name'); $table->head[1] = __('Group'); $table->head[2] = __('Tags'); $table->align = array(); -$table->align[1] = 'center'; +$table->align[1] = 'left'; $table->data = array (); diff --git a/pandora_console/operation/users/webchat.php b/pandora_console/operation/users/webchat.php index 62dc70158f..cf30096cd8 100644 --- a/pandora_console/operation/users/webchat.php +++ b/pandora_console/operation/users/webchat.php @@ -73,6 +73,7 @@ ui_print_page_header (__('Webchat'), "images/comments.png", false, "", false, "" $table = null; $table->width = '100%'; +$table->class = 'databox filters'; $table->style[0][1] = 'text-align: right; vertical-align: top;'; $table->data[0][0] = '
'; -$table->data[1][0] = html_print_input_text('message_box', '', '', + overflow: auto; padding-right: 10px;">'; +$table->data[1][0] = "" . __('Message') . "   " . html_print_input_text('message_box', '', '', 100, 150, true); -$table->data[1][1] = html_print_button(__('Send message'), 'send', false, 'send_message()', - 'class="sub next" style="width: 100%"', true); - html_print_table($table); + +echo "
" . html_print_button(__('Send message'), 'send', false, 'send_message()', + 'class="sub next" style="float:right"', true) . "
"; + ?>