From 45a4e981a3526a26eb46549b64f4ceb3f8830751 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 5 Feb 2022 17:07:47 -0500 Subject: [PATCH] Added Client Logs to client nav --- client_logs.php | 132 ++++++++++++++++++++++++++++++++++++++++++++ client_routes.php | 3 + client_side_nav.php | 9 +++ 3 files changed, 144 insertions(+) create mode 100644 client_logs.php diff --git a/client_logs.php b/client_logs.php new file mode 100644 index 00000000..f0153d35 --- /dev/null +++ b/client_logs.php @@ -0,0 +1,132 @@ + $sb, 'o' => $o))); + +$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM logs + LEFT JOIN users ON log_user_id = user_id + WHERE (log_type LIKE '%$q%' OR log_action LIKE '%$q%' OR log_description LIKE '%$q%' OR log_ip LIKE '%$q%' OR log_user_agent LIKE '%$q%' OR user_name LIKE '%$q%') + AND log_client_id = $client_id + ORDER BY $sb $o LIMIT $record_from, $record_to" +); + +$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); + +?> + +
+
+

Logs

+
+ +
+
+ + +
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+
+
+
+ + "> + + + + + + + + + + + + + + + + + + + + + + + + + + +
TimestampUserTypeActionDescriptionIP AddressUser Agent
+
+ +
+
\ No newline at end of file diff --git a/client_routes.php b/client_routes.php index 892c278e..4d32e387 100644 --- a/client_routes.php +++ b/client_routes.php @@ -61,6 +61,9 @@ if(isset($_GET['tab'])){ elseif($_GET['tab'] == "services"){ include("client_services.php"); } + elseif($_GET['tab'] == "logs"){ + include("client_logs.php"); + } } else{ include("client_overview.php"); diff --git a/client_side_nav.php b/client_side_nav.php index 44c95f34..1de14ee6 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -277,6 +277,15 @@ + + + +