From db590f23677236e6af604d7c4202bd559fb62ec8 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Wed, 21 Jun 2023 10:08:29 +0200 Subject: [PATCH] #11583 Icons in event view for reports have been adjusted. --- pandora_console/include/functions_events.php | 41 +++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 0fe3e3551c..2e499cfeca 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2679,7 +2679,7 @@ function events_print_type_img( case 'going_down_critical': case 'going_up_critical': // This is to be backwards compatible. - $style .= ' event_module_background_state icon_background_critical'; + $icon = 'images/module_critical.png'; break; case 'going_up_normal': @@ -2731,23 +2731,24 @@ function events_print_type_img( if ($only_url) { $output = $urlImage.'/'.$icon; } else { - $output .= html_print_div( - [ - 'title' => events_print_type_description($type, true), - 'class' => $style, - 'style' => ((empty($icon) === false) ? 'background-image: url('.$icon.'); background-repeat: no-repeat;' : ''), - ], - true - ); /* - $output .= html_print_image( + $output .= html_print_div( + [ + 'title' => events_print_type_description($type, true), + 'class' => $style, + 'style' => ((empty($icon) === false) ? 'background-image: url('.$icon.'); background-repeat: no-repeat;' : ''), + ], + true + ); + */ + $output .= html_print_image( $icon, true, [ 'title' => events_print_type_description($type, true), 'class' => $style, ] - );*/ + ); } if ($return) { @@ -2850,13 +2851,13 @@ function events_print_type_img_pdf( break; case 'new_agent': - $svg = ' + $svg = ' Dark / 20 / agents@svg Created with Sketch. - - + + '; @@ -2874,6 +2875,18 @@ function events_print_type_img_pdf( break; case 'unknown': + break; + + case 'alert_fired': + $svg = ' + Dark / 20 / alert@svg + Created with Sketch. + + + + '; + break; + default: $svg = ' Dark / 20 / event@svg