$htabs_current = "";
$htabs_tabs = array();
function htabs_begin($name, $tabs, $selected)
{
global $htabs_current, $htabs_tabs;
echo "
";
foreach($tabs as $t=>$d) {
$sel = ($t == $selected) ? 'class=\"htabs_sel\"' : '';
echo "- ".i18n($d['label']).'
';
$tabs[$t]['selected'] = false;
}
echo '
';
/* Force the upcoming divs below this UL */
echo '';
$tabs[$selected]['selected'] = true;
$htabs_current = $name;
$htabs_tabs = $tabs;
}
function htabs_tab_begin($tab)
{
global $htabs_current, $htabs_tabs;
echo "";
echo '
'.i18n($htabs_tabs[$tab]['title']).'
';
echo "
";
}
function htabs_tab_end()
{
echo '
';
}
function htabs_end()
{
global $htabs_current, $htabs_tabs;
$default = '';
$first = '';
echo '';
$htabs_current = "";
$htabs_tabs = array();
}
?>