Add DESC to column click if equal to first column in order
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1242 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
a705b669eb
commit
381c053ba4
|
@ -189,7 +189,7 @@ if (!$columns) {
|
||||||
if (strlen($name)) {
|
if (strlen($name)) {
|
||||||
$order++;
|
$order++;
|
||||||
$names[$key] = $name;
|
$names[$key] = $name;
|
||||||
echo '<th><a href="' . h(remove_from_uri('(order|desc)[^=]*') . '&order%5B0%5D=' . urlencode($key) . ($_GET["order"] == array($key) && !$_GET["desc"][0] ? '&desc%5B0%5D=1' : '')) . '">' . apply_sql_function($val["fun"], $name) . "</a>"; //! columns looking like functions
|
echo '<th><a href="' . h(remove_from_uri('(order|desc)[^=]*') . '&order%5B0%5D=' . urlencode($key) . ($_GET["order"][0] == $key && !$_GET["desc"][0] ? '&desc%5B0%5D=1' : '')) . '">' . apply_sql_function($val["fun"], $name) . "</a>"; //! columns looking like functions
|
||||||
}
|
}
|
||||||
next($select);
|
next($select);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue