diff --git a/default.css b/default.css index 81894122..36f7d651 100644 --- a/default.css +++ b/default.css @@ -10,5 +10,11 @@ TABLE { margin-bottom: 1em; } P { margin-top: 0; } .error { color: Red; } .message { color: Green; } +.char { color: #007F00; } +.date { color: #7F007F; } +.enum { color: #007F7F; } +.binary { color: Red; } #menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; overflow-y: hidden; white-space: nowrap; } #content { margin-left: 16em; } +#schema { position: relative; } +#schema DIV { position: absolute; border: 1px solid Silver; line-height: 1.25em; padding: 0 2px; } diff --git a/design.inc.php b/design.inc.php index 2ab2ee7b..3d0935ba 100644 --- a/design.inc.php +++ b/design.inc.php @@ -57,7 +57,10 @@ function page_footer($missing = false) { } echo optionlist($_SESSION["databases"][$_GET["server"]], $_GET["db"]); ?> -
+ + + + $row["Collation"], "privileges" => array_flip(explode(",", $row["Privileges"])), "comment" => $row["Comment"], + "primary" => ($row["Key"] == "PRI"), ); } $result->free(); diff --git a/index.php b/index.php index 4e92432b..4d03691a 100644 --- a/index.php +++ b/index.php @@ -38,6 +38,8 @@ if (isset($_GET["dump"])) { include "./select.inc.php"; } elseif (isset($_GET["view"])) { include "./view.inc.php"; + } elseif (isset($_GET["schema"])) { + include "./schema.inc.php"; } else { // uses CSRF token include "./editing.inc.php"; if ($_POST) { @@ -77,8 +79,10 @@ if (isset($_GET["dump"])) { $TOKENS = array(); page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"])); echo '' . lang('Alter database') . "
\n"; + echo '' . lang('Database schema') . "
\n"; if ($mysql->server_info >= 5) { - echo "