From dbf0107827c0fe5f9b9d30c9f9038f2542a568b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Tue, 3 Mar 2015 19:25:20 +0100 Subject: [PATCH] Update print-alerts.inc.php - Changed using lafwoods suggested changes. --- html/includes/print-alerts.inc.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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("");