Updated alert-log table to use new header, also fixed sorting on time logged column

This commit is contained in:
laf
2015-04-04 00:54:50 +01:00
parent 76c20925f7
commit cf0ab45351
2 changed files with 27 additions and 26 deletions

View File

@@ -66,7 +66,7 @@ foreach (dbFetchRows($sql,$param) as $alertlog) {
$glyph_color = 'khaki';
$text = 'Better';
}
$response[] = array('humandate'=>$alertlog['humandate'],
$response[] = array('time_logged'=>$alertlog['humandate'],
'hostname'=>generate_device_link($dev, shorthost($dev['hostname'])),
'alert'=>htmlspecialchars($alertlog['alert']),
'status'=>"<b><span class='glyphicon glyphicon-".$glyph_icon."' style='color:".$glyph_color."'></span> $text</b>");