diff --git a/client_vendors.php b/client_vendors.php index 429644dc..8fedb10c 100644 --- a/client_vendors.php +++ b/client_vendors.php @@ -116,8 +116,17 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Vendor + + + Description + + Contact - Website + + + Website + + Action @@ -128,17 +137,32 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $vendor_id = intval($row['vendor_id']); $vendor_name = nullable_htmlentities($row['vendor_name']); $vendor_description = nullable_htmlentities($row['vendor_description']); - $vendor_account_number = nullable_htmlentities($row['vendor_account_number']); - $vendor_contact_name = nullable_htmlentities($row['vendor_contact_name']); - if (empty($vendor_contact_name)) { - $vendor_contact_name_display = "-"; + if ($vendor_description) { + $vendor_description_display = $vendor_description; } else { + $vendor_description_display = "-"; + } + $vendor_account_number = nullable_htmlentities($row['vendor_account_number']); + if ($vendor_account_number) { + $vendor_account_number_display = "
Account #: $vendor_account_number
"; + } else { + $vendor_account_number_display = ''; + } + $vendor_contact_name = nullable_htmlentities($row['vendor_contact_name']); + if ($vendor_contact_name) { $vendor_contact_name_display = $vendor_contact_name; + } else { + $vendor_contact_name_display = "-"; } $vendor_phone = formatPhoneNumber($row['vendor_phone']); $vendor_extension = nullable_htmlentities($row['vendor_extension']); $vendor_email = nullable_htmlentities($row['vendor_email']); $vendor_website = nullable_htmlentities($row['vendor_website']); + if ($vendor_website) { + $vendor_website_display = "$vendor_website "; + } else { + $vendor_website_display = "-"; + } $vendor_hours = nullable_htmlentities($row['vendor_hours']); $vendor_sla = nullable_htmlentities($row['vendor_sla']); $vendor_code = nullable_htmlentities($row['vendor_code']); @@ -147,12 +171,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $vendor_archived_at = nullable_htmlentities($row['vendor_archived_at']); $vendor_template_id = intval($row['vendor_template_id']); - if (empty($vendor_website)) { - $vendor_website_display = "-"; - } else { - $vendor_website_display = ""; - } - + ?> @@ -166,12 +185,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
-
+
- + +