Changeset 2223 for trunk/admin/include/functions_tabsheet.inc.php
- Timestamp:
- Feb 28, 2008, 3:41:48 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_tabsheet.inc.php
r1912 r2223 42 42 { 43 43 global $page, $template; 44 //THIS SHOULD BE DEPRECATED ? 45 46 $template->set_filename('tabsheet', 'admin/tabsheet.tpl'); 47 $template->assign('tabsheet', $page['tabsheet']); 44 48 45 if (count($page['tabsheet']) > 0)49 foreach ($page['tabsheet'] as $tab_name => $tab) 46 50 { 47 $template->set_filename('tabsheet', 'admin/tabsheet.tpl'); 51 $is_selected = isset($tab['selected']) and $tab['selected'] === true; 52 if ($is_selected) 53 { 54 $template->assign_vars( 55 array('TABSHEET_TITLE' => '['.$tab['caption'].']')); 56 break; 57 } 58 } 48 59 49 foreach ($page['tabsheet'] as $tab_name => $tab) 50 { 51 $is_selected = isset($tab['selected']) and $tab['selected'] === true; 52 $template->assign_block_vars 53 ( 54 'tab', 55 array 56 ( 57 'CLASSNAME' => ($is_selected ? 'selected_tab' : 'normal_tab'), 58 'URL' => $tab['url'], 59 'CAPTION' => $tab['caption'] 60 ) 61 ); 62 63 if ($is_selected) 64 { 65 $template->assign_vars( 66 array('TABSHEET_TITLE' => '['.$tab['caption'].']')); 67 } 68 } 69 70 $template->assign_var_from_handle('TABSHEET', 'tabsheet'); 71 } 60 $template->assign_var_from_handle('TABSHEET', 'tabsheet'); 61 $template->clear_assign('tabsheet'); 72 62 } 73 63
Note: See TracChangeset
for help on using the changeset viewer.