From db7e387a6799b298fc3f4fac9d0d2e699affe198 Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Mon, 20 Apr 2009 18:38:00 +0200 Subject: [PATCH] [svn r19894] show correct or incorrect in hostspot result see FS#4031 --- main/exercice/exercice_submit.php | 11 ++++++-- main/exercice/exercise_result.php | 17 ++++-------- main/exercice/exercise_show.php | 10 ++++--- main/exercice/question_list_admin.inc.php | 34 ++++++++++------------- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 6d66748e41..3382cb2711 100644 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -1,4 +1,4 @@ - + diff --git a/main/exercice/exercise_show.php b/main/exercice/exercise_show.php index a78bf45084..17568d0d9c 100644 --- a/main/exercice/exercise_show.php +++ b/main/exercice/exercise_show.php @@ -4,7 +4,7 @@ * * @package dokeos.exercise * @author Julio Montoya Armas Added switchable fill in blank option added -* @version $Id: exercise_show.php 19813 2009-04-17 00:19:28Z cvargas1 $ +* @version $Id: exercise_show.php 19894 2009-04-20 16:38:00Z cvargas1 $ * * @todo remove the debug code and use the general debug library * @todo use the Database:: functions @@ -307,6 +307,9 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme + + + selectAnswer($answerId); $answerComment=$objAnswerTmp->selectComment($answerId); $answerCorrect=$objAnswerTmp->isCorrect($answerId); - $answerWeighting=$objAnswerTmp->selectWeighting($answerId); + $answerWeighting=$objAnswerTmp->selectWeighting($answerId); $TBL_TRACK_HOTSPOT = Database::get_statistic_table(TABLE_STATISTIC_TRACK_E_HOTSPOT); $query = "select hotspot_correct from ".$TBL_TRACK_HOTSPOT." where hotspot_exe_id = '".Database::escape_string($id)."' and hotspot_question_id= '".Database::escape_string($questionId)."' AND hotspot_answer_id='".Database::escape_string($answerId)."'"; $resq=api_sql_query($query); $choice = Database::result($resq,0,"hotspot_correct"); - display_hotspot_answer($answerId,$answer,$choice,$answerComment); - + display_hotspot_answer($answerId,$answer,$choice,$answerComment); $i++; } $queryfree = "select marks from ".$TBL_TRACK_ATTEMPT." where exe_id = '".Database::escape_string($id)."' and question_id= '".Database::escape_string($questionId)."'"; diff --git a/main/exercice/question_list_admin.inc.php b/main/exercice/question_list_admin.inc.php index 66655c283b..ed55eaf0c5 100644 --- a/main/exercice/question_list_admin.inc.php +++ b/main/exercice/question_list_admin.inc.php @@ -1,4 +1,4 @@ -selectLevel(); ?> <?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> - - <?php echo get_lang('MoveUp'); ?> - '; + itQuestion="><?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> + + <?php echo get_lang('MoveUp'); ?> + '; + } } - if($i != $nbrQuestions) { - if($i == 1) - echo ''; - ?> - <?php echo get_lang('MoveDown'); ?> - - + if($i == 1){ + echo ''; + } + ?> + <?php echo get_lang('MoveDown'); ?> +