diff --git a/accounts.php b/accounts.php index 0a839067..6d6aa7e9 100644 --- a/accounts.php +++ b/accounts.php @@ -1,9 +1,5 @@ $sb, 'o' => $o))); - //Paging if(isset($_GET['p'])){ $p = intval($_GET['p']); @@ -40,20 +36,23 @@ $disp = "DESC"; } + //Rebuild URL + $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); + $sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM accounts WHERE account_name LIKE '%$q%' AND company_id = $session_company_id ORDER BY $sb $o LIMIT $record_from, $record_to"); $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); - $total_found_rows = $num_rows[0]; - $total_pages = ceil($total_found_rows / 10); ?> -
-
-
Accounts
- +
+
+

Accounts

+
+ +
@@ -111,12 +110,12 @@ Delete
-
- +
diff --git a/add_account_modal.php b/add_account_modal.php index 02aa4239..0c2836f9 100644 --- a/add_account_modal.php +++ b/add_account_modal.php @@ -1,10 +1,10 @@