From cf535372f54f4faf8fe1d4caf04036fb4fcb42ed Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 6 Sep 2024 15:55:55 -0400 Subject: [PATCH] Show most recent activity first in client overview --- client_overview.php | 84 ++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/client_overview.php b/client_overview.php index 007100fc..d5e0f153 100644 --- a/client_overview.php +++ b/client_overview.php @@ -9,7 +9,7 @@ $sql_recent_activities = mysqli_query( $mysqli, "SELECT * FROM logs WHERE log_client_id = $client_id - ORDER BY log_created_at ASC + ORDER BY log_created_at DESC LIMIT 5" ); @@ -214,57 +214,55 @@ $sql_asset_retired = mysqli_query( - - 0) { ?> +
-
+ 0) { ?> +
+
+
Important Contacts
+
+
+ + -
-
Important Contacts
-
-
-
- - - - - - + + + + + -
- -
- -
- - $contact_phone $contact_extension"; ?> - - -
-
- -
+ +
+ +
+ + $contact_phone $contact_extension"; ?> + + +
+
+ +
-
+
+ - +
0) { ?> @@ -663,6 +661,8 @@ $sql_asset_retired = mysqli_query( + +