From 6d4584be90f953c9d01441c8c6a8a715ce6159e3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 6 Jan 2024 14:27:21 -0500 Subject: [PATCH] Remove Asset Tickets Modal, Related Documents and Files as this can be viewed in Asset Details Page --- client_asset_tickets_modal.php | 35 ---------------------------------- client_assets.php | 27 -------------------------- 2 files changed, 62 deletions(-) delete mode 100644 client_asset_tickets_modal.php diff --git a/client_asset_tickets_modal.php b/client_asset_tickets_modal.php deleted file mode 100644 index 70ce1b9b..00000000 --- a/client_asset_tickets_modal.php +++ /dev/null @@ -1,35 +0,0 @@ - diff --git a/client_assets.php b/client_assets.php index 7786a693..de8fd60a 100644 --- a/client_assets.php +++ b/client_assets.php @@ -6,7 +6,6 @@ $order = "ASC"; require_once "inc_all_client.php"; - //Get Asset Counts //All Asset Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT(*) AS count FROM assets WHERE asset_archived_at IS NULL AND asset_client_id = $client_id")); @@ -52,7 +51,6 @@ if (isset($_GET['type']) && ($_GET['type']) == 'workstation') { $_GET['type'] = ''; } -//Rebuild URL //Rebuild URL $url_query_strings_sort = http_build_query($get_copy); @@ -254,19 +252,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $login_username = nullable_htmlentities(decryptLoginEntry($row['login_username'])); $login_password = nullable_htmlentities(decryptLoginEntry($row['login_password'])); - // Related tickets - $sql_tickets = mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_asset_id = $asset_id ORDER BY ticket_number DESC"); - $ticket_count = mysqli_num_rows($sql_tickets); - - // Related Documents - $sql_related_documents = mysqli_query($mysqli, "SELECT * FROM documents, asset_documents WHERE documents.document_id = asset_documents.document_id AND document_archived_at IS NULL AND asset_documents.asset_id = $asset_id ORDER BY documents.document_name DESC"); - $document_count = mysqli_num_rows($sql_related_documents); - - - // Related File - $sql_related_files = mysqli_query($mysqli, "SELECT * FROM files, asset_files WHERE files.file_id = asset_files.file_id AND asset_files.asset_id = $asset_id ORDER BY files.file_name DESC"); - $file_count = mysqli_num_rows($sql_related_files); - ?> @@ -356,16 +341,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Copy - 0) { ?> - - Documents () - - - 0) { ?> - - Tickets () - - @@ -386,8 +361,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); require "client_asset_copy_modal.php"; - require "client_asset_tickets_modal.php"; - //require "client_asset_interface_add_modal.php"; }