mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Less lines in tables
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@62 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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; }
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user