]> git.joonet.de Git - adminer.git/commitdiff
Wrap lines of SQL commands in IE
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 15 Jun 2009 11:57:40 +0000 (11:57 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 15 Jun 2009 11:57:40 +0000 (11:57 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@701 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/default.css
adminer/include/design.inc.php
adminer/include/functions.inc.php

index 0c6f6b978edcdd981ec4b18ee7d8b6e832b64f27..dfe91f6e3bd62240966b9ed474001bae8864d9e4 100644 (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; }
index f3046352333e9e609bfecb6caab3e93ea51d68b4..d69c96dd7806ee605558de4950af12c014017286 100644 (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";
        }
 }
 
index 25f0d4c6699a9971522980388da05bbafe2d5b52..974b187ec3ec2208fb5ea1eafbd599bd33d658c5 100644 (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) {