diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 86b3138469..48bdc13fc9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-09-13 Vanessa Gil + + * operation/events/events_list.php: Display instructions for + the event criticity. + 2012-09-13 Vanessa Gil * godmode/agentes/module_manager_editor_common.php diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 2bbdcdb7cf..bd38097657 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -1111,40 +1111,46 @@ foreach ($result as $event) { } $string .= ''; - - $string .= '' . '' . __('Critical instructions') . ''; - if ($event["critical_instructions"] != '') { - $string .= $event["critical_instructions"]; - $string .= ''; - $odd = ($odd == '')? 'rowOdd' : ''; - } - else { - $string .= '- ' . __('Empty') . ' -'; - } - $string .= ''; - - $string .= '' . '' . __('Warning instructions') . ''; - if ($event["warning_instructions"] != '') { - $string .= $event["warning_instructions"]; - $string .= ''; - $odd = ($odd == '')? 'rowOdd' : ''; - } - else { - $string .= '- ' . __('Empty') . ' -'; - } - $string .= ''; - - $string .= '' . '' . __('Unknown instructions') . ''; - if ($event["unknown_instructions"] != '') { - $string .= $event["unknown_instructions"]; - $string .= ''; - $odd = ($odd == '')? 'rowOdd' : ''; - } - else { - $string .= '- ' . __('Empty') . ' -'; - } - $string .= ''; + if ($event["criticity"] == 4) { + $string .= '' . '' . __('Critical instructions') . ''; + if ($event["critical_instructions"] != '') { + $string .= $event["critical_instructions"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } + else { + $string .= '- ' . __('Empty') . ' -'; + } + $string .= ''; + } + + if ($event["criticity"] == 3) { + $string .= '' . '' . __('Warning instructions') . ''; + if ($event["warning_instructions"] != '') { + $string .= $event["warning_instructions"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } + else { + $string .= '- ' . __('Empty') . ' -'; + } + $string .= ''; + } + + if ($event["criticity"] == 0) { + $string .= '' . '' . __('Unknown instructions') . ''; + if ($event["unknown_instructions"] != '') { + $string .= $event["unknown_instructions"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } + else { + $string .= '- ' . __('Empty') . ' -'; + } + $string .= ''; + } + $string .= ''; $data = array($string);