mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
worked a bit on the design of the tabs
This commit is contained in:
parent
0a02c90ac7
commit
5441331027
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user