From 61afe373c759f36a883ba13b8c40abc3bdca8cce Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 24 Sep 2008 20:46:21 +0000 Subject: [PATCH] XHTML syntax errors (thanks to kozotoc) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@491 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- create.inc.php | 5 ++--- design.inc.php | 2 +- dump.inc.php | 4 ++-- editing.inc.php | 8 ++++---- foreign.inc.php | 4 ++-- indexes.inc.php | 4 ++-- privileges.inc.php | 1 - schema.inc.php | 4 ++-- select.inc.php | 6 +++--- sql.inc.php | 4 ++-- 10 files changed, 20 insertions(+), 22 deletions(-) diff --git a/create.inc.php b/create.inc.php index 1f2bad68..bde10d55 100644 --- a/create.inc.php +++ b/create.inc.php @@ -96,7 +96,7 @@ $collations = collations();

: " /> : " maxlength="60" /> - +// ]]>

diff --git a/design.inc.php b/design.inc.php index 53bf947e..6fcd1ada 100644 --- a/design.inc.php +++ b/design.inc.php @@ -31,7 +31,7 @@ function toggle(id) { echo '

diff --git a/indexes.inc.php b/indexes.inc.php index 47952c68..6fbbdc1c 100644 --- a/indexes.inc.php +++ b/indexes.inc.php @@ -63,7 +63,7 @@ if ($_POST) { } ?> - +// ]]> diff --git a/privileges.inc.php b/privileges.inc.php index eb8a3774..6365dd54 100644 --- a/privileges.inc.php +++ b/privileges.inc.php @@ -14,7 +14,6 @@ if (!$result) { query("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', 1) AS User, SUBSTRING_INDEX(CURRENT_USER, '@', -1) AS Host"); } -echo "

\n"; echo "
\n"; echo "\n"; while ($row = $result->fetch_assoc()) { diff --git a/schema.inc.php b/schema.inc.php index d9db282d..6c087bba 100644 --- a/schema.inc.php +++ b/schema.inc.php @@ -67,7 +67,7 @@ document.onmousemove = function (ev) { var top = (ev.clientY - y) / em; var divs = that.getElementsByTagName('div'); var line_set = { }; - for (var i=0; i < divs.length; i++) { + for (var i=0; divs.length > i; i++) { if (divs[i].className == 'references') { var div2 = document.getElementById((divs[i].id.substr(0, 4) == 'refs' ? 'refd' : 'refs') + divs[i].id.substr(4)); var ref = (table_pos[divs[i].title] ? table_pos[divs[i].title] : [ div2.parentNode.offsetTop / em, 0 ]); @@ -81,7 +81,7 @@ document.onmousemove = function (ev) { var left2 = Math.min(0, left - ref[1]) - 1; div2.style.left = left2 + 'em'; div2.getElementsByTagName('div')[0].style.width = -left2 + 'em'; - is_top = (divs[i].offsetTop + top * em < div2.offsetTop + ref[0] * em); + is_top = (div2.offsetTop + ref[0] * em > divs[i].offsetTop + top * em); } if (!line_set[id]) { var line = document.getElementById(divs[i].id.replace(/^....(.+)-[0-9]+$/, 'refl$1')); diff --git a/select.inc.php b/select.inc.php index 98691b52..bfa41304 100644 --- a/select.inc.php +++ b/select.inc.php @@ -114,7 +114,7 @@ if (!$columns) { } else { echo "\n"; ?> - +// ]]>" . lang('Select') . "\n"; if (strlen($_GET["server"])) { @@ -229,7 +229,7 @@ for (var i=0; > i; i++) { echo "
 " . lang('Username') . "" . lang('Server') . "
\n"; for ($j=0; $row = $result->fetch_assoc(); $j++) { if (!$j) { - echo '' . (count($select) == count($group) ? '' : ''); + echo '' . (count($select) == count($group) ? '' : ''); foreach ($row as $key => $val) { echo '"; } diff --git a/sql.inc.php b/sql.inc.php index 3d841c31..e75c8983 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -55,9 +55,9 @@ if (!$error && $_POST && is_string($query = (isset($_POST["query"]) ? $_POST["qu

- +// ]]>

' . htmlspecialchars($key) . "