From 1130c17196b979fbe83f9f7ac1a73bdbf7d7d1c0 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 6 Sep 2024 13:26:17 -0400 Subject: [PATCH] Added purchase date, warranty expire to show addiitonal columns in client assets --- client_assets.php | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/client_assets.php b/client_assets.php index c768ef71..6a04e080 100644 --- a/client_assets.php +++ b/client_assets.php @@ -159,10 +159,16 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); >IP + + @@ -267,18 +273,28 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); IP - + + + Purchase Date + + + Install Date + + + Warranty Expire + + Assigned To Location - + Physical Location @@ -327,7 +343,17 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $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']); + if ($asset_purchase_date) { + $asset_purchase_date_display = $asset_purchase_date; + } else { + $asset_purchase_date_display = "-"; + } $asset_warranty_expire = nullable_htmlentities($row['asset_warranty_expire']); + if ($asset_warranty_expire) { + $asset_warranty_expire_display = $asset_warranty_expire; + } else { + $asset_warranty_expire_display = "-"; + } $asset_install_date = nullable_htmlentities($row['asset_install_date']); if ($asset_install_date) { $asset_install_date_display = $asset_install_date; @@ -417,14 +443,20 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - + + + + + + + - +