From 4e5b1262fcf87311b2337aea809742420478ca83 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 30 Apr 2009 15:21:31 +0000 Subject: [PATCH] Highlight odd and hover rows git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@591 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- changes.txt | 3 +++ default.css | 7 +++++-- dump.inc.php | 5 +++-- editing.inc.php | 10 +++++++--- functions.inc.php | 10 +++++++++- index.php | 2 +- indexes.inc.php | 4 ++-- privileges.inc.php | 2 +- processlist.inc.php | 2 +- select.inc.php | 2 +- user.inc.php | 2 +- 11 files changed, 34 insertions(+), 15 deletions(-) diff --git a/changes.txt b/changes.txt index fd30cd12..c8c4a250 100644 --- a/changes.txt +++ b/changes.txt @@ -1,3 +1,6 @@ +phpMinAdmin 1.10.1: +Highlight odd and hover rows + phpMinAdmin 1.10.0: Partitioning (MySQL 5.1) CSV import diff --git a/default.css b/default.css index 78ebf57d..344c1252 100644 --- a/default.css +++ b/default.css @@ -1,4 +1,4 @@ -body { color: #000; background-color: #fff; line-height: 1.25em; font-family: Verdana, Arial, Helvetica, sans-serif; margin: 0; font-size: 90%; } +body { color: #000; background: #fff; line-height: 1.25em; font-family: Verdana, Arial, Helvetica, sans-serif; margin: 0; font-size: 90%; } a { color: blue; } a:visited { color: navy; } a:hover { color: red; } @@ -12,7 +12,7 @@ th { background: #eee; } fieldset { display: inline; vertical-align: top; padding: .5em .8em; margin: 0 .5em .5em 0; border: 1px solid #999; } p { margin: 0 20px 1em 0; } img { vertical-align: middle; } -code { background-color: #eee; } +code { background: #eee; } .js .hidden { display: none; } .nowrap { white-space: nowrap; } .error { color: red; background: #fee; padding: .5em .8em; } @@ -21,6 +21,9 @@ code { background-color: #eee; } .date { color: #7F007F; } .enum { color: #007F7F; } .binary { color: red; } +.odd td { background: #F8F8F8; } +tr:hover td { background: #efe; } +thead tr:hover td { background: transparent; } #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; overflow: auto; overflow-y: hidden; white-space: nowrap; } #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; } #menu form { margin: 0; } diff --git a/dump.inc.php b/dump.inc.php index c01a8074..06f75ec5 100644 --- a/dump.inc.php +++ b/dump.inc.php @@ -152,7 +152,7 @@ foreach (array('', 'USE', 'DROP, CREATE', 'CREATE', 'CREATE, ALTER') as $val) { echo "\n"; foreach ((strlen($_GET["db"]) ? array($_GET["db"]) : get_databases()) as $db) { if ($db != "information_schema" || $mysql->server_info < 5) { - echo "" . htmlspecialchars($db) . ""; + echo "" . htmlspecialchars($db) . ""; foreach (array('', 'USE', 'DROP, CREATE', 'CREATE', 'CREATE, ALTER') as $val) { echo '"; } @@ -171,8 +171,9 @@ foreach (array('', 'TRUNCATE, INSERT', 'INSERT', 'UPDATE') as $val) { echo "\n"; $views = ""; $result = $mysql->query(strlen($_GET["db"]) ? "SHOW TABLE STATUS" : "SELECT 'Engine'"); +odd(''); while ($row = $result->fetch_assoc()) { - $print = "" . htmlspecialchars($row["Name"]) . ""; + $print = "" . htmlspecialchars($row["Name"]) . ""; foreach (array('', 'DROP, CREATE', 'CREATE', 'CREATE, ALTER') as $val) { $print .= '"; } diff --git a/editing.inc.php b/editing.inc.php index c07d751b..16833b69 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -106,7 +106,7 @@ function process_type($field, $collate = "COLLATE") { function edit_fields($fields, $collations, $type = "TABLE") { global $inout; ?> - + @@ -118,14 +118,14 @@ function edit_fields($fields, $collations, $type = "TABLE") { - + $field) { $i++; $display = (isset($_POST["add"][$i-1]) || (isset($field["field"]) && !$_POST["drop_col"][$i])); ?> -> +> " maxlength="64" />" /> @@ -191,6 +191,7 @@ function type_change($count, $allowed = 0) {