Fix Archive Taxes

This commit is contained in:
johnnyq
2025-01-18 16:48:39 -05:00
parent 5382676fc1
commit 22e9699b20
2 changed files with 11 additions and 7 deletions

View File

@@ -128,12 +128,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if ($rack_photo) { ?> <?php if ($rack_photo) { ?>
<img class="img-thumbnail mb-3" alt="rack_photo" src="<?php echo "uploads/clients/$client_id/$rack_photo"; ?>"> <img class="img-thumbnail mb-3" alt="rack_photo" src="<?php echo "uploads/clients/$client_id/$rack_photo"; ?>">
<?php } ?> <?php } ?>
<table class="table table-sm table-borderless"> <table class="table table-sm table-borderless border">
<tbody> <tbody>
<?php if ($rack_description) { ?> <?php if ($rack_description) { ?>
<tr> <tr>
<th>Description</th> <th colspan="2">Description</th>
<td><?php echo $rack_description; ?></td> </tr>
<tr>
<td colspan="2"><?php echo $rack_description; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if ($rack_type) { ?> <?php if ($rack_type) { ?>
@@ -168,7 +170,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } ?> <?php } ?>
<?php if ($rack_notes) { ?> <?php if ($rack_notes) { ?>
<tr> <tr>
<th>Notes</th> <th colspan="2">Notes</th>
</tr>
<tr>
<td><?php echo $rack_notes; ?></td> <td><?php echo $rack_notes; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
@@ -177,9 +181,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<table class="table table-sm border"> <table class="table table-sm border">
<thead> <thead class="thead-dark">
<tr> <tr>
<th class="text-center bg-light px-0 border">U</th> <th class="text-center px-0">U</th>
<th class="text-center">Device</th> <th class="text-center">Device</th>
<th class=""></th> <th class=""></th>
</tr> </tr>

View File

@@ -48,7 +48,7 @@ if (isset($_GET['archive_tax'])) {
$tax_id = intval($_GET['archive_tax']); $tax_id = intval($_GET['archive_tax']);
// Get Tax Name for logging // Get Tax Name for logging
$sql = mysqli_query($mysqli,"SELECT tax_name FROM taxs WHERE tax_id = $tax_id"); $sql = mysqli_query($mysqli,"SELECT tax_name FROM taxes WHERE tax_id = $tax_id");
$row = mysqli_fetch_array($sql); $row = mysqli_fetch_array($sql);
$tax_name = sanitizeInput($row['tax_name']); $tax_name = sanitizeInput($row['tax_name']);