Add more reverse sort orders

This commit is contained in:
johnnyq
2022-04-14 19:46:59 -04:00
parent 087de8242e
commit 344276ca33
6 changed files with 38 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
<?php include("inc_all.php");
//$o = "DESC";
if(!empty($_GET['sb'])){
$sb = mysqli_real_escape_string($mysqli,$_GET['sb']);
@@ -6,6 +8,12 @@ if(!empty($_GET['sb'])){
$sb = "expense_date";
}
// Reverse default sort
if(!isset($_GET['o'])){
$o = "DESC";
$disp = "ASC";
}
if(empty($_GET['canned_date'])){
//Prevents lots of undefined variable errors.
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00