mirror of https://github.com/itflow-org/itflow
Add more reverse sort orders
This commit is contained in:
parent
087de8242e
commit
344276ca33
|
|
@ -6,6 +6,12 @@ if(!empty($_GET['sb'])){
|
|||
$sb = "invoice_number";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ if(!empty($_GET['sb'])){
|
|||
$sb = "payment_date";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ if(!empty($_GET['sb'])){
|
|||
$sb = "quote_number";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ if(!empty($_GET['sb'])){
|
|||
$sb = "ticket_number";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ if(!empty($_GET['sb'])){
|
|||
$sb = "trip_date";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
//Date From and Date To Filter
|
||||
if(isset($_GET['dtf'])){
|
||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue