";
echo $s;
/* */
if (isset($_POST['submit']))
{
echo "Form submited";
}
$i=0;
foreach($questionList as $questionId)
{
$i++;
// for sequential exercises
if($exerciseType == 2)
{
// if it is not the right question, goes to the next loop iteration
if($questionNum != $i)
{
continue;
}
else
{
// if the user has already answered this question
if(isset($exerciseResult[$questionId]))
{
// construction of the Question object
$objQuestionTmp=new Question();
// reads question informations
$objQuestionTmp->read($questionId);
$questionName=$objQuestionTmp->selectTitle();
// destruction of the Question object
unset($objQuestionTmp);
echo ''.get_lang('AlreadyAnswered').' "'.$questionName.'" | ';
break;
}
}
}
$s="
".get_lang('Question')." ";
$s.=$i;
if($exerciseType == 2) $s.=' / '.$nbrQuestions;
$s.=' | ';
echo $s;
// shows the question and its answers
showQuestion($questionId, false, $origin);
// for sequential exercises
if($exerciseType == 2)
{
// quits the loop
break;
}
} // end foreach()
$s="
|