mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
updated initial sorting order for some lists
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
if(!empty($_GET['sb'])){
|
||||
$sb = mysqli_real_escape_string($mysqli,$_GET['sb']);
|
||||
}else{
|
||||
$sb = "category_type";
|
||||
$sb = "category_name";
|
||||
}
|
||||
|
||||
if(isset($_GET['o'])){
|
||||
@@ -35,8 +35,8 @@
|
||||
$disp = "ASC";
|
||||
}
|
||||
}else{
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
$o = "ASC";
|
||||
$disp = "DESC";
|
||||
}
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM categories WHERE (category_name LIKE '%$q%' OR category_type LIKE '%$q%') AND company_id = $session_company_id ORDER BY $sb $o LIMIT $record_from, $record_to");
|
||||
|
||||
Reference in New Issue
Block a user