From 8d9ef7afd20d38d88c21bda94b8acf0eb85ceb43 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 24 Oct 2013 22:04:57 -0700 Subject: [PATCH] Differentiate views in navigation (thanks to Petr Kobelka) --- adminer/include/adminer.inc.php | 2 +- adminer/include/functions.inc.php | 5 +++-- adminer/static/default.css | 1 + changes.txt | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 25ef3196..144ff346 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -845,7 +845,7 @@ username.form['auth[driver]'].onchange(); echo '" . lang('select') . " "; $name = $this->tableName($status); echo (support("table") - ? '$name" + ? '$name" : "$name" ) . "
\n"; } diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 6d1cd287..76b2b334 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -183,10 +183,11 @@ function print_fieldset($id, $legend, $visible = false, $onclick = "") { /** Return class='active' if $bold is true * @param bool +* @param string * @return string */ -function bold($bold) { - return ($bold ? " class='active'" : ""); +function bold($bold, $class = "") { + return ($bold ? " class='active $class'" : ($class ? " class='$class'" : "")); } /** Generate class for odd rows diff --git a/adminer/static/default.css b/adminer/static/default.css index d2b9b573..11f6e61a 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -48,6 +48,7 @@ input.required { box-shadow: 1px 1px 1px red; } .datetime { text-align: right; } .type { width: 15ex; width: auto\9; } .options select { width: 20ex; width: auto\9; } +.view { font-style: italic; } .active { font-weight: bold; } .sqlarea { width: 98%; } .icon { width: 18px; height: 18px; background-color: navy; } diff --git a/changes.txt b/changes.txt index 277ea3b9..d3bcfa55 100644 --- a/changes.txt +++ b/changes.txt @@ -9,6 +9,7 @@ Add button for dropping an index Display number of selected rows Add links to documentation Disable underlining links +Differentiate views in navigation Improve speed of CSV import Keep form values after refresh in Firefox Encrypt passwords stored in session by a key stored in cookie