"survey_list.php?cidReq=$cidReq&n=$n", "name" => get_lang('Survey')); $table_question = Database :: get_course_table('questions'); $Add = get_lang('AddNewQuestionType'); $Multi = get_lang('YesNo'); $groupid = $_REQUEST['groupid']; $surveyid = $_REQUEST['surveyid']; //$tool_name = get_lang('QuestionType'); if ($_POST['action'] == 'addquestion') { if(isset($_POST['next'])) { $enter_question=$_POST['enterquestion']; $answers=$_POST['mutlichkboxtext']; $rating=$_POST['chkboxpoint']; $answerT=$_POST['radiotrue']; $answerD=$_POST['radiodefault']; $alignment=''; $open_ans=""; $count=count($_POST['mutlichkboxtext']); $noans=0; $nopoint=0; for($i=0;$i<$count;$i++) { $answers[$i]=trim($answers[$i]); if(empty($answers[$i])) $noans++; if(!is_numeric($rating[$i])) $number=1; } $enter_question=trim($enter_question); if(empty($enter_question)) $error_message = get_lang('PleaseEnterAQuestion')."
"; if ($noans) $error_message = $error_message."
".get_lang('PleasFillAllAnswer'); if(isset($error_message)) { //Display::display_error_message($error_message); } else { $groupid = $_POST['groupid']; $questtype = $_REQUEST['questtype']; $curr_dbname = $_REQUEST['curr_dbname']; $enter_question = addslashes($enter_question); SurveyManager::create_question($groupid,$surveyid,$questtype,$enter_question,$alignment,$answers,$open_ans,$answerT,$answerD,$rating,$curr_dbname); $cidReq = $_GET['cidReq']; header("location:select_question_group.php?groupid=$groupid&surveyid=$surveyid&cidReq=$cidReq&curr_dbname=$curr_dbname"); exit; } } elseif(isset($_POST['back'])) { $groupid = $_REQUEST['groupid']; $surveyid = $_REQUEST['surveyid']; $cidReq = $_GET['cidReq']; $curr_dbname = $_REQUEST['curr_dbname']; header("location:addanother.php?groupid=$groupid&surveyid=$surveyid&cidReq=$cidReq&curr_dbname=$curr_dbname"); exit; } elseif(isset($_POST['saveandexit'])) { $enter_question=$_POST['enterquestion']; $answers=$_POST['mutlichkboxtext']; $rating=$_POST['chkboxpoint']; $answerT=$_POST['radiotrue']; $answerD=$_POST['radiodefault']; $alignment=''; $open_ans=""; $count=count($_POST['mutlichkboxtext']); $noans=0; $nopoint=0; for($i=0;$i<$count;$i++) { $answers[$i]=trim($answers[$i]); if(empty($answers[$i])) $noans++; if(empty($rating[$i])&&($rating[$i]!='0')) $nopoint++; } $enter_question=trim($enter_question); if(empty($enter_question)) $error_message = get_lang('PleaseEnterAQuestion')."
"; if ($noans) $error_message = $error_message."
".get_lang('PleasFillAllAnswer'); if(isset($error_message)) { //Display::display_error_message($error_message); } else { $groupid = $_REQUEST['groupid']; $surveyid = $_REQUEST['surveyid']; $questtype = $_REQUEST['questtype']; $curr_dbname = $_REQUEST['curr_dbname']; $enter_question = addslashes($enter_question); SurveyManager::create_question($groupid,$surveyid,$questtype,$enter_question,$alignment,$answers,$open_ans,$answerT,$answerD,$rating,$curr_dbname); $cidReq = $_GET['cidReq']; header("location:survey_list.php?cidReq=$cidReq&n=$n"); exit; } } } ?>
Question
Enter the question.  
BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; $oFCKeditor->Height = '300'; $oFCKeditor->Width = '400'; $oFCKeditor->Value = $enterquestion; $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; $oFCKeditor->ToolbarSet = "Survey"; $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'"; $result_sql=api_sql_query($sql); $isocode_language=mysql_result($result_sql,0,0); $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; $return = $oFCKeditor->CreateHtml(); echo $return; ?>

Answer
Enter the answers.    
10) $end=10; } else $end=10; //echo ",while checking select end=".$end; /*else $end=$end+$_POST['addnewrows'];*/ } } //echo ",after select end=".$end; for($i=$start;$i<=$end;$i++) { if($i==$jd) /*{ if($end<=3); else; //continue; }*/ { $end++; } else { $k=$i-1; $post_text = $_POST['mutlichkboxtext']; //$post_check=$_POST['radiodefault']; $post_point=$_POST['chkboxpoint']; //$post_true=$_POST['radiotrue']; ?> $start) { ?>
" style="cursor:hand"> " style="cursor:hand">


template) { case "template1": $temp = 'white'; break; case "template2": $temp = 'bluebreeze'; break; case "template3": $temp = 'brown'; break; case "template4": $temp = 'grey'; break; case "template5": $temp = 'blank'; break; } ?>