From 3fb0392d80e0b05d13b4399a7cf7985d19719d79 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 2 Jun 2022 16:47:48 +0200 Subject: [PATCH] #9040 changed table styles --- .../include/class/AgentsAlerts.class.php | 28 ++++++------------- .../include/styles/agent_alerts.css | 12 ++++---- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/pandora_console/include/class/AgentsAlerts.class.php b/pandora_console/include/class/AgentsAlerts.class.php index 00f8f334ef..798ef5ff91 100644 --- a/pandora_console/include/class/AgentsAlerts.class.php +++ b/pandora_console/include/class/AgentsAlerts.class.php @@ -245,7 +245,7 @@ class AgentsAlerts extends HTML ); $table->width = '100%'; - $table->class = 'databox data'; + $table->class = 'info_table'; $table->id = 'table_agent_module'; $table->data = []; @@ -537,7 +537,7 @@ class AgentsAlerts extends HTML 'alerts_agents' ); - echo ''; + echo '
'; echo ''; echo ''; @@ -576,10 +576,11 @@ class AgentsAlerts extends HTML 'images/arrow_left_green.png', true, [ - 'style' => 'float: right;', + 'style' => 'display:flex;justify-content: center', 'title' => __('Previous alerts'), ] ), + 'style' => 'display:flex;justify-content: center', ] ); echo ''; @@ -612,9 +613,9 @@ class AgentsAlerts extends HTML $outputLine = html_print_div( [ 'id' => 'line_header_'.$id, - 'class' => 'rotate_text_module position_text_module', + 'class' => 'position_text_module', 'style' => '', - 'content' => '
'.ui_print_truncate_text(io_safe_output($name), 20).'
', + 'content' => '
'.ui_print_truncate_text(io_safe_output($name), 20).'
', ], true ); @@ -657,7 +658,7 @@ class AgentsAlerts extends HTML $alias = db_get_row('tagente', 'id_agente', $agent['id_agente']); echo ''; // Name of the agent. - echo ''; + echo ''; // Alerts of the agent. foreach ($templates as $tid => $tname) { $anyfired = 0; @@ -669,18 +670,6 @@ class AgentsAlerts extends HTML echo '
'.__('Agents').' / '.__('Alerts').'
'.$alias['alias'].''.$alias['alias'].''; if (isset($agent_alerts[$alias['alias']][$tid])) { - foreach ($agent_alerts[$alias['alias']][$tid] as $alert) { - if ((int) $alert['times_fired'] > 0) { - $anyfired = true; - } - } - - if ($anyfired) { - $cellstyle = 'background:'.COL_ALERTFIRED.';'; - } else { - $cellstyle = 'background:'.COL_NORMAL.';'; - } - $uniqid = uniqid(); html_print_anchor( @@ -689,8 +678,7 @@ class AgentsAlerts extends HTML 'content' => html_print_div( [ 'id' => 'line_header_'.$temp['id'], - 'class' => 'status_rounded_rectangles text_inside', - 'style' => $cellstyle, + 'style' => 'font-size: 13pt;', 'content' => count($agent_alerts[$alias['alias']][$tid]), ], true diff --git a/pandora_console/include/styles/agent_alerts.css b/pandora_console/include/styles/agent_alerts.css index 8726228b33..5db60dd5cf 100644 --- a/pandora_console/include/styles/agent_alerts.css +++ b/pandora_console/include/styles/agent_alerts.css @@ -5,18 +5,18 @@ table-layout: fixed; } -.agents_modules_table .next_previous_step { +.next_previous_step { width: 0.1%; } -.agents_modules_table .header_table_principal_cell { - text-align: right !important; +.header_table_principal_cell { + text-align: left !important; padding-right: 13px; - width: 20%; + width: 5%; } -.agents_modules_table .header_table_caption_cell { - height: 200px; +.header_table_caption_cell { + text-align: center !important; } .agents_modules_table .position_text_module {