diff --git a/html/includes/common/eventlog.inc.php b/html/includes/common/eventlog.inc.php index 9cce9daca7..91a1fd8b1f 100644 --- a/html/includes/common/eventlog.inc.php +++ b/html/includes/common/eventlog.inc.php @@ -20,6 +20,8 @@ var grid = $("#eventlog").bootgrid({ { return { id: "eventlog", + device: "' .mres($vars['device']) .'", + type: "' .mres($vars['type']) .'", }; }, url: "/ajax_table.php" diff --git a/html/includes/table/eventlog.inc.php b/html/includes/table/eventlog.inc.php index 9cae422965..797b71d777 100644 --- a/html/includes/table/eventlog.inc.php +++ b/html/includes/table/eventlog.inc.php @@ -7,6 +7,11 @@ if (is_numeric($_POST['device'])) { $param[] = $_POST['device']; } +if (!empty($_POST['type'])) { + $where .= ' AND `E`.`type` = ?'; + $param[] = $_POST['type']; +} + if ($_POST['string']) { $where .= ' AND E.message LIKE ?'; $param[] = '%'.$_POST['string'].'%'; @@ -54,7 +59,7 @@ foreach (dbFetchRows($sql, $param) as $eventlog) { $type = ''.generate_port_link($this_if, makeshortif(strtolower($this_if['label']))).''; } else { - $type = 'System'; + $type = $eventlog['type'];; } $response[] = array( diff --git a/html/pages/eventlog.inc.php b/html/pages/eventlog.inc.php index f33a2cb888..b2b5d7425b 100644 --- a/html/pages/eventlog.inc.php +++ b/html/pages/eventlog.inc.php @@ -37,6 +37,25 @@ print_optionbar_start(); ?> +