"survey_list.php", "name" => get_lang('Survey')); $n='e'; $tool_name = get_lang('CreateFromExistingSurveys'); $surveyid=$_GET['surveyid']; if(isset($_POST['importexistingsurvey'])) { $surveyid=$_REQUEST['surveyid']; header("location:attach_existingsurvey.php?surveyid=$surveyid&n=$n"); exit; } if(isset($_POST['back'])) { header("location:survey_all_courses.php?n=$n"); exit; } if(isset($_POST['import'])) { $surveyid=$_REQUEST['surveyid']; $selectcount=count($_POST['course']); if($selectcount<=0) { $error_message=get_lang('PleaseSelectAChoice'); } else { $gid_arr = $_REQUEST['course']; $gids = implode(",",$gid_arr); header("location:attach_survey.php?surveyid=$surveyid&gids=$gids"); exit; } } if(isset($_POST['view'])) { $surveyid=$_REQUEST['surveyid']; $selectcount=count($_POST['course']); if($selectcount<=0) { $error_message=get_lang('PleaseSelectAChoice'); } else { $course=implode(",",$_REQUEST['course']); header("location:question_list.php?surveyid=$surveyid&course=$course&n=$n"); exit; } } Display :: display_header($tool_name); api_display_tool_title($tool_name); if( isset($error_message) ) { Display::display_error_message($error_message); } ?>