1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Go to first page after sorting (thanks to Jan Cerny)

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1344 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-03-11 20:45:21 +00:00
parent e44fbc2e49
commit 305a05542d

View File

@@ -199,7 +199,7 @@ if (!$columns) {
if ($name != "") { if ($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"][0] == $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)[^=]*|page') . '&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);
} }