diff --git a/client_asset_details.php b/client_asset_details.php index e81c7ffd5..a8390d46c 100644 --- a/client_asset_details.php +++ b/client_asset_details.php @@ -79,6 +79,7 @@ ); $document_count = mysqli_num_rows($sql_related_documents); + // Related Files $sql_related_files = mysqli_query($mysqli, "SELECT * FROM asset_files LEFT JOIN files ON asset_files.file_id = files.file_id @@ -86,7 +87,19 @@ AND file_archived_at IS NULL ORDER BY file_name DESC" ); - $file_count = mysqli_num_rows($sql_related_files); + $files_count = mysqli_num_rows($sql_related_files); + // View Mode -- 0 List, 1 Thumbnail + if (!empty($_GET['view'])) { + $view = intval($_GET['view']); + } else { + $view = 0; + } + if ($view == 1) { + $query_images = "AND (file_ext LIKE 'JPG' OR file_ext LIKE 'jpg' OR file_ext LIKE 'JPEG' OR file_ext LIKE 'jpeg' OR file_ext LIKE 'png' OR file_ext LIKE 'PNG' OR file_ext LIKE 'webp' OR file_ext LIKE 'WEBP')"; + } else { + $query_images = ''; + } + // Related Logins Query $sql_related_logins = mysqli_query($mysqli, "SELECT * FROM logins @@ -108,6 +121,8 @@ $software_count = mysqli_num_rows($sql_related_software); + + ?>
@@ -327,7 +342,7 @@
- +
">

Licenses

@@ -403,6 +418,87 @@
+
"> +
+

Files

+
+ + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + +
NameUploaded
" target="_blank" >$file_description"; ?>
+
+
+
+
">

Tickets