Added Search
This commit is contained in:
@@ -37,6 +37,7 @@ $sql = mysqli_query(
|
||||
WHERE account_type_$archive_query
|
||||
AND account_type_id >= $account_type_id_min
|
||||
AND account_type_id <= $account_type_id_max
|
||||
AND (account_type_name LIKE '%$q%' OR account_type_description LIKE '%$q%' OR account_type_id LIKE '%$q%')
|
||||
ORDER BY $sort $order"
|
||||
);
|
||||
|
||||
@@ -53,6 +54,18 @@ $num_rows = mysqli_num_rows($sql);
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form autocomplete="off">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 mb-2">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) {
|
||||
echo stripslashes(nullable_htmlentities($q));
|
||||
} ?>" placeholder="Search Categories">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="btn-group float-right">
|
||||
<a href="settings_account_types.php" class="btn <?php if (!isset($_GET['account_type']) && !isset($_GET['archived'])) {
|
||||
@@ -81,7 +94,10 @@ $num_rows = mysqli_num_rows($sql);
|
||||
echo 'btn-default';
|
||||
} ?>"><i class="fas fa-fw fa-archive mr-2"></i>Archived</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
<table class="table table-striped table-borderless table-hover">
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user