From 1deba6eac5e986ac5309af4208e5f9f6b2cb37d8 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 27 Jan 2024 01:41:25 -0500 Subject: [PATCH] Added Bulk Assign Location to Assets --- client_asset_bulk_assign_location_modal.php | 43 ++ client_assets.php | 452 +++++++++++--------- client_contacts.php | 8 +- post/asset.php | 39 ++ scheduled_tickets.php | 14 +- tickets.php | 8 +- 6 files changed, 335 insertions(+), 229 deletions(-) create mode 100644 client_asset_bulk_assign_location_modal.php diff --git a/client_asset_bulk_assign_location_modal.php b/client_asset_bulk_assign_location_modal.php new file mode 100644 index 00000000..a5ad9f8c --- /dev/null +++ b/client_asset_bulk_assign_location_modal.php @@ -0,0 +1,43 @@ + \ No newline at end of file diff --git a/client_assets.php b/client_assets.php index a710ff78..31b3a2c9 100644 --- a/client_assets.php +++ b/client_assets.php @@ -139,252 +139,276 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Archived +
-
- - "> - - - - - - - - - - - - - - - - - - - - - - - "; - } - $asset_nat_ip = nullable_htmlentities($row['asset_nat_ip']); - $asset_mac = nullable_htmlentities($row['asset_mac']); - $asset_uri = nullable_htmlentities($row['asset_uri']); - $asset_uri_2 = nullable_htmlentities($row['asset_uri_2']); - $asset_status = nullable_htmlentities($row['asset_status']); - $asset_purchase_date = nullable_htmlentities($row['asset_purchase_date']); - $asset_warranty_expire = nullable_htmlentities($row['asset_warranty_expire']); - $asset_install_date = nullable_htmlentities($row['asset_install_date']); - if (empty($asset_install_date)) { - $asset_install_date_display = "-"; - } else { - $asset_install_date_display = $asset_install_date; - } - $asset_notes = nullable_htmlentities($row['asset_notes']); - $asset_created_at = nullable_htmlentities($row['asset_created_at']); - $asset_vendor_id = intval($row['asset_vendor_id']); - $asset_location_id = intval($row['asset_location_id']); - $asset_contact_id = intval($row['asset_contact_id']); - $asset_network_id = intval($row['asset_network_id']); - - $device_icon = getAssetIcon($asset_type); - - $contact_name = nullable_htmlentities($row['contact_name']); - if (empty($contact_name)) { - $contact_name = "-"; - } - $contact_archived_at = nullable_htmlentities($row['contact_archived_at']); - if (empty($contact_archived_at)) { - $contact_archived_display = ""; - } else { - $contact_archived_display = "Archived - "; - } - - $location_name = nullable_htmlentities($row['location_name']); - if (empty($location_name)) { - $location_name = "-"; - } - $location_archived_at = nullable_htmlentities($row['location_archived_at']); - if (empty($location_archived_at)) { - $location_archived_display = ""; - } else { - $location_archived_display = "Archived - "; - } - - $login_id = intval($row['login_id']); - $login_username = nullable_htmlentities(decryptLoginEntry($row['login_username'])); - $login_password = nullable_htmlentities(decryptLoginEntry($row['login_password'])); - - ?> + +
+
Name / DescriptionTypeMake / ModelSerial NumberOperating SystemIPInstall DateAssigned ToLocationStatusAction
+ "> - + + + + + + + + + + + + + + + + + + + + + + " tabindex="-1"> - + + + + -
- -
- - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + - ?> - - -
- - - - - - 0) { - ?> - + +
+ +
+
Name / DescriptionTypeMake / ModelSerial NumberOperating SystemIPInstall DateAssigned ToLocationStatusAction
+
+ +
+
+ + + + + + 0) { + ?> + + + + +
+ +
+
- -
- +
-
-
- + + + + + + + + Archived -