mirror of
https://github.com/itflow-org/itflow
synced 2026-03-24 06:25:40 +00:00
Update Client Vendors to use the new media css function
This commit is contained in:
@@ -78,7 +78,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sort; ?>&sort=vendor_name&order=<?php echo $disp; ?>">Vendor</a></th>
|
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sort; ?>&sort=vendor_name&order=<?php echo $disp; ?>">Vendor</a></th>
|
||||||
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sort; ?>&sort=vendor_description&order=<?php echo $disp; ?>">Description</a></th>
|
|
||||||
<th>Contact</th>
|
<th>Contact</th>
|
||||||
<th>Website</th>
|
<th>Website</th>
|
||||||
<th class="text-center">Action</th>
|
<th class="text-center">Action</th>
|
||||||
@@ -91,11 +90,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$vendor_id = intval($row['vendor_id']);
|
$vendor_id = intval($row['vendor_id']);
|
||||||
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
||||||
$vendor_description = nullable_htmlentities($row['vendor_description']);
|
$vendor_description = nullable_htmlentities($row['vendor_description']);
|
||||||
if (empty($vendor_description)) {
|
|
||||||
$vendor_description_display = "-";
|
|
||||||
} else {
|
|
||||||
$vendor_description_display = $vendor_description;
|
|
||||||
}
|
|
||||||
$vendor_account_number = nullable_htmlentities($row['vendor_account_number']);
|
$vendor_account_number = nullable_htmlentities($row['vendor_account_number']);
|
||||||
$vendor_contact_name = nullable_htmlentities($row['vendor_contact_name']);
|
$vendor_contact_name = nullable_htmlentities($row['vendor_contact_name']);
|
||||||
if (empty($vendor_contact_name)) {
|
if (empty($vendor_contact_name)) {
|
||||||
@@ -121,16 +115,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td>
|
||||||
<i class="fa fa-fw fa-building text-secondary"></i>
|
<a class="text-dark" href="#" data-toggle="modal" data-target="#editVendorModal<?php echo $vendor_id; ?>">
|
||||||
<a class="text-dark" href="#" data-toggle="modal" data-target="#editVendorModal<?php echo $vendor_id; ?>"><?php echo $vendor_name; ?></a>
|
<div class="media">
|
||||||
<?php
|
<i class="fa fa-fw fa-2x fa-building mr-3"></i>
|
||||||
if (!empty($vendor_account_number)) { ?>
|
<div class="media-body">
|
||||||
<br>
|
<div><?php echo $vendor_name; ?></div>
|
||||||
<small class="text-secondary"><?php echo $vendor_account_number; ?></small>
|
<div><small class="text-secondary"><?php echo $vendor_description; ?></small></div>
|
||||||
<?php } ?>
|
</div>
|
||||||
</th>
|
</div>
|
||||||
<td><?php echo $vendor_description_display; ?></td>
|
</a>
|
||||||
|
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if (!empty($vendor_contact_name)) { ?>
|
if (!empty($vendor_contact_name)) { ?>
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
<div class="tab-pane fade" id="pills-notes">
|
<div class="tab-pane fade" id="pills-notes">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<textarea class="form-control" rows="8" placeholder="Enter some notes" name="notes"></textarea>
|
<textarea class="form-control" rows="12" placeholder="Enter some notes" name="notes"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
<div class="tab-pane fade" id="pills-notes<?php echo $vendor_id; ?>">
|
<div class="tab-pane fade" id="pills-notes<?php echo $vendor_id; ?>">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<textarea class="form-control" rows="8" placeholder="Enter some notes" name="notes"><?php echo $vendor_notes; ?></textarea>
|
<textarea class="form-control" rows="12" placeholder="Enter some notes" name="notes"><?php echo $vendor_notes; ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user