1
0
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:
Jakub Vrana
2025-04-06 07:04:49 +02:00
parent b36bd12291
commit 0aff6e06a6
2 changed files with 3 additions and 2 deletions

View File

@@ -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";

View File

@@ -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' :