info("Administration ConfigureTabs view"); require_once("modules/MySettings/TabController.php"); $controller = new TabController(); $tabs = $controller->get_tabs_system(); $enabled= array(); foreach ($tabs[0] as $key=>$value) { $enabled[] = array("module" => $key, 'label' => translate($key)); } $disabled = array(); foreach ($tabs[1] as $key=>$value) { $disabled[] = array("module" => $key, 'label' => translate($key)); } $user_can_edit = $controller->get_users_can_edit(); $this->ss->assign('APP', $GLOBALS['app_strings']); $this->ss->assign('MOD', $GLOBALS['mod_strings']); $this->ss->assign('title', $title); $this->ss->assign('user_can_edit', $user_can_edit); $this->ss->assign('enabled_tabs', json_encode($enabled)); $this->ss->assign('disabled_tabs', json_encode($disabled)); $this->ss->assign('description', $mod_strings['LBL_CONFIG_TABS']); echo $this->ss->fetch('modules/Administration/ConfigureTabs.tpl'); ?>