Be valid XHTML.

This commit is contained in:
Michal Čihař
2004-04-27 11:54:54 +00:00
parent ea13babc3a
commit 04229e997f
14 changed files with 167 additions and 141 deletions

View File

@@ -1663,10 +1663,12 @@ if (typeof(document.getElementById) != 'undefined'
*
* @access public
*/
function PMA_printTab($text, $link, $args = '', $attr = '', $sep = '?', $active = false) {
function PMA_printTab($text, $link, $args = '', $attr = '', $class = '', $sep = '?', $active = false) {
global $PHP_SELF, $cfg;
global $db_details_links_count_tabs;
if ($class != '') $class .= ' ';
if (((!isset($GLOBALS['active_page']) && basename($PHP_SELF) == $link) ||
$active ||
(isset($GLOBALS['active_page']) && $GLOBALS['active_page'] == $link)
@@ -1694,21 +1696,21 @@ if (typeof(document.getElementById) != 'undefined'
if ($cfg['LightTabs']) {
$out = '';
if (strlen($link) > 0) {
$out .= '<nobr><a href="' . $link . $sep . $args . '"' . $attr . '>'
. '<b>' . $text . '</b></a></nobr>';
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
. '<b>' . $text . '</b></a>';
} else {
$out .= '<nobr><b>' . $text . '</b></nobr>';
$out .= '<b class="nowrap">' . $text . '</b>';
}
$out = '[ ' . $out . ' ]&nbsp;&nbsp;&nbsp;';
} else {
$out = "\n" . ' '
. '<td bgcolor="' . $bgcolor . '" align="center" width="64" nowrap="nowrap" class="tab">'
. '<td bgcolor="' . $bgcolor . '" align="center" width="64" class="tab nowrap">'
. "\n" . ' ';
if (strlen($link) > 0) {
$out .= '<nobr><a href="' . $link . $sep . $args . '"' . $attr . '>'
. '<b>' . $text . '</b></a></nobr>';
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . ' class="' . $class . 'nowrap">'
. '<b>' . $text . '</b></a>';
} else {
$out .= '<nobr><b>' . $text . '</b></nobr>';
$out .= '<b class="nowrap">' . $text . '</b>';
}
$out .= "\n" . ' '
. '</td>'