mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Highlight current table in menu when editing Check
This commit is contained in:
@@ -1082,7 +1082,7 @@ class Adminer {
|
||||
;
|
||||
echo (support("table") || support("indexes")
|
||||
? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"'
|
||||
. bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"])), (is_view($status) ? "view" : "structure"))
|
||||
. bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"], $_GET["check"], $_GET["view"])), (is_view($status) ? "view" : "structure"))
|
||||
. " title='" . lang('Show structure') . "'>$name</a>"
|
||||
: "<span>$name</span>"
|
||||
) . "\n";
|
||||
|
@@ -42,9 +42,10 @@ class AdminerMenuLinks extends Adminer\Plugin {
|
||||
. " title='$titles[select]'>" . Adminer\lang('select') . "</a> "
|
||||
;
|
||||
}
|
||||
$actives = array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"]);
|
||||
$actives = array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"], $_GET["check"], $_GET["view"]);
|
||||
if ($menu) {
|
||||
$actives[] = $_GET["select"];
|
||||
$actives[] = $_GET["edit"];
|
||||
}
|
||||
$link =
|
||||
($menu == 'select' ? 'select' :
|
||||
|
Reference in New Issue
Block a user