|
|
|
|
@ -289,7 +289,14 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme |
|
|
|
|
<tr> |
|
|
|
|
<td colspan="2"> |
|
|
|
|
<?php $exerciseTitle=api_parse_tex($test); |
|
|
|
|
$query = "select * from `".$TABLETRACK_ATTEMPT."` where exe_id='$id' group by question_id"; |
|
|
|
|
|
|
|
|
|
$query = "select * from `".$TABLETRACK_ATTEMPT."` as attempts |
|
|
|
|
INNER JOIN `".$TABLETRACK_EXERCICES."` as stats_exercices ON stats_exercices.exe_id=attempts.exe_id |
|
|
|
|
INNER JOIN ".$TBL_EXERCICE_QUESTION." as quizz_rel_questions ON quizz_rel_questions.exercice_id=stats_exercices.exe_exo_id |
|
|
|
|
INNER JOIN ".$TBL_QUESTIONS." as questions ON questions.id=quizz_rel_questions.question_id |
|
|
|
|
WHERE attempts.exe_id='$id' |
|
|
|
|
GROUP BY questions.position"; |
|
|
|
|
|
|
|
|
|
$result =api_sql_query($query, __FILE__, __LINE__); |
|
|
|
|
?> |
|
|
|
|
<h3><?php echo stripslashes($test)?>: <?php echo get_lang("Result"); ?></h3>
|
|
|
|
|
|