"survey_list.php", "name" => get_lang('Survey')); $tool_name = get_lang('SelectQuestion'); $Sname = get_lang('SurveyName'); $GName = get_lang('GroupName'); $Author = get_lang('Author'); $surveyid=$_REQUEST['surveyid']; $groupid=$_REQUEST['groupid']; //$sname =surveymanager::get_surveyname($surveyid); $gide=$_REQUEST['course']; $gid1=explode(",",$gide); $table_survey_question = Database :: get_course_table(TABLE_SURVEY_QUESTION); if($gide) { $gid1=$gid1; } else { $gid1=explode(",",$_REQUEST['gid1']); } for($r=0;$r
$gidi); $parameters['surveyid']=$surveyid; $parameters['groupid']=$groupid; $parameters['course']=$_REQUEST['course']; */ $res = api_sql_query($sql,__FILE__,__LINE__); while ($obj = mysql_fetch_object($res)) { $question = array (); $question[] = ''; $question[] = $obj->caption; $question[] = $obj->qtype; $groupid = $obj->gid; $GName = surveymanager::get_groupname($db_name,$groupid); $question[] = $GName; $sid = surveymanager::get_surveyid($db_name,$groupid); $sname = surveymanager::get_surveyname($db_name,$sid); $question[] = $sname; /**********for displaying the 'edit' 'delete' etc. buttons***********/ $url = "default.php?qid=".$obj->qid."&qtype=".$obj->qtype."&surveyid=".$surveyid."&groupid=".$groupid."&db_name=".$db_name; $question[] = "\"".get_lang('ViewQues')."\""; $questions[] = $question; $datacount++; } } $table_header[] = array (' ', false); $table_header[] = array (get_lang('Question'), true); $table_header[] = array (get_lang('QuestionType'), true); $table_header[] = array (get_lang('Group'),true); $table_header[] = array (get_lang('SurveyName'),true); $table_header[] = array('', false); if($datacount>0) Display :: display_sortable_table($table_header, $questions, array (), array (), $parameters); else { $noquestions=get_lang('NoQuestionAvailableInThisGroup'); api_display_tool_title($noquestions); } ?>