From 65f72665ad4c6e97191a82849abd1b6801c2c0a6 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 6 Sep 2024 14:18:00 -0400 Subject: [PATCH] Update All Assets Report to be more like client assets --- report_all_assets_by_client.php | 76 --- ...rt_all_assets_by_client_custom_columns.php | 98 --- report_assets.php | 576 ++++++++++++++++++ reports_side_nav.php | 4 +- 4 files changed, 578 insertions(+), 176 deletions(-) delete mode 100644 report_all_assets_by_client.php delete mode 100644 report_all_assets_by_client_custom_columns.php create mode 100644 report_assets.php diff --git a/report_all_assets_by_client.php b/report_all_assets_by_client.php deleted file mode 100644 index 623af604..00000000 --- a/report_all_assets_by_client.php +++ /dev/null @@ -1,76 +0,0 @@ - - -
-
-

All Assets by Client

-
- -
-
-
-
- - - - - - - - - - - - - - - - - - -
ClientAsset NameAsset Type - Asset Status -
- - - - - - - -
-
-
-
- - - -
-
-

All Assets by Client - with custom columns

-
- -
-
-
-
- - - - " . htmlspecialchars($col) . ""; - } - ?> - - - - "; - foreach ($selected_columns as $col) { - echo ""; - } - echo ""; - } - ?> - -
" . nullable_htmlentities($row[$col]) . "
-
-
- - - - - - - - - - - - - - -
-
-
- - + +
+
+

All Assets

+
+
+
+
+
+ + +
+ +
+
+ s"> +
+ +
+
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+ "> + Archived + + +
+
+ +
+
+
+ + All Assets + + 0) { ?> + Workstations + 0) { ?> + Servers + 0) { ?> + Virtual + 0) { ?> + Network + 0) { ?> + Other + +
+
+
+
+
+
+
+
+ + "> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $contact_name"; + } else { + $contact_name_display = $contact_name; + } + + $location_name = nullable_htmlentities($row['location_name']); + if (empty($location_name)) { + $location_name = "-"; + } + $location_archived_at = nullable_htmlentities($row['location_archived_at']); + if ($location_archived_at) { + $location_name_display = "
$location_name
"; + } else { + $location_name_display = $location_name; + } + + $sql_logins = mysqli_query($mysqli, "SELECT * FROM logins WHERE login_asset_id = $asset_id"); + $login_count = mysqli_num_rows($sql_logins); + + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
NameTypeModelSerialOS + IP + + Purchase Date + + Install Date + + Warranty Expire + + Assigned To + Location + Physical Location + StatusClientAction
+
+ +
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+ 0) { ?> + + + + + + + + + +
+
+
+ +
+ +
+
+ + + +OVERVIEWS