Wrap lines of SQL commands in IE

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@701 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-06-15 11:57:40 +00:00
parent d60dbc379f
commit e162856a6b
3 changed files with 6 additions and 5 deletions

View file

@ -16,8 +16,9 @@ code { background: #eee; }
.js .hidden { display: none; }
.nowrap { white-space: nowrap; }
.wrap { white-space: normal; }
.error { color: red; background: #fee; padding: .5em .8em; }
.message { color: green; background: #efe; padding: .5em .8em; }
.error { color: red; background: #fee; }
.message { color: green; background: #efe; }
.error, .message { padding: .5em .8em; margin: 0 20px 1em 0; }
.char { color: #007F00; }
.date { color: #7F007F; }
.enum { color: #007F7F; }

View file

@ -39,7 +39,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
}
echo "<h2>$title" . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . "</h2>\n";
if ($_SESSION["messages"]) {
echo "<p class='message'>" . implode("</p>\n<p class='message'>", $_SESSION["messages"]) . "</p>\n";
echo "<div class='message'>" . implode("</p>\n<p class='message'>", $_SESSION["messages"]) . "</div>\n";
$_SESSION["messages"] = array();
}
$databases = &$_SESSION["databases"][$_GET["server"]];
@ -50,7 +50,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
session_write_close();
}
if ($error) {
echo "<p class='error'>$error</p>\n";
echo "<div class='error'>$error</div>\n";
}
}

View file

@ -101,7 +101,7 @@ function query_redirect($query, $location, $message, $redirect = true, $execute
$id = "sql-" . count($_SESSION["messages"]);
$sql = "";
if ($query) {
$sql = " <a href='#$id' onclick=\"return !toggle('$id');\">" . lang('SQL command') . "</a><span id='$id' class='hidden'><br /><code class='jush-sql'>" . htmlspecialchars($query) . '</code><br /><a href="' . htmlspecialchars($SELF . 'sql=&history=' . count($_SESSION["history"][$_GET["server"]][$_GET["db"]])) . '">' . lang('Edit') . '</a></span>';
$sql = " <a href='#$id' onclick=\"return !toggle('$id');\">" . lang('SQL command') . "</a><span id='$id' class='hidden'><pre class='jush-sql'>" . htmlspecialchars($query) . '</pre><a href="' . htmlspecialchars($SELF . 'sql=&history=' . count($_SESSION["history"][$_GET["server"]][$_GET["db"]])) . '">' . lang('Edit') . '</a></span>';
$_SESSION["history"][$_GET["server"]][$_GET["db"]][] = $query;
}
if ($execute) {