diff --git a/html/includes/table/alertlog.inc.php b/html/includes/table/alertlog.inc.php index 8b4d94d3e2..bbc1df9e8a 100644 --- a/html/includes/table/alertlog.inc.php +++ b/html/includes/table/alertlog.inc.php @@ -7,6 +7,11 @@ if (is_numeric($_POST['device_id'])) { $param[] = $_POST['device_id']; } +if ($_POST['state'] >= 0) { + $where .= ' AND `E`.`state` = ?'; + $param[] = mres($_POST['state']); +} + if ($_SESSION['userlevel'] >= '5') { $sql = " FROM `alert_log` AS E LEFT JOIN devices AS D ON E.device_id=D.device_id RIGHT JOIN alert_rules AS R ON E.rule_id=R.id WHERE $where"; } diff --git a/html/pages/alert-log.inc.php b/html/pages/alert-log.inc.php index 752be46cef..4a2655d16b 100644 --- a/html/pages/alert-log.inc.php +++ b/html/pages/alert-log.inc.php @@ -59,6 +59,16 @@ foreach (get_all_devices() as $hostname) { } } ?> + ""+ + ""+ + "
"+ + ""+ + ""+ "
"+ ""+ @@ -69,7 +79,8 @@ foreach (get_all_devices() as $hostname) { { return { id: "alertlog", - device_id: '' + device_id: '', + state: '' }; }, url: "ajax_table.php"