diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 96e55c9b94..e10955c3b5 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -453,11 +453,11 @@ @param $selected ? @param $fontsize optional */ - function create_tabs($tabs, $selected, $fontsize = '') + function create_tabs($tabs, $selected) { - $output_text = ''; + $output_text = '
'; - /* This is a php3 workaround */ + /* This is a php3 workaround if(PHPGW_IMAGES_DIR == 'PHPGW_IMAGES_DIR') { $ir = ExecMethod('phpgwapi.phpgw.common.get_image_path', 'phpgwapi'); @@ -465,13 +465,7 @@ else { $ir = PHPGW_IMAGES_DIR; - } - - if ($fontsize) - { - $fs = ''; - $fse = ''; - } + } */ $i = 1; while ($tab = each($tabs)) @@ -480,54 +474,54 @@ { if ($i == 1) { - $output_text .= ''; + $output_text .= ''; } - $output_text .= ''; if ($i == count($tabs)) { - $output_text .= ''; + $output_text .= ''; } else { - $output_text .= ''; + $output_text .= ''; } } else { if ($i == 1) { - $output_text .= ''; + $output_text .= ''; } - $output_text .= ''; if (($i + 1) == $selected) { - $output_text .= ''; + $output_text .= ''; } elseif ($i == $selected || $i != count($tabs)) { - $output_text .= ''; + $output_text .= ''; } elseif ($i == count($tabs)) { if ($i == $selected) { - $output_text .= ''; + $output_text .= ''; } else { - $output_text .= ''; + $output_text .= ''; } } else { if ($i != count($tabs)) { - $output_text .= ''; + $output_text .= ''; } } }
  ' . $fs . $tab[1]['label'] . $fse . '   ' . $fs . $tab[1]['label'] . $fse . '