"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); } ?>
0) { $surveys = array (); while ($obj = mysql_fetch_object($res)) { $survey = array (); $survey[] = ''; $survey[] = $obj->groupname; $groupid=$obj->group_id; //$surveyid=surveymanager::get_surveyid($groupid); $authorid=surveymanager::get_author($db_name,$surveyid); $author=surveymanager::get_survey_author($authorid); $NoOfQuestion=surveymanager::no_of_question($db_name,$groupid); $survey[] = $NoOfQuestion; $survey[] = $author; $surveys[] = $survey; } $table_header[] = array (' ', false); $table_header[] = array (get_lang('QuesGroup'), true); $table_header[] = array (get_lang('NoOfQuestions'), true); $table_header[] = array (get_lang('author'), true); Display :: display_sortable_table($table_header, $surveys, array (), array (), $parameters); ?>