diff --git a/accounts.php b/accounts.php index dc2991a1..36f0dac9 100644 --- a/accounts.php +++ b/accounts.php @@ -1,21 +1,76 @@ - + + $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); + if(isset($_GET['p'])){ + $p = intval($_GET['p']); + $record_from = (($p)-1)*10; + $record_to = 10; + }else{ + $record_from = 0; + $record_to = 10; + $p = 1; + } + + if(isset($_GET['q'])){ + $q = $_GET['q']; + }else{ + $q = ""; + } + + if(!empty($_GET['sb'])){ + $sb = $_GET['sb']; + }else{ + $sb = "account_id"; + } + + if(isset($_GET['o'])){ + if($_GET['o'] == 'ASC'){ + $o = "ASC"; + $disp = "DESC"; + }else{ + $o = "DESC"; + $disp = "ASC"; + } + }else{ + $o = "DESC"; + $disp = "ASC"; + } + + $sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM accounts + WHERE account_name LIKE '%$q%' + 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); + +?>
| Name | +Name | Balance | -Actions | +Action |
|---|
| Name | -Type | +Name | +Type | Color | -Actions | +Action |
|---|
| Type | -Name | -IP | -Make | -Model | -Serial | -Actions | +Type | +Name | +IP | +Make | +Model | +Serial | +Action |
|---|
| Domain | +Domain | Registrar | WebHost | -Expire | -Actions | +Expire | +Action |
|---|
| Number | -Amount | -Date | -Due | -Category | -Status | -Actions | +Number | +Amount | +Date | +Due | +Category | +Status | +Action |
|---|
| Name | -Address | +Name | +Address | Phone | -Hours | -Actions | +Hours | +Action |
|---|
| Description | -Username | -Password | -Actions | +Description | +Username | +Password | +Action |
|---|
| Name | -Network | -Gateway | -DHCP Range | -Actions | +Name | +Network | +Gateway | +DHCP Range | +Action |
|---|
| Date | -Invoice | -Amount | -Account | -Method | +Date | +Invoice | +Amount | +Account | +Method |
|---|
| Number | -Amount | -Date | -Category | -Status | -Actions | +Number | +Amount | +Date | +Category | +Status | +Action |
|---|
| Frequency | -Last Sent | -Next Date | -Status | -Actions | +Frequency | +Last Sent | +Next Date | +Category | +Status | +Action |
|---|
| Software | -Type | -License | +Software | +Type | +License | - | Actions | +Action |
|---|
| Number | -Subject | -Date Opened | -Status | -Actions | +Number | +Subject | +Date Opened | +Status | +Action |
|---|
| Vendor | -Description | -Account Number | +Vendor | +Description | +Account Number | - | Actions | +Action |
|---|
| Date | -Amount | -Vendor | -Category | -Account | -Actions | +Date | +Amount | +Vendor | +Category | +Account | +Action |
|---|
| Date | -Invoice | -Client | -Amount | -Account | -Method | +Date | +Invoice | +Client | +Amount | +Account | +Method |
|---|
| Number | -Client | -Amount | -Date | -Category | -Status | -Actions | +Number | +Client | +Amount | +Date | +Category | +Status | +Action |
|---|
| Frequency | -Client | -Last Sent | -Next Date | -Category | -Status | -Actions | +Frequency | +Client | +Last Sent | +Next Date | +Category | +Status | +Action |
|---|
| Category | January | diff --git a/report_income_summary.php b/report_income_summary.php index 9e336408..25b3b888 100644 --- a/report_income_summary.php +++ b/report_income_summary.php @@ -13,12 +13,14 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_ ?> -
|---|
| Category | January | diff --git a/report_profit_loss.php b/report_profit_loss.php index 41cfcc0a..b88bab7c 100644 --- a/report_profit_loss.php +++ b/report_profit_loss.php @@ -18,12 +18,14 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c ?> -
|---|
| Jan-Mar | diff --git a/settings-backup.php b/settings-backup.php index a61757ec..942fe98c 100644 --- a/settings-backup.php +++ b/settings-backup.php @@ -4,8 +4,8 @@ -
|---|
| Date | +Date | From Account | To Account | -Amount | -Actions | +Amount | +Action |
|---|
| Date | -Purpose | -From | -To | -Miles | -Actions | +Date | +Purpose | +From | +To | +Miles | +Action |
|---|