Make tabs CSS styled (RFE #946540).
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* querywindow.php: Fix javascript error (bug #946823).
|
* querywindow.php: Fix javascript error (bug #946823).
|
||||||
* tbl_query_box.php: Stray <li> (bug #946530).
|
* tbl_query_box.php: Stray <li> (bug #946530).
|
||||||
* querywindow.php, tbl_query_box.php: A bit more XHTML validity.
|
* 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>
|
2004-05-03 Garvin Hicking <pma@supergarv.de>
|
||||||
* left.php: Bug #946501 - Nested table now also work with aliased
|
* 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 */
|
/* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
|
||||||
display: inline;
|
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 $PHP_SELF, $cfg;
|
||||||
global $db_details_links_count_tabs;
|
global $db_details_links_count_tabs;
|
||||||
|
|
||||||
if ($class != '') $class .= ' ';
|
if (!empty($class)) $class = ' class="' . $class . '"';
|
||||||
|
|
||||||
if (((!isset($GLOBALS['active_page']) && basename($PHP_SELF) == $link) ||
|
if (((!isset($GLOBALS['active_page']) && basename($PHP_SELF) == $link) ||
|
||||||
$active ||
|
$active ||
|
||||||
(isset($GLOBALS['active_page']) && $GLOBALS['active_page'] == $link)
|
(isset($GLOBALS['active_page']) && $GLOBALS['active_page'] == $link)
|
||||||
) && ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) {
|
) && ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) {
|
||||||
$bgcolor = 'silver';
|
$addclass = ' activetab';
|
||||||
} else {
|
} else {
|
||||||
$bgcolor = '#DFDFDF';
|
$addclass = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$db_details_links_count_tabs++;
|
$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']) {
|
if ($cfg['LightTabs']) {
|
||||||
$out = '';
|
$out = '';
|
||||||
if (strlen($link) > 0) {
|
if (strlen($link) > 0) {
|
||||||
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
|
$out .= '<a class="tab" href="' . $link . $sep . $args . '"' . $attr . $class . '>'
|
||||||
. '<b>' . $text . '</b></a>';
|
. '' . $text . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$out .= '<b class="nowrap">' . $text . '</b>';
|
$out .= '<span class="tab">' . $text . '</span>';
|
||||||
}
|
}
|
||||||
$out = '[ ' . $out . ' ] ';
|
$out = '[ ' . $out . ' ] ';
|
||||||
} else {
|
} else {
|
||||||
$out = "\n" . ' '
|
$out = "\n" . ' '
|
||||||
. '<td bgcolor="' . $bgcolor . '" align="center" width="64" class="tab nowrap">'
|
. '<td class="tab nowrap' . $addclass . '">'
|
||||||
. "\n" . ' ';
|
. "\n" . ' ';
|
||||||
if (strlen($link) > 0) {
|
if (strlen($link) > 0) {
|
||||||
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
|
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . $class . '>'
|
||||||
. '<b>' . $text . '</b></a>';
|
. $text . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$out .= '<b class="nowrap">' . $text . '</b>';
|
$out .= $text;
|
||||||
}
|
}
|
||||||
$out .= "\n" . ' '
|
$out .= "\n" . ' '
|
||||||
. '</td>'
|
. '</td>'
|
||||||
|
Reference in New Issue
Block a user