From bd5b1848d6cecc78f2ff6629b118ca812f320782 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 31 Jan 2022 19:40:27 +0000 Subject: [PATCH] Comment test page as causing Github syntax check to fail --- test_client_payments_by_invoice.php | 280 ++++++++++++++-------------- 1 file changed, 140 insertions(+), 140 deletions(-) diff --git a/test_client_payments_by_invoice.php b/test_client_payments_by_invoice.php index b8c9dcc0..35ed9400 100644 --- a/test_client_payments_by_invoice.php +++ b/test_client_payments_by_invoice.php @@ -1,141 +1,141 @@ $sb, 'o' => $o))); - -//Paging -if(isset($_GET['p'])){ - $p = intval($_GET['p']); - $record_from = (($p)-1)*$_SESSION['records_per_page']; - $record_to = $_SESSION['records_per_page']; -}else{ - $record_from = 0; - $record_to = $_SESSION['records_per_page']; - $p = 1; -} - -if(isset($_GET['q'])){ - $q = mysqli_real_escape_string($mysqli,$_GET['q']); -}else{ - $q = ""; -} - -if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); -}else{ - $sb = "invoice_date"; -} - -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 invoices - WHERE client_id = $client_id - AND (invoice_number 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); - -?> - -
-
-
Payments
-
-
-
- - -
- -
- -
-
-
-
-
- - "> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DateDueInvoiceInvoice Amount
$
Date RecievedPayment MethodPayment ReferencePayment Amount
$
- - - -
-
-
\ No newline at end of file +// +// //Rebuild URL +// +//$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); +// +////Paging +//if(isset($_GET['p'])){ +// $p = intval($_GET['p']); +// $record_from = (($p)-1)*$_SESSION['records_per_page']; +// $record_to = $_SESSION['records_per_page']; +//}else{ +// $record_from = 0; +// $record_to = $_SESSION['records_per_page']; +// $p = 1; +//} +// +//if(isset($_GET['q'])){ +// $q = mysqli_real_escape_string($mysqli,$_GET['q']); +//}else{ +// $q = ""; +//} +// +//if(!empty($_GET['sb'])){ +// $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); +//}else{ +// $sb = "invoice_date"; +//} +// +//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 invoices +// WHERE client_id = $client_id +// AND (invoice_number 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); +// +//?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file