|
|
|
@ -67,13 +67,13 @@ class ExerciseShowFunctions |
|
|
|
|
public static function display_calculated_answer($feedback_type, $answer, $id, $questionId) |
|
|
|
|
{ |
|
|
|
|
if (empty($id)) { |
|
|
|
|
echo '<tr><td>'. (Security::remove_XSS($answer)).'</td></tr>'; |
|
|
|
|
echo '<tr><td>'. Security::remove_XSS($answer).'</td></tr>'; |
|
|
|
|
} else { |
|
|
|
|
?> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<?php |
|
|
|
|
echo (Security::remove_XSS($answer)); |
|
|
|
|
echo Security::remove_XSS($answer); |
|
|
|
|
?> |
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ class ExerciseShowFunctions |
|
|
|
|
* @param int Question ID |
|
|
|
|
* @return void |
|
|
|
|
*/ |
|
|
|
|
static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null) |
|
|
|
|
public static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null) |
|
|
|
|
{ |
|
|
|
|
$comments = Event::get_comments($exe_id, $questionId); |
|
|
|
|
|
|
|
|
@ -117,7 +117,7 @@ class ExerciseShowFunctions |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null) |
|
|
|
|
public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null) |
|
|
|
|
{ |
|
|
|
|
if (isset($nano)) { |
|
|
|
|
echo $nano->show_audio_file(); |
|
|
|
@ -236,7 +236,7 @@ class ExerciseShowFunctions |
|
|
|
|
* @param boolean Whether to show the answer comment or not |
|
|
|
|
* @return void |
|
|
|
|
*/ |
|
|
|
|
static function display_unique_or_multiple_answer( |
|
|
|
|
public static function display_unique_or_multiple_answer( |
|
|
|
|
$feedback_type, |
|
|
|
|
$answerType, |
|
|
|
|
$studentChoice, |
|
|
|
@ -257,7 +257,7 @@ class ExerciseShowFunctions |
|
|
|
|
$icon .= $studentChoice?'_on':'_off'; |
|
|
|
|
$icon .= '.gif'; |
|
|
|
|
|
|
|
|
|
$iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION))) ? 'radio':'checkbox'; |
|
|
|
|
$iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox'; |
|
|
|
|
$iconAnswer .= $answerCorrect?'_on':'_off'; |
|
|
|
|
$iconAnswer .= '.gif'; |
|
|
|
|
|
|
|
|
@ -326,7 +326,7 @@ class ExerciseShowFunctions |
|
|
|
|
* @param boolean Whether to show the answer comment or not |
|
|
|
|
* @return void |
|
|
|
|
*/ |
|
|
|
|
static function display_multiple_answer_true_false( |
|
|
|
|
public static function display_multiple_answer_true_false( |
|
|
|
|
$feedback_type, |
|
|
|
|
$answerType, |
|
|
|
|
$studentChoice, |
|
|
|
|