From 94a2be52ba13d908f9059bef7b27f054ed82d9ea Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 26 Nov 2009 12:14:39 +0000 Subject: [PATCH] Highlight current links git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1253 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/adminer.inc.php | 12 ++++++------ adminer/include/functions.inc.php | 9 +++++++++ changes.txt | 1 + editor/include/adminer.inc.php | 2 +- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 9e0ac3f5..8ad1c3ec 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -83,7 +83,7 @@ class Adminer { $links["edit"] = lang('New item'); } foreach ($links as $key => $val) { - echo " " . (isset($_GET[$key]) ? "$val" : $val) . ""; + echo " " . bold($val, isset($_GET[$key])) . ""; } echo "\n"; } @@ -480,8 +480,8 @@ class Adminer { ?>

- -"> + +"> ">

@@ -505,7 +505,7 @@ class Adminer { } else { $this->tablesPrint($tables); } - echo '

' . lang('Create new table') . "\n"; + echo '

' . bold(lang('Create new table'), $_GET["create"] === "") . "\n"; } } } @@ -517,8 +517,8 @@ class Adminer { function tablesPrint($tables) { echo "

\n"; foreach ($tables as $table) { - echo '' . lang('select') . ' '; - echo '' . $this->tableName(array("Name" => $table)) . "
\n"; //! Adminer::tableName may work with full table status + echo '' . bold(lang('select'), $_GET["select"] == $table) . ' '; + echo '' . bold($this->tableName(array("Name" => $table)), $_GET["table"] == $table) . "
\n"; //! Adminer::tableName may work with full table status } } diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index c9b5a1b7..801cdeb3 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -526,3 +526,12 @@ function is_url($string) { function print_fieldset($id, $legend, $visible = false) { echo "

$legend