From 70fb696fbd61bdb1990d192a85aa9f8251b5ff52 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 30 Apr 2012 18:08:42 -0700 Subject: [PATCH] Link to descending order --- adminer/select.inc.php | 6 +++--- adminer/static/default.css | 1 + changes.txt | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index ca020e16..e0d994c5 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -265,9 +265,9 @@ if (!$columns) { $rank++; $names[$key] = $name; $column = idf_escape($key); - echo '' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions + $href = remove_from_uri('(order|desc)[^=]*|page') . '&order%5B0%5D=' . urlencode($key); + echo '' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions + echo ""; } $functions[$key] = $val["fun"]; next($select); diff --git a/adminer/static/default.css b/adminer/static/default.css index b9d6c251..fe15451d 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -3,6 +3,7 @@ body { color: #000; background: #fff; font: 90%/1.25 Verdana, Arial, Helvetica, a { color: blue; } a:visited { color: navy; } a:hover { color: red; } +a.text { text-decoration: none; } h1 { font-size: 150%; margin: 0; padding: .8em 1em; border-bottom: 1px solid #999; font-weight: normal; color: #777; background: #eee; } h2 { font-size: 150%; margin: 0 0 20px -18px; padding: .8em 1em; border-bottom: 1px solid #000; color: #000; font-weight: normal; background: #ddf; } h3 { font-weight: normal; font-size: 130%; margin: 1em 0 0; } diff --git a/changes.txt b/changes.txt index b1ca7cf7..0d5a23ce 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ Adminer 3.4.0-dev: Print current time next to executed SQL queries Highlight code in SQL command by CodeMirror +Link to descending order Link to original table in EXPLAIN of SELECT * FROM table t Replace JSMin by better JavaScript minifier Don't use AJAX links and forms