"index.php", "name" => get_lang('AdministrationTools')); //$interbredcrump[] = array ("url" => "survey.php", "name" => get_lang('a_survey')); $interbredcrump[] = array ("url" => "survey_list.php", "name" => get_lang('Survey')); $n='e'; $tool_name = get_lang('CreateFromExistingSurveys'); $surveyid=$_GET['surveyid']; if(isset($_POST['importexistingsurvey'])) { $db_name = $_POST['db_name']; $cidReq = $_REQUEST['cidReq']; $surveyid=$_REQUEST['surveyid']; header("location:attach_existingsurvey.php?cidReq=$cidReq&surveyid=$surveyid&n=$n&db_name=$db_name"); exit; } if(isset($_POST['back'])) { $db_name = $_POST['db_name']; $cidReq = $_REQUEST['cidReq']; header("location:survey_all_courses.php?cidReq=$cidReq&db_name=$db_name&n=$n"); exit; } if(isset($_POST['import'])) { $cidReq = $_REQUEST['cidReq']; $surveyid=$_REQUEST['surveyid']; $selectcount=count($_POST['course']); if($selectcount<=0) { $error_message=get_lang("PleaseSelectAChoice"); } else { $db_name = $_POST['db_name']; $cidReq = $_REQUEST['cidReq']; $gid_arr = $_REQUEST['course']; $gids = implode(",",$gid_arr); header("location:attach_survey.php?cidReq=$cidReq&surveyid=$surveyid&gids=$gids&db_name=$db_name"); exit; } } if(isset($_POST['view'])) { $db_name = $_POST['db_name']; $cidReq = $_REQUEST['cidReq']; $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?cidReq=$cidReq&surveyid=$surveyid&course=$course&n=$n&db_name=$db_name"); exit; } } Display :: display_header($tool_name); api_display_tool_title($tool_name); if( isset($error_message) ) { Display::display_error_message($error_message); } ?>
} else { echo get_lang('NoSearchResults'); } Display :: display_footer(); ?>