diff --git a/adminer/default.css b/adminer/default.css index 5ea95936..0c6f6b97 100644 --- a/adminer/default.css +++ b/adminer/default.css @@ -14,7 +14,6 @@ p { margin: 0 20px 1em 0; } img { vertical-align: middle; border: 0; } code { background: #eee; } .js .hidden { display: none; } -.popup { position: absolute; } .nowrap { white-space: nowrap; } .wrap { white-space: normal; } .error { color: red; background: #fee; padding: .5em .8em; } diff --git a/adminer/functions.js b/adminer/functions.js index 825c938b..787902ed 100644 --- a/adminer/functions.js +++ b/adminer/functions.js @@ -6,14 +6,6 @@ function toggle(id) { return true; } -function popup(el) { - el.getElementsByTagName('span')[0].className = 'popup'; -} - -function popdown(el) { - el.getElementsByTagName('span')[0].className = 'hidden'; -} - function verify_version(version) { document.cookie = 'adminer_version=0'; var script = document.createElement('script'); diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 5e546868..41c30205 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -57,7 +57,7 @@ $translations = array( 'Select' => 'Vypsat', 'New item' => 'Nová položka', 'Search' => 'Vyhledat', - 'ASC' => 'vzestupně', + 'Sort' => 'Setřídit', 'DESC' => 'sestupně', 'Limit' => 'Limit', 'No rows.' => 'Žádné řádky.', diff --git a/adminer/select.inc.php b/adminer/select.inc.php index bbf8e275..0e64c240 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -152,7 +152,7 @@ if (!$columns) { echo "

" . lang('Unable to select the table') . ($fields ? "" : ": " . htmlspecialchars($dbh->error)) . ".

\n"; } else { echo "
\n"; - echo "
" . lang('Select') . "\n"; + echo '
' . lang('Select') . "
\n"; + echo "
\n"; - echo "
" . lang('Search') . "\n"; + echo '
' . lang('Search') . "
\n"; + echo "
\n"; + + echo '
' . lang('Sort') . "
1 ? "" : " class='hidden'") . ">\n"; + $i = 0; + foreach ((array) $_GET["order"] as $key => $val) { + if (in_array($val, $columns, true)) { + echo "
"; + echo "
\n"; + $i++; + } + } + echo "
"; + echo "
\n"; + echo "
\n"; echo "
" . lang('Limit') . "
"; - echo hidden_fields(array("order" => (array) $_GET["order"], "desc" => (array) $_GET["desc"])); - echo "
\n"; + echo ""; + echo "\n"; if (isset($text_length)) { - echo "
" . lang('Text length') . "
\n"; + echo "
" . lang('Text length') . "
"; + echo ""; + echo "
\n"; } - echo "
" . lang('Action') . "
\n"; + echo "
" . lang('Action') . "
"; + echo ""; + echo "
\n"; echo "
\n"; $query = "SELECT " . ($select ? (count($group) < count($select) ? "SQL_CALC_FOUND_ROWS " : "") . implode(", ", $select) : "*") . " $from"; @@ -228,17 +245,7 @@ if (!$columns) { if (!$j) { echo ''; foreach ($row as $key => $val) { - $pos = array_search($key, (array) $_GET["order"]); - $uri = remove_from_uri($pos !== false ? "(order|desc)%5B$pos%5D" : ""); - $pos2 = 0; - if ($_GET["order"]) { - $pos2 = max(array_keys($_GET["order"])); - $pos2 += ($pos2 !== $pos ? 1 : 0); - } - echo '' . htmlspecialchars($key) . ''; + echo '' . htmlspecialchars($key) . ''; } echo "\n"; } diff --git a/changes.txt b/changes.txt index 4af05f9b..61679ec3 100644 --- a/changes.txt +++ b/changes.txt @@ -13,7 +13,7 @@ All privileges in user rights Fix FOUND_ROWS() in SQL command Export only selected columns in select Include views in drop and move on database overview -Simplify order in select +Hide fieldsets in select Use \n in SQL commands phpMinAdmin 1.10.1: