]> git.joonet.de Git - adminer.git/commitdiff
Add accessibility labels to databases and tables checkboxes
authorJakub Vrana <jakub@vrana.cz>
Mon, 23 Jan 2017 22:05:47 +0000 (14:05 -0800)
committerJakub Vrana <jakub@vrana.cz>
Mon, 23 Jan 2017 22:05:47 +0000 (14:05 -0800)
adminer/db.inc.php
adminer/include/connect.inc.php
changes.txt

index 42cfd8fcd9aa1c53bde4c72e4a5bd3a14074bceb..e2c1aa3edb6a25cae3c5854028774ca954b6e667 100644 (file)
@@ -80,8 +80,9 @@ if ($adminer->homepage()) {
                        $tables = 0;
                        foreach ($tables_list as $name => $type) {
                                $view = ($type !== null && !preg_match('~table~i', $type));
-                               echo '<tr' . odd() . '><td>' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "formUncheck('check-all');");
-                               echo '<th>' . (support("table") || support("indexes") ? '<a href="' . h(ME) . 'table=' . urlencode($name) . '" title="' . lang('Show structure') . '">' . h($name) . '</a>' : h($name));
+                               $id = h("Table-" . $name);
+                               echo '<tr' . odd() . '><td>' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "formUncheck('check-all');", "", $id);
+                               echo '<th>' . (support("table") || support("indexes") ? "<a href='" . h(ME) . "table=" . urlencode($name) . "' title='" . lang('Show structure') . "' id='$id'>" . h($name) . '</a>' : h($name));
                                if ($view) {
                                        echo '<td colspan="6"><a href="' . h(ME) . "view=" . urlencode($name) . '" title="' . lang('Alter view') . '">' . (preg_match('~materialized~i', $type) ? lang('Materialized View') : lang('View')) . '</a>';
                                        echo '<td align="right"><a href="' . h(ME) . "select=" . urlencode($name) . '" title="' . lang('Select data') . '">?</a>';
index c46e3e8ae3b312671886fc4c9591ebf42e8e5c6f..b008faf71c18257a568f3c3d81104402c7b215ed 100644 (file)
@@ -43,8 +43,9 @@ function connect_error() {
                        
                        foreach ($databases as $db => $tables) {
                                $root = h(ME) . "db=" . urlencode($db);
-                               echo "<tr" . odd() . ">" . (support("database") ? "<td>" . checkbox("db[]", $db, in_array($db, (array) $_POST["db"])) : "");
-                               echo "<th><a href='$root'>" . h($db) . "</a>";
+                               $id = h("Db-" . $db);
+                               echo "<tr" . odd() . ">" . (support("database") ? "<td>" . checkbox("db[]", $db, in_array($db, (array) $_POST["db"]), "", "", "", $id) : "");
+                               echo "<th><a href='$root' id='$db'>" . h($db) . "</a>";
                                $collation = nbsp(db_collation($db, $collations));
                                echo "<td>" . (support("database") ? "<a href='$root" . ($scheme ? "&amp;ns=" : "") . "&amp;database=' title='" . lang('Alter database') . "'>$collation</a>" : $collation);
                                echo "<td align='right'><a href='$root&amp;schema=' id='tables-" . h($db) . "' title='" . lang('Database schema') . "'>" . ($_GET["dbsize"] ? $tables : "?") . "</a>";
index bf19bf308bc36887d74f89f656f05a56bb07e46c..5dbb1c2d7836e1215b37527a8baf67cbb183e7d6 100644 (file)
@@ -1,5 +1,5 @@
 Adminer 4.2.6-dev:
-Add accessibility labels to Create Table fields
+Add accessibility labels
 Make maxlength in edit fields a soft limit
 Add Cache-Control: immutable to static files