worked a bit on the design of the tabs

This commit is contained in:
Ralf Becker 2002-10-09 00:32:04 +00:00
parent 0a02c90ac7
commit 5441331027

View File

@ -89,10 +89,13 @@
$tab_widget = new etemplate('etemplate.tab_widget'); $tab_widget = new etemplate('etemplate.tab_widget');
$tab_widget->set_cell_attribute('@tabs','obj',$tabs); $tab_widget->set_cell_attribute('@tabs','obj',$tabs);
if ($tmpl->tpls_in_file > 1)
$tab_widget->set_cell_attribute('@body','obj',new etemplate($selected_tab,$tmpl->as_array())); $stab = new etemplate($selected_tab,$tmpl->as_array());
else $options = array_pad(explode(',',$stab->size),3,'');
$tab_widget->set_cell_attribute('@body','name',$selected_tab); $options[3] = ($options[3]!= '' ? $options[3].' ':'') . 'tab_body';
$stab->size = implode(',',$options);
$tab_widget->set_cell_attribute('@body','obj',$stab);
$tab_widget->set_cell_attribute('@body','name',$selected_tab);
$cell['type'] = 'template'; $cell['type'] = 'template';
$cell['obj'] = &$tab_widget; $cell['obj'] = &$tab_widget;
@ -117,4 +120,4 @@
} }
return True; return True;
} }
} }