]> git.joonet.de Git - adminer.git/commitdiff
Add CSS classes to navigation
authorJakub Vrana <jakub@vrana.cz>
Thu, 26 Jun 2014 10:59:04 +0000 (12:59 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 26 Jun 2014 10:59:04 +0000 (12:59 +0200)
adminer/include/adminer.inc.php
editor/include/adminer.inc.php

index 916b679a81b35cd36fc8cb3582b0ff4bc1072309..2406334ed2488c4d569215878df8869689884f00 100644 (file)
@@ -883,10 +883,12 @@ bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info,
        function tablesPrint($tables) {
                echo "<p id='tables' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
                foreach ($tables as $table => $status) {
-                       echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table) . ">" . lang('select') . "</a> ";
+                       echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table, "select") . ">" . lang('select') . "</a> ";
                        $name = $this->tableName($status);
                        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" : "")) . " title='" . lang('Show structure') . "'>$name</a>"
+                               ? '<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")
+                                       . " title='" . lang('Show structure') . "'>$name</a>"
                                : "<span>$name</span>"
                        ) . "<br>\n";
                }
index a0e0a09e0d864648e7c2271eec6c2163d7f5bb9f..ef3b0c55899d8db563a48617d981fbc81f8a66ec 100644 (file)
@@ -585,7 +585,10 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                foreach ($tables as $row) {
                        $name = $this->tableName($row);
                        if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name
-                               echo "<a href='" . h(ME) . 'select=' . urlencode($row["Name"]) . "'" . bold($_GET["select"] == $row["Name"] || $_GET["edit"] == $row["Name"]) . " title='" . lang('Select data') . "'>$name</a><br>\n";
+                               echo "<a href='" . h(ME) . 'select=' . urlencode($row["Name"]) . "'"
+                                       . bold($_GET["select"] == $row["Name"] || $_GET["edit"] == $row["Name"], "select")
+                                       . " title='" . lang('Select data') . "'>$name</a><br>\n"
+                               ;
                        }
                }
        }