"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); } ?>
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); ?>