Feature: Inititial functionality for sort order icons on table headers

This commit is contained in:
johnnyq
2024-09-20 13:01:41 -04:00
parent 5a20c7fdbe
commit 55c832bde6
2 changed files with 25 additions and 3 deletions

View File

@@ -41,6 +41,15 @@ if (isset($_GET['order'])) {
}
}
// Set the order Icon
if ($sort) {
if ($order == "ASC") {
$order_icon = "<i class='fas fa-fw fa-sort-up'></i>";
} else {
$order_icon = "<i class='fas fa-fw fa-sort-down'></i>";
}
}
// Search
if (isset($_GET['q'])) {
$q = sanitizeInput($_GET['q']);