From 3d350ba4819011daed1d9db04ecc344a417b77ca Mon Sep 17 00:00:00 2001 From: Marcos Alconada Date: Fri, 26 Mar 2021 09:32:30 +0000 Subject: [PATCH] fixed visual error --- .../agentes/status_monitor_custom_fields.php | 8 +++----- pandora_console/include/functions_reporting.php | 2 +- pandora_console/operation/agentes/tactical.php | 13 +++++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/pandora_console/godmode/agentes/status_monitor_custom_fields.php b/pandora_console/godmode/agentes/status_monitor_custom_fields.php index aadc0516bb..2b4b3d0538 100644 --- a/pandora_console/godmode/agentes/status_monitor_custom_fields.php +++ b/pandora_console/godmode/agentes/status_monitor_custom_fields.php @@ -27,8 +27,6 @@ if (! check_acl($config['id_user'], 0, 'AR') return; } - - $update = get_parameter('upd_button', ''); $default = (int) get_parameter('default', 0); @@ -49,7 +47,7 @@ if ($default != 0) { 'value' => $status_monitor_fields, ]; - // update 'status_monitor_fields' in tconfig table to keep the value at update. + // Update 'status_monitor_fields' in tconfig table to keep the value at update. $result = db_process_sql_update( 'tconfig', $values, @@ -67,7 +65,7 @@ $fields_selected = explode(',', $config['status_monitor_fields']); $result_selected = []; -// show list of fields selected. +// Show list of fields selected. if ($fields_selected[0] != '') { foreach ($fields_selected as $field_selected) { switch ($field_selected) { @@ -239,7 +237,7 @@ $(document).ready (function () { if(selected_fields_total === current_fields_size){ display_confirm_dialog( - "'.__('There must be at least one custom field. Timestamp will be set by default').''; ?>", + "'.__('There must be at least one custom field. Timestamp will be set by default').''; ?>", "", "", function () { diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index aab903a361..e0700c93e0 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -12807,7 +12807,7 @@ function reporting_get_stats_servers() $tdata[0] = html_print_image('images/database.png', true, ['title' => __('Local modules'), 'class' => 'invert_filter']); $tdata[1] = ''.format_numeric($server_performance['total_local_modules']).''; $tdata[2] = ''.format_numeric($server_performance['local_modules_rate'], 2).''; - $tdata[3] = html_print_image('images/database.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec '; + $tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec '; $table_srv->rowclass[] = ''; $table_srv->data[] = $tdata; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index edfbe50bb9..d7f668597e 100755 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -120,18 +120,23 @@ echo ''; // --------------------------------------------------------------------- // The status horizontal bars (Global health, Monitor sanity... // --------------------------------------------------------------------- +$bg_color = 'background-color: #222'; +if ($config['style'] !== 'pandora_black') { + $bg_color = 'background-color: #fff'; +} + $table = new stdClass(); $table->width = '100%'; -$table->class = 'info_table no-td-borders td-bg-white'; +$table->class = 'info_table no-td-borders'; $table->cellpadding = 2; $table->cellspacing = 2; $table->border = 0; $table->head = []; $table->data = []; -$table->style = []; +$table->style = [$bg_color]; $stats = reporting_get_stats_indicators($data, 120, 10, false); -$status = ''; +$status = '
'; foreach ($stats as $stat) { $status .= ''; } @@ -175,7 +180,7 @@ ui_toggle( echo ''; // Left column -echo '
'.$stat['title'].''.''.$stat['graph'].'
'; +echo ''; // --------------------------------------------------------------------- // Last events information