diff --git a/html/includes/print-alerts.inc.php b/html/includes/print-alerts.inc.php index e6b6ab4ec..2a6d71a47 100644 --- a/html/includes/print-alerts.inc.php +++ b/html/includes/print-alerts.inc.php @@ -19,20 +19,31 @@ echo("".htmlspecialchars($alert_entry['name']) . ""); if ($alert_state!='') { if ($alert_state=='0') { - echo(" Ok"); + $glyph_icon = 'ok'; + $glyph_color = 'green'; + $text = 'Ok'; } elseif ($alert_state=='1') { - echo(" Alert"); + $glyph_icon = 'remove'; + $glyph_color = 'red'; + $text = 'Alert'; } elseif ($alert_state=='2') { - echo(" Ack"); + $glyph_icon = 'info-sign'; + $glyph_color = 'lightgrey'; + $text = 'Ack'; } elseif ($alert_state=='3') { - echo(" Worse"); + $glyph_icon = 'arrow-down'; + $glyph_color = 'orange'; + $text = 'Worse'; } elseif ($alert_state=='4') { - echo(" Better"); + $glyph_icon = 'arrow-up'; + $glyph_color = 'khaki'; + $text = 'Better'; } + echo(" $text"); } echo("");