From 9d2cb552facc9ac52604ed313a1709f16959dbec Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Mon, 24 Sep 2007 09:37:30 +0200 Subject: [PATCH] [svn r13206] Restore the page layout (was broken because of the new hotspot) --- main/exercice/exercise_show.php | 101 ++++++++++++++++---------------- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/main/exercice/exercise_show.php b/main/exercice/exercise_show.php index bf329173e4..d02239b3fb 100644 --- a/main/exercice/exercise_show.php +++ b/main/exercice/exercise_show.php @@ -702,7 +702,55 @@ $result =api_sql_query($query, __FILE__, __LINE__); display_hotspot_answer($answerId,$answer,$choice,$answerComment); $i++; - } + } + echo ''; + + echo get_lang("Comment"); + + if($is_allowedToEdit) + { + //if (isset($_REQUEST['showdiv']) && $questionId==$_REQUEST['ques_id']) + //{ + $name = "fckdiv".$questionId; + $marksname = "marksName".$questionId; + ?> + +
".$comnt; + ?> + '; + + } + else{ + + $comnt = get_comments($id,$questionId); + echo "

".$comnt; + + } + + + echo ''; + $queryfree = "select marks from ".$TBL_TRACK_ATTEMPT." where exe_id = $id and question_id= $questionId"; $resfree = api_sql_query($queryfree, __FILE__, __LINE__); $questionScore= mysql_result($resfree,0,"marks"); @@ -727,56 +775,7 @@ $result =api_sql_query($query, __FILE__, __LINE__); - - - - -
".$comnt; - ?> - -
".$comnt; - } - ?> - - +