From 3cedec468ec25f96fa438d7211d355aff8ae4743 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 19 Oct 2005 15:01:54 +0000 Subject: [PATCH] added mark and hover effect to every table of class data --- ChangeLog | 2 ++ css/phpmyadmin.css.php | 24 ++++++++++++++++++---- libraries/functions.js | 46 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 67 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f74360789..348493663 100755 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,8 @@ $Source$ fix problem not remembering selected server * libraries/tooltip.js, themes/*/theme_right.css.php: moved not always needed code out of event handler, fixed display with larger font + * libraries/function.js, css/phpmyadmin.css.php: + added mark and hover effect to every table of class data 2005-10-18 Michal Čihař * libraries/relation.lib.php: Do not set database if not needed. diff --git a/css/phpmyadmin.css.php b/css/phpmyadmin.css.php index c1bbdfe32..b1e86d9da 100644 --- a/css/phpmyadmin.css.php +++ b/css/phpmyadmin.css.php @@ -355,17 +355,32 @@ span.tab, span.tabcaution { /* end topmenu */ /* odd table rows 1,3,5,7,... */ -table tbody tr.odd td, -table tbody tr.odd th { +table tr.odd { background-color: ; } /* even table rows 2,4,6,8,... */ -table tbody tr.even td, -table tbody tr.even th { +table tr.even { background-color: ; } +/* even table rows 2,4,6,8,... */ +table tr.marked { + background-color: ; +} + +/* even table rows 2,4,6,8,... */ +table.data tbody tr:hover, +table tr.hover { + background-color: ; +} + +table tr.even th, +table tr.odd th { + background-color: inherit; + color: inherit; +} + .value .attention { color: red; @@ -389,6 +404,7 @@ div#serverstatus table caption, div#serverstatus table th, div#serverstatus table td { padding: 0.1em 0.5em 0.1em 0.5em; + margin: 0; margin: 0.1em; vertical-align: top; } diff --git a/libraries/functions.js b/libraries/functions.js index fa659c7e6..0f85529ee 100644 --- a/libraries/functions.js +++ b/libraries/functions.js @@ -463,6 +463,50 @@ function checkTransmitDump(theForm, theAction) */ var marked_row = new Array; +/** + * enables highlight and marking of rows in data tables + */ +function tabdataInit() { + var tables = document.getElementsByTagName('table'); + for (var t=0; t