From cf0ab4535161353a59c7346270ec628a8b0ad88c Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 4 Apr 2015 00:54:50 +0100 Subject: [PATCH] Updated alert-log table to use new header, also fixed sorting on time logged column --- html/includes/table/alertlog.inc.php | 2 +- html/pages/alert-log.inc.php | 51 ++++++++++++++-------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/html/includes/table/alertlog.inc.php b/html/includes/table/alertlog.inc.php index 46e12efa77..d707d9fd14 100644 --- a/html/includes/table/alertlog.inc.php +++ b/html/includes/table/alertlog.inc.php @@ -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'=>" $text"); diff --git a/html/pages/alert-log.inc.php b/html/pages/alert-log.inc.php index 6dcb128bc5..0d67679dc4 100644 --- a/html/pages/alert-log.inc.php +++ b/html/pages/alert-log.inc.php @@ -2,31 +2,7 @@ $param = array(); $pagetitle[] = "Alert Log"; -print_optionbar_start(); -?> -
-
- - -
- -
- -
@@ -44,7 +20,7 @@ print_optionbar_end(); - + @@ -57,6 +33,31 @@ print_optionbar_end(); var grid = $("#alertlog").bootgrid({ ajax: true, + templates: { + header: "
"+ + "
"+ + "
"+ + "
"+ + ""+ + ""+ + "
"+ + ""+ + "
"+ + "

" + }, post: function () { return {
Time loggedTime logged Device alert Status