"survey_list.php?", "name" => get_lang('Survey')); $coursePathWeb = api_get_path(WEB_COURSE_PATH); $coursePathSys = api_get_path(SYS_COURSE_PATH); $groupid = $_GET['groupid']; $surveyid = $_GET['surveyid']; if($_POST['action'] == 'new_group') { if(isset($_POST['back'])) { $cidReq = $_REQUEST['cidReq']; $surveyid = $_REQUEST['surveyid']; $curr_dbname = $_REQUEST['curr_dbname']; header("location:create_new_group.php?surveyid=$surveyid&cidReq=$cidReq&curr_dbname=$curr_dbname"); exit; } } if ($_POST['action'] == 'new_group') { $surveyid = $_POST['surveyid']; $groupid = $_POST['groupid']; $groupname = $_POST['groupname']; $groupname=trim($groupname); if(empty ($groupname)) { $error_message = get_lang('PleaseEnterGroupName'); } $introduction = $_REQUEST['content']; $curr_dbname = $_REQUEST['curr_dbname']; if(isset($_POST['next'])) { $cidReq = $_GET['cidReq']; $curr_dbname = $_REQUEST['curr_dbname']; $groupname=trim($groupname); if(empty ($groupname)) { $error_message = get_lang('PleaseEnterGroupName'); } else { SurveyManager::update_group($groupid,$surveyid,$groupname,$introduction,$curr_dbname); header("location:select_question_group.php?surveyid=$surveyid&cidReq=$cidReq&curr_dbname=$curr_dbname"); exit; } } if(isset($_POST['saveandexit'])) { $cidReq = $_GET['cidReq']; $groupname=trim($groupname); if(empty ($groupname)) { $error_message = get_lang('PleaseEnterGroupName'); } else { SurveyManager::update_group($groupid,$surveyid,$groupname,$introduction,$curr_dbname); header("location:survey_list.php?cidReq=$cidReq"); exit; } } } Display::display_header($tool_name1); api_display_tool_title($tool_name); if( isset($error_message) ) { Display::display_error_message($error_message); } ?> groupname; $introduction = $obj->introduction; ?>