diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 23edc6e9d3..e124597c0c 100644 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -1,4 +1,4 @@ - 0) { - $onsubmit = "onsubmit=\"return validateFlashVar('".$number_of_hotspot_questions."', '".get_lang('HotspotValidateError1')."', '".get_lang('HotspotValidateError2')."')\""; + $onsubmit = "onsubmit=\"return validateFlashVar('".$number_of_hotspot_questions."', '".get_lang('HotspotValidateError1')."', '".get_lang('HotspotValidateError2')."');\""; } $s="

$exerciseDescription

diff --git a/main/exercice/exercise_result.php b/main/exercice/exercise_result.php index ff0d94633d..525f0779b3 100644 --- a/main/exercice/exercise_result.php +++ b/main/exercice/exercise_result.php @@ -1,4 +1,4 @@ -read($questionId); $questionName=$objQuestionTmp->selectTitle(); @@ -301,6 +298,11 @@ $exerciseTitle=api_parse_tex($exerciseTitle); { $colspan=2; } + elseif($answerType == HOT_SPOT || $answerType == HOT_SPOT_ORDER) + { + $colspan=4; + $rowspan=$nbrAnswers+1; + } else { $colspan=1; @@ -362,7 +364,6 @@ $exerciseTitle=api_parse_tex($exerciseTitle); } elseif($answerType == HOT_SPOT) { - echo $questionId; ?> @@ -653,6 +654,12 @@ $exerciseTitle=api_parse_tex($exerciseTitle); } } } // end for that loops over all answers of the current question + + if ($answerType == HOT_SPOT || $answerType == HOT_SPOT_ORDER) + { + // We made an extra table for the answers + echo ""; + } ?>