"survey_list.php", "name" => get_lang('Survey')); $cidReq = $_REQUEST['cidReq']; $db_name = $_REQUEST['db_name']; $curr_dbname = $_REQUEST['curr_dbname']; $tool_name = get_lang('SelectQuestion'); $Sname = get_lang('SurveyName'); $GName = get_lang('groupname'); $Author = get_lang('Author'); $surveyid=$_REQUEST['surveyid']; $groupid=$_REQUEST['groupid']; $sid = $_REQUEST['sid']; //$sname =surveymanager::get_surveyname($surveyid,$db_name); $table_group = Database :: get_course_table('survey_group'); $table_question = Database :: get_course_table('questions'); $gide=$_POST['course']; $arraycount=0; $arraycount=count($_REQUEST['course']); if($_REQUEST['gid1']) { $gid1=explode(",",$_REQUEST['gid1']); } else { $gid1=$_REQUEST['course']; } for($r=0;$r
qid.'"/>'; $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."&cidReq=".$cidReq."&surveyid=".$surveyid."&groupid=".$groupid."&db_name=".$db_name; $question[] = "\"".get_lang('Info')."\""; $questions[] = $question; $datacount++; } } $table_header[] = array (' ', false); $table_header[] = array (get_lang('Question'), true); $table_header[] = array (get_lang('QuestionType1'), 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); } ?>
">