jmontoyaa 8 years ago
parent e62face7db
commit b9981c7d37
  1. 27
      main/inc/lib/exercise_show_functions.lib.php

@ -366,6 +366,22 @@ class ExerciseShowFunctions
?>
</td>
<?php
$status = Display::label(get_lang('Incorrect'), 'danger');
if ($studentChoice) {
if ($answerCorrect) {
$status = Display::label(get_lang('Correct'), 'success');
}
}
?>
<td width="20%">
<?php
echo $status;
?>
</td>
<?php if ($feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { ?>
<td width="20%">
<?php
@ -474,10 +490,14 @@ class ExerciseShowFunctions
}
?>
</td>
<td width="40%">
<td width="30%">
<?php echo $answer; ?>
</td>
<td width="20%">
<?php echo $status; ?>
</td>
<?php if ($feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { ?>
<td width="20%">
<?php
@ -573,14 +593,13 @@ class ExerciseShowFunctions
}
?>
</td>
<td width="40%">
<td width="30%">
<?php
//my answer
echo $answer;
?>
</td>
<?php
<?php
$status = '';
if (isset($studentChoice)) {

Loading…
Cancel
Save