Fixing question when using all in one page

skala
Julio Montoya 15 years ago
parent 0069725e98
commit 574d38f93c
  1. 2
      main/exercice/exercise.class.php
  2. 4
      main/exercice/exercise_result.php
  3. 2
      main/inc/lib/exercise_show_functions.lib.php

@ -2226,7 +2226,7 @@ class Exercise {
} }
} elseif($answerType == MULTIPLE_ANSWER_TRUE_FALSE) { } elseif($answerType == MULTIPLE_ANSWER_TRUE_FALSE) {
if ($origin!='learnpath') { if ($origin!='learnpath') {
ExerciseShowFunctions::display_multiple_answer_true_false($answerType, $studentChoice, $answer, $answerComment, $answerCorrect,0,0,0); ExerciseShowFunctions::display_multiple_answer_true_false($answerType, $studentChoice, $answer, $answerComment, $answerCorrect,0,$questionId,0);
} }
} elseif($answerType == MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE ) { } elseif($answerType == MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE ) {
if ($origin!='learnpath') { if ($origin!='learnpath') {

@ -198,7 +198,7 @@ foreach ($questionList as $questionId) {
unset($objQuestionTmp); unset($objQuestionTmp);
// decide how many columns we want to use to show the results of each type // decide how many columns we want to use to show the results of each type
if($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION) { if($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION || MULTIPLE_ANSWER_TRUE_FALSE) {
$colspan=4; $colspan=4;
} elseif($answerType == MATCHING || $answerType == FREE_ANSWER) { } elseif($answerType == MATCHING || $answerType == FREE_ANSWER) {
$colspan=2; $colspan=2;
@ -224,7 +224,7 @@ foreach ($questionList as $questionId) {
</td> </td>
</tr> </tr>
<?php <?php
if ($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION ) { if ($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION || $answerType == MULTIPLE_ANSWER_TRUE_FALSE) {
?> ?>
<tr> <tr>
<td width="5%" valign="top" align="center" nowrap="nowrap"> <td width="5%" valign="top" align="center" nowrap="nowrap">

@ -231,7 +231,7 @@ class ExerciseShowFunctions {
<td width="5%" align="center"> <td width="5%" align="center">
<?php <?php
$question = new MultipleAnswerTrueFalse(); $question = new MultipleAnswerTrueFalse();
$new_options = Question::readQuestionOption($questionId); $new_options = Question::readQuestionOption($questionId);
if (isset($new_options[$studentChoice])) { if (isset($new_options[$studentChoice])) {

Loading…
Cancel
Save