]> git.joonet.de Git - adminer.git/commitdiff
Less lines in tables
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 6 Jul 2007 11:48:19 +0000 (11:48 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 6 Jul 2007 11:48:19 +0000 (11:48 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@62 7c3ca157-0c34-0410-bff1-cbf682f78f5c

design.inc.php
index.php
table.inc.php

index 57b6035a55d790dc7522139f5aa9bee4c2cc3f86..44baecc82a4f1cb7913dc4d7bda7a97d7796118f 100644 (file)
@@ -14,6 +14,7 @@ A:visited { color: Navy; }
 H1 { font-size: 150%; margin: 0; }
 H2 { font-size: 150%; margin-top: 0; }
 FIELDSET { float: left; padding: .5em; margin: 0; }
+PRE { margin: 0; font-family: serif; }
 .error { color: Red; }
 .message { color: Green; }
 #menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; white-space: nowrap; }
index df9b132a9d6bc8e3c9b8fffe9c4dca1ea0154a74..847d84ba47a026b005dc25b216edcb6f35f3e1cf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -36,12 +36,12 @@ if (isset($_GET["dump"])) {
                        $result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
                        if (mysql_num_rows($result)) {
                                echo "<h2>" . lang('Routines') . "</h2>\n";
-                               echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
+                               echo "<table border='0' cellspacing='0' cellpadding='2'>\n";
                                while ($row = mysql_fetch_assoc($result)) {
-                                       echo "<tr>";
-                                       echo "<td>" . htmlspecialchars($row["ROUTINE_TYPE"]) . "</td>";
+                                       echo "<tr valign='top'>";
+                                       echo "<th>" . htmlspecialchars($row["ROUTINE_TYPE"]) . "</th>";
                                        echo "<th>" . htmlspecialchars($row["ROUTINE_NAME"]) . "</th>"; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION}
-                                       echo "<td>" . nl2br(htmlspecialchars($row["ROUTINE_DEFINITION"])) . "</td>";
+                                       echo "<td><pre>" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . "</pre></td>";
                                        echo "</tr>\n";
                                        //! call, drop, replace
                                }
index 79d606b1c9578e1c5f093c90dc15126b34dabb5d..093335db0edb6063e14048286a6dc26f3451b119 100644 (file)
@@ -36,9 +36,9 @@ if (mysql_get_server_info() >= 5) {
        $result = mysql_query("SHOW TRIGGERS LIKE '" . mysql_real_escape_string($_GET["table"]) . "'");
        if (mysql_num_rows($result)) {
                echo "<h3>" . lang('Triggers') . "</h3>\n";
-               echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
+               echo "<table border='0' cellspacing='0' cellpadding='2'>\n";
                while ($row = mysql_fetch_assoc($result)) {
-                       echo "<tr><th>$row[Timing]</th><th>$row[Event]</th><td>" . htmlspecialchars($row["Statement"]) . "</td></tr>\n";
+                       echo "<tr valign='top'><th>$row[Timing]</th><th>$row[Event]</th><td><pre>" . htmlspecialchars($row["Statement"]) . "</pre></td></tr>\n";
                }
                echo "</table>\n";
        }