|
|
|
|
@ -140,14 +140,23 @@ class ExerciseShowFunctions |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param $feedback_type |
|
|
|
|
* @param $answer |
|
|
|
|
* @param $id |
|
|
|
|
* @param $questionId |
|
|
|
|
* @param null $nano |
|
|
|
|
* @param int $results_disabled |
|
|
|
|
* @param $feedback_type |
|
|
|
|
* @param $answer |
|
|
|
|
* @param $id |
|
|
|
|
* @param $questionId |
|
|
|
|
* @param null $fileUrl |
|
|
|
|
* @param int $results_disabled |
|
|
|
|
* @param int $questionScore |
|
|
|
|
*/ |
|
|
|
|
public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $fileUrl = null, $results_disabled = 0) |
|
|
|
|
public static function display_oral_expression_answer( |
|
|
|
|
$feedback_type, |
|
|
|
|
$answer, |
|
|
|
|
$id, |
|
|
|
|
$questionId, |
|
|
|
|
$fileUrl = null, |
|
|
|
|
$results_disabled = 0, |
|
|
|
|
$questionScore = 0 |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
if (isset($fileUrl)) { |
|
|
|
|
echo ' |
|
|
|
|
@ -161,7 +170,7 @@ class ExerciseShowFunctions |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo Display::tag('td', Security::remove_XSS($answer), array('width'=>'55%')); |
|
|
|
|
echo '</tr>'; |
|
|
|
|
if ($feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { |
|
|
|
|
if (!$questionScore && $feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo Display::tag('td', ExerciseLib::getNotCorrectedYetText(), array('width'=>'45%')); |
|
|
|
|
echo '</tr>'; |
|
|
|
|
|