From 090734d622b8693ca21ff7ebc28b9288436579d7 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 2 Feb 2023 16:28:13 +0000 Subject: [PATCH] General tidy --- client_assets.php | 68 +++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/client_assets.php b/client_assets.php index 7efb34bf..91977480 100644 --- a/client_assets.php +++ b/client_assets.php @@ -1,4 +1,4 @@ -

Assets

- +
@@ -84,7 +84,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- s"> + s">
@@ -92,30 +92,30 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -169,19 +169,19 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $asset_serial = htmlentities($row['asset_serial']); if (empty($asset_serial)) { $asset_serial_display = "-"; - }else{ + } else { $asset_serial_display = $asset_serial; } $asset_os = htmlentities($row['asset_os']); if (empty($asset_os)) { $asset_os_display = "-"; - }else{ + } else { $asset_os_display = $asset_os; } $asset_ip = htmlentities($row['asset_ip']); if (empty($asset_ip)) { $asset_ip_display = "-"; - }else{ + } else { $asset_ip_display = "$asset_ip"; } $asset_mac = htmlentities($row['asset_mac']); @@ -191,7 +191,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $asset_install_date = $row['asset_install_date']; if (empty($asset_install_date)) { $asset_install_date_display = "-"; - }else{ + } else { $asset_install_date_display = $asset_install_date; } $asset_notes = htmlentities($row['asset_notes']); @@ -203,29 +203,29 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); if ($asset_type == 'Laptop') { $device_icon = "laptop"; - }elseif ($asset_type == 'Desktop') { + } elseif ($asset_type == 'Desktop') { $device_icon = "desktop"; - }elseif ($asset_type == 'Server') { + } elseif ($asset_type == 'Server') { $device_icon = "server"; - }elseif ($asset_type == 'Printer') { + } elseif ($asset_type == 'Printer') { $device_icon = "print"; - }elseif ($asset_type == 'Camera') { + } elseif ($asset_type == 'Camera') { $device_icon = "video"; - }elseif ($asset_type == 'Switch' || $asset_type == 'Firewall/Router') { + } elseif ($asset_type == 'Switch' || $asset_type == 'Firewall/Router') { $device_icon = "network-wired"; - }elseif ($asset_type == 'Access Point') { + } elseif ($asset_type == 'Access Point') { $device_icon = "wifi"; - }elseif ($asset_type == 'Phone') { + } elseif ($asset_type == 'Phone') { $device_icon = "phone"; - }elseif ($asset_type == 'Mobile Phone') { + } elseif ($asset_type == 'Mobile Phone') { $device_icon = "mobile-alt"; - }elseif ($asset_type == 'Tablet') { + } elseif ($asset_type == 'Tablet') { $device_icon = "tablet-alt"; - }elseif ($asset_type == 'TV') { + } elseif ($asset_type == 'TV') { $device_icon = "tv"; - }elseif ($asset_type == 'Virtual Machine') { + } elseif ($asset_type == 'Virtual Machine') { $device_icon = "cloud"; - }else{ + } else { $device_icon = "tag"; } @@ -345,10 +345,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); @@ -356,13 +356,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
- - +require_once("client_asset_add_modal.php"); +require_once("client_asset_import_modal.php"); +require_once include("footer.php");