isPluginEnabled('wk')) { header('Location: feature_disabled.php'); exit(); } // End of access checks. if($user->can('manage_work')) { // $active_work = ttWorkHelper::getActiveWork(); // Active work items this group is outsourcing. // $inactive_work = ttWorkHelper::getInactiveWork(); // Inactive work items this group was outsourcing. } if($user->can('bid_on_work')) { // $available_work = ttWorkHelper::getAvailableWork(); // Currently available work items from other groups. } if($user->can('update_work')) { // $in_progress_work = ttWorkHelper::getInProgressWork(); // Work items in progress for other groups. // $completed_work = ttWorkHelper::getCompletedWork(); // Completed work items for other groups. } $smarty->assign('active_work', $active_work); $smarty->assign('inactive_work', $inactive_work); $smarty->assign('available_work', $available_work); $smarty->assign('in_progress_work', $in_progress_work); $smarty->assign('completed_work', $completed_work); $smarty->assign('title', $i18n->get('title.work')); $smarty->assign('content_page_name', 'work.tpl'); $smarty->display('index.tpl');