From 37399a90ce3dd7eba75088530a57d4b63d011bc8 Mon Sep 17 00:00:00 2001 From: o-psi Date: Sun, 15 Oct 2023 00:15:00 -0500 Subject: [PATCH] Added Search --- settings_account_types.php | 96 ++++++++++++++++++++++---------------- 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/settings_account_types.php b/settings_account_types.php index 81282e38..69674c37 100644 --- a/settings_account_types.php +++ b/settings_account_types.php @@ -25,11 +25,11 @@ if (isset($_GET['account_type'])) { $account_type_id_max = "39"; } } else { - $account_type_id_min = "10"; - $account_type_id_max = "39"; + $account_type_id_min = "10"; + $account_type_id_max = "39"; } - + $sql = mysqli_query( $mysqli, @@ -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,35 +54,50 @@ $num_rows = mysqli_num_rows($sql);
-
-
- All - Assets - Liabilities - Equity - Archived +
+
+
+
+ +
+ +
+
+
+
+ + +
-
+
@@ -123,17 +139,17 @@ $num_rows = mysqli_num_rows($sql); - - Archive - + + Archive + - - Unarchive - + + Unarchive + - +