api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(), 'name' => get_lang('StudentPublications')); $interbreadcrumb[] = array('url' => api_get_path(WEB_CODE_PATH).'work/work_list_all.php?'.api_get_cidreq().'&id='.$workId, 'name' => $my_folder_data['title']); $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('AddUser')); $error_message = null; switch ($action) { case 'add': $data = getUserToWork($userId, $workId, api_get_course_int_id()); if (empty($data)) { addUserToWork($userId, $workId, api_get_course_int_id()); } $url = api_get_path(WEB_CODE_PATH).'work/add_user.php?id='.$workId; header('Location: '.$url); exit; break; case 'delete': if (!empty($workId) && !empty($userId)) { deleteUserToWork($userId, $workId, api_get_course_int_id()); $url = api_get_path(WEB_CODE_PATH).'work/add_user.php?id='.$workId; header('Location: '.$url); exit; } break; } Display :: display_header(null); $items = getAllUserToWork($workId, api_get_course_int_id()); $usersAdded = array(); if (!empty($items)) { echo Display::page_subheader(get_lang('UsersAdded')); echo '