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 '
'.__('Agents').' / '.__('Alerts').' | '; @@ -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' => '||
---|---|---|
'.$alias['alias'].' | '; + echo ''.$alias['alias'].' | '; // Alerts of the agent. foreach ($templates as $tid => $tname) { $anyfired = 0; @@ -669,18 +670,6 @@ class AgentsAlerts extends HTML echo ''; 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 { |