diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index eedee5cf..e551f673 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -777,7 +777,7 @@ DROP PROCEDURE adminer_alter; foreach ($usernames as $username => $password) { if ($password !== null) { if ($first) { - echo "

\n"; + echo "

\n"; $first = false; } echo "($drivers[$driver]) " . h($username . ($server != "" ? "@$server" : "")) . "
\n"; @@ -803,7 +803,7 @@ DROP PROCEDURE adminer_alter;

-

+

"(" . lang('database') . ")") + $databases, DB, "this.form.submit();") : ''); ?> > @@ -848,7 +848,7 @@ DROP PROCEDURE adminer_alter; * @return null */ function tablesPrint($tables) { - echo '

' . "\n"; + echo '

' . "\n"; foreach ($tables as $table => $type) { echo '" . lang('select') . " "; echo '" . $this->tableName(array("Name" => $table)) . "
\n"; //! Adminer::tableName may work with full table status diff --git a/adminer/static/default.css b/adminer/static/default.css index 12837e55..39c0751f 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -47,8 +47,9 @@ input[type=image] { vertical-align: middle; } .icon { width: 18px; height: 18px; } #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; white-space: nowrap; } #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; } -#tables { overflow: auto; } -#tables a { background: #fff; } +#dbs { overflow: hidden; } +#logins, #tables { overflow: auto; } +#logins a, #tables a { background: #fff; } #content { margin: 2em 0 0 21em; padding: 10px 20px 20px 0; } #lang { position: absolute; top: 0; left: 0; line-height: 1.8em; padding: .3em 1em; } #breadcrumb { white-space: nowrap; position: absolute; top: 0; left: 21em; background: #eee; height: 2em; line-height: 1.8em; padding: 0 1em; margin: 0 0 0 -18px; } diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 8afa5d50..ee080d80 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -195,6 +195,14 @@ function pageClick(href, page, event) { } } +function menuOver(el) { + el.style.overflow = 'visible'; +} + +function menuOut(el) { + el.style.overflow = 'auto'; +} + /** Add row in select fieldset diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index c89151f5..81354527 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -532,7 +532,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 foreach ((array) $_SESSION["pwds"]["server"][""] as $username => $password) { if ($password !== null) { if ($first) { - echo "

\n"; + echo "

\n"; $first = false; } echo "" . ($username != "" ? h($username) : "" . lang('empty') . "") . "
\n"; @@ -559,7 +559,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 } function tablesPrint($tables) { - echo '

' . "\n"; + echo '

' . "\n"; foreach ($tables as $row) { $name = $this->tableName($row); if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name