'.$alert_entry['time_logged'].' '; if (!isset($alert_entry['device'])) { $dev = device_by_id_cache($alert_entry['device_id']); echo ' '.generate_device_link($dev, shorthost($dev['hostname'])).' '; } echo ''.htmlspecialchars($alert_entry['name']).''; if ($alert_state != '') { if ($alert_state == '0') { $glyph_icon = 'ok'; $glyph_color = 'green'; $text = 'Ok'; } else if ($alert_state == '1') { $glyph_icon = 'remove'; $glyph_color = 'red'; $text = 'Alert'; } else if ($alert_state == '2') { $glyph_icon = 'info-sign'; $glyph_color = 'lightgrey'; $text = 'Ack'; } else if ($alert_state == '3') { $glyph_icon = 'arrow-down'; $glyph_color = 'orange'; $text = 'Worse'; } else if ($alert_state == '4') { $glyph_icon = 'arrow-up'; $glyph_color = 'khaki'; $text = 'Better'; }//end if echo " $text"; }//end if echo '';