Make tabs CSS styled (RFE #946540).
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
||||
* querywindow.php: Fix javascript error (bug #946823).
|
||||
* tbl_query_box.php: Stray <li> (bug #946530).
|
||||
* querywindow.php, tbl_query_box.php: A bit more XHTML validity.
|
||||
* css/phpmyadmin.css.php, libraries/common.lib.php: Make tabs CSS styled
|
||||
(RFE #946540).
|
||||
|
||||
2004-05-03 Garvin Hicking <pma@supergarv.de>
|
||||
* left.php: Bug #946501 - Nested table now also work with aliased
|
||||
|
@@ -310,3 +310,32 @@ button {
|
||||
/* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
|
||||
/* For both light and non light */
|
||||
.tab {
|
||||
white-space: nowrap;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/* For non light */
|
||||
td.tab {
|
||||
width: 64px;
|
||||
text-align: center;
|
||||
background-color: #dfdfdf;
|
||||
}
|
||||
|
||||
td.tab a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* For light */
|
||||
div.tab {
|
||||
}
|
||||
|
||||
/* Highlight active tab */
|
||||
td.activetab {
|
||||
background-color: silver;
|
||||
}
|
||||
|
||||
|
@@ -1668,50 +1668,37 @@ if (typeof(document.getElementById) != 'undefined'
|
||||
global $PHP_SELF, $cfg;
|
||||
global $db_details_links_count_tabs;
|
||||
|
||||
if ($class != '') $class .= ' ';
|
||||
if (!empty($class)) $class = ' class="' . $class . '"';
|
||||
|
||||
if (((!isset($GLOBALS['active_page']) && basename($PHP_SELF) == $link) ||
|
||||
$active ||
|
||||
(isset($GLOBALS['active_page']) && $GLOBALS['active_page'] == $link)
|
||||
) && ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) {
|
||||
$bgcolor = 'silver';
|
||||
$addclass = ' activetab';
|
||||
} else {
|
||||
$bgcolor = '#DFDFDF';
|
||||
$addclass = '';
|
||||
}
|
||||
|
||||
$db_details_links_count_tabs++;
|
||||
if (!empty($attr)) {
|
||||
if ($cfg['LightTabs']) {
|
||||
$attr = ' ' . $attr;
|
||||
} else {
|
||||
$attr = ' style="display:block" ' . $attr;
|
||||
}
|
||||
} else {
|
||||
if ($cfg['LightTabs']) {
|
||||
$attr = ' ';
|
||||
} else {
|
||||
$attr = ' style="display:block" ';
|
||||
}
|
||||
}
|
||||
|
||||
if ($cfg['LightTabs']) {
|
||||
$out = '';
|
||||
if (strlen($link) > 0) {
|
||||
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
|
||||
. '<b>' . $text . '</b></a>';
|
||||
$out .= '<a class="tab" href="' . $link . $sep . $args . '"' . $attr . $class . '>'
|
||||
. '' . $text . '</a>';
|
||||
} else {
|
||||
$out .= '<b class="nowrap">' . $text . '</b>';
|
||||
$out .= '<span class="tab">' . $text . '</span>';
|
||||
}
|
||||
$out = '[ ' . $out . ' ] ';
|
||||
} else {
|
||||
$out = "\n" . ' '
|
||||
. '<td bgcolor="' . $bgcolor . '" align="center" width="64" class="tab nowrap">'
|
||||
. '<td class="tab nowrap' . $addclass . '">'
|
||||
. "\n" . ' ';
|
||||
if (strlen($link) > 0) {
|
||||
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
|
||||
. '<b>' . $text . '</b></a>';
|
||||
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . $class . '>'
|
||||
. $text . '</a>';
|
||||
} else {
|
||||
$out .= '<b class="nowrap">' . $text . '</b>';
|
||||
$out .= $text;
|
||||
}
|
||||
$out .= "\n" . ' '
|
||||
. '</td>'
|
||||
|
Reference in New Issue
Block a user