diff --git a/app/pages/logs.php b/app/pages/logs.php
index 8c6a21a..a2c2d26 100644
--- a/app/pages/logs.php
+++ b/app/pages/logs.php
@@ -3,8 +3,9 @@
/**
* Logs listings
*
- * This page ("logs") retrieves and displays logs for a specified user within a time range.
- * It supports pagination and filtering, and generates a widget to display the logs.
+ * This page ("logs") retrieves and displays logs within a time range
+ * either for a specified user or for all users.
+ * It supports pagination and filtering.
*/
// Get any new messages
@@ -103,22 +104,9 @@ if (!empty($search)) {
}
}
-// prepare the widget
-$widget['full'] = false;
-$widget['name'] = 'Logs';
$username = $userObject->getUserDetails($user_id)[0]['username'];
-$widget['title'] = "Log events";
-$widget['filter'] = true;
-$widget['scope'] = $scope;
-$widget['has_system_access'] = $has_system_access;
-if (!empty($logs['records'])) {
- $widget['full'] = true;
- $widget['table_records'] = $logs['records'];
-}
-$widget['pagination'] = true;
-
-// display the widget
-include '../app/templates/logs-list.php';
+// Load the template
+include '../app/templates/logs.php';
?>
diff --git a/app/templates/logs-filter.php b/app/templates/logs-filter.php
deleted file mode 100644
index b9c13ab..0000000
--- a/app/templates/logs-filter.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
diff --git a/app/templates/logs-list.php b/app/templates/logs-list.php
deleted file mode 100644
index 6ffa5fc..0000000
--- a/app/templates/logs-list.php
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
= htmlspecialchars($widget['title']) ?>
-
-
-
-
-
-
-
-
-
-
diff --git a/app/templates/logs.php b/app/templates/logs.php
new file mode 100644
index 0000000..1f103a2
--- /dev/null
+++ b/app/templates/logs.php
@@ -0,0 +1,108 @@
+
+
+
+
+
+
Log events
+
+
+
+
+
+
+
+
+
+
+
+ Time period: = htmlspecialchars($from_time) ?> - = htmlspecialchars($until_time) ?>
+
+
+
+
+
+
+
+
+
+ Username (id) |
+
+ Time |
+ Log message |
+
+
+
+
+
+
+ = htmlspecialchars($row['username']) ?> (= htmlspecialchars($row['userID']) ?>) |
+
+ = date('d M Y H:i', strtotime($row['time'])) ?> |
+ = htmlspecialchars($row['log message']) ?> |
+
+
+
+
+
+
+
+
+ No log entries found for the specified criteria.
+
+
+
+
+
+
+