Skip to content

Commit

Permalink
Added Archive Button for Vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyq committed Sep 21, 2024
1 parent d33e5cd commit 3c6b9ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
AND vendor_template = 0
AND DATE(vendor_created_at) BETWEEN '$dtf' AND '$dtt'
AND (vendor_name LIKE '%$q%' OR vendor_description LIKE '%$q%' OR vendor_account_number LIKE '%$q%' OR vendor_website LIKE '%$q%' OR vendor_contact_name LIKE '%$q%' OR vendor_email LIKE '%$q%' OR vendor_phone LIKE '%$phone_query%')
AND vendor_archived_at IS NULL
AND vendor_$archive_query
ORDER BY $sort $order LIMIT $record_from, $record_to"
);

Expand Down Expand Up @@ -45,6 +45,16 @@
</div>
</div>
</div>
<div class="col-md-8">
<div class="btn-toolbar float-right">
<div class="btn-group mr-2">
<a href="?<?php echo $url_query_strings_sort ?>&archived=<?php if($archived == 1){ echo 0; } else { echo 1; } ?>"
class="btn btn-<?php if ($archived == 1) { echo "primary"; } else { echo "default"; } ?>">
<i class="fa fa-fw fa-archive mr-2"></i>Archived
</a>
</div>
</div>
</div>
</div>
<div class="collapse mt-3 <?php if (!empty($_GET['dtf']) || $_GET['canned_date'] !== "custom" ) { echo "show"; } ?>" id="advancedFilter">
<div class="row">
Expand Down

0 comments on commit 3c6b9ea

Please sign in to comment.