Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /adminer/table.inc.php [c8248b] .. [5f3709] Maximize Restore

  Switch to unified view

a/adminer/table.inc.php b/adminer/table.inc.php
...
...
33
            echo "<table cellspacing='0'>\n";
33
            echo "<table cellspacing='0'>\n";
34
            foreach ($indexes as $name => $index) {
34
            foreach ($indexes as $name => $index) {
35
                ksort($index["columns"]); // enforce correct columns order
35
                ksort($index["columns"]); // enforce correct columns order
36
                $print = array();
36
                $print = array();
37
                foreach ($index["columns"] as $key => $val) {
37
                foreach ($index["columns"] as $key => $val) {
38
                  $print[] = "<i>" . h($val) . "</i>"
38
                    $print[] = "<i>" . h($val) . "</i>" . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "");
39
                      . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "")
40
                      . ($index["descs"][$key] ? " DESC" : "")
41
                  ;
39
                }
42
                }
40
                echo "<tr title='" . h($name) . "'><th>$index[type]<td>" . implode(", ", $print) . "\n";
43
                echo "<tr title='" . h($name) . "'><th>$index[type]<td>" . implode(", ", $print) . "\n";
41
            }
44
            }
42
            echo "</table>\n";
45
            echo "</table>\n";
43
        }
46
        }