main/inc/lib/exercise.lib.php 1 location
|
@@ 3612-3618 (lines=7) @@
|
| 3609 |
|
} |
| 3610 |
|
|
| 3611 |
|
$comnt = null; |
| 3612 |
|
if ($show_results) { |
| 3613 |
|
$comnt = Event::get_comments($exe_id, $questionId); |
| 3614 |
|
if (!empty($comnt)) { |
| 3615 |
|
echo '<b>' . get_lang('Feedback') . '</b>'; |
| 3616 |
|
echo '<div id="question_feedback">' . $comnt . '</div>'; |
| 3617 |
|
} |
| 3618 |
|
} |
| 3619 |
|
|
| 3620 |
|
if ($show_results) { |
| 3621 |
|
$score = array( |
main/exercice/exercise_show.php 1 location
|
@@ 721-728 (lines=8) @@
|
| 718 |
|
$feedback_form->display(); |
| 719 |
|
echo '</div>'; |
| 720 |
|
|
| 721 |
|
} else { |
| 722 |
|
$comnt = Event::get_comments($id, $questionId); |
| 723 |
|
echo '<br />'; |
| 724 |
|
if (!empty($comnt)) { |
| 725 |
|
echo '<b>'.get_lang('Feedback').'</b>'; |
| 726 |
|
echo '<div id="question_feedback">'.$comnt.'</div>'; |
| 727 |
|
} |
| 728 |
|
} |
| 729 |
|
|
| 730 |
|
if ($is_allowedToEdit && $isFeedbackAllowed) { |
| 731 |
|
if (in_array($answerType, array(FREE_ANSWER, ORAL_EXPRESSION))) { |
main/exercice/exercise.class.php 1 location
|
@@ 7827-7833 (lines=7) @@
|
| 7824 |
|
} |
| 7825 |
|
|
| 7826 |
|
$comnt = null; |
| 7827 |
|
if ($show_results) { |
| 7828 |
|
$comnt = get_comments($exe_id, $questionId); |
| 7829 |
|
if (!empty($comnt)) { |
| 7830 |
|
echo '<b>'.get_lang('Feedback').'</b>'; |
| 7831 |
|
echo '<div id="question_feedback">'.$comnt.'</div>'; |
| 7832 |
|
} |
| 7833 |
|
} |
| 7834 |
|
|
| 7835 |
|
$score = array(); |
| 7836 |
|
$score['result'] = get_lang('Score')." : ".ExerciseLib::show_score($my_total_score, $my_total_weight, false, true); |