Added - filler to blank fields in all data listing, some other fixups of required fields etc

This commit is contained in:
johnnyq
2021-08-19 01:48:19 -04:00
parent 1dc66433ef
commit bf69d02cba
24 changed files with 177 additions and 52 deletions

View File

@@ -89,6 +89,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
$product_id = $row['product_id'];
$product_name = $row['product_name'];
$product_description = $row['product_description'];
if(empty($product_description)){
$product_description_display = "-";
}else{
$product_description_display = $product_description;
}
$product_cost = $row['product_cost'];
$product_created_at = $row['product_created_at'];
$category_id = $row['category_id'];
@@ -99,7 +104,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
<tr>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editProductModal<?php echo $product_id; ?>"><?php echo $product_name; ?></a></td>
<td><?php echo $category_name; ?></td>
<td><?php echo $product_description; ?></td>
<td><?php echo $product_description_display; ?></td>
<td class="text-right">$<?php echo number_format($product_cost,2); ?></td>
<td>
<div class="dropdown dropleft text-center">