FetchRow(); $ia = array(0 => $qid, 1 => $surveyid.'X'.$qrows['gid'].'X'.$qid, 2 => $qrows['title'], 3 => $qrows['question'], 4 => $qrows['type'], 5 => $qrows['gid'], 6 => $qrows['mandatory'], 7 => 'N', 8 => 'N' ); // ia[8] is usedinconditions $radix=getRadixPointData($thissurvey['surveyls_numberformat']); $radix = $radix['seperator']; $surveyOptions = array( 'radix'=>$radix, ); LimeExpressionManager::StartSurvey($thissurvey['sid'], 'question', $surveyOptions, false,$LEMdebugLevel); $qseq = LimeExpressionManager::GetQuestionSeq($qid); $moveResult = LimeExpressionManager::JumpTo($qseq+1,true,false,true); $answers = retrieveAnswers($ia); if (!$thissurvey['template']) { $thistpl=sGetTemplatePath($defaulttemplate); } else { $thistpl=sGetTemplatePath(validate_templatedir($thissurvey['template'])); } doHeader(); $showQuestion = "$('#question$qid').show();"; $dummy_js = <<< EOD EOD; $answer=$answers[0][1]; //GET HELP $hquery="SELECT help FROM {$dbprefix}questions WHERE qid=$ia[0] AND language='".$_SESSION['s_lang']."'"; $hresult=db_execute_num($hquery) or safe_die($connect->ErrorMsg()); //Checked $help=""; while ($hrow=$hresult->FetchRow()) {$help=$hrow[0];} $question = $answers[0][0]; $question['code']=$answers[0][5]; $question['class'] = question_class($qrows['type']); $question['essentials'] = 'id="question'.$qrows['qid'].'"'; $question['sgq']=$ia[1]; $question['aid']='unknown'; $question['sqid']='unknown'; $question['type']= $qrows['type']; if ($qrows['mandatory'] == 'Y') { $question['man_class'] = ' mandatory'; } else { $question['man_class'] = ''; }; $content = templatereplace(file_get_contents("$thistpl/startpage.pstpl")); $content .='
'; LimeExpressionManager::FinishProcessingPage(); echo $content; if ($LEMdebugLevel >= 1) { echo LimeExpressionManager::GetDebugTimingMessage(); } if ($LEMdebugLevel >= 2) { echo "| Group/Question Validation Results:".$moveResult['message']." |