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;
+ ?>
+
+ defaultRenderer();
+ $renderer->setFormTemplate(' ');
+
+ $renderer->setElementTemplate(' {element} ');
+ $comnt =get_comments($id,$questionId);
+ ${user.$questionId}['comments_'.$questionId] = $comnt;
+ $$questionId->addElement('html_editor','comments_'.$questionId,false);
+ //$$questionId->addElement('submit','submitQuestion',get_lang('Ok'));
+ $$questionId->setDefaults(${user.$questionId});
+ $$questionId->display();
+
+ echo ' ';
+
+ }
+ 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;
- ?>
-
- defaultRenderer();
- $renderer->setFormTemplate(
- ' ');
-
- $renderer->setElementTemplate(
- ' {element} '
-);
- $comnt =get_comments($id,$questionId);
- ${user.$questionId}['comments_'.$questionId] = $comnt;
- $$questionId->addElement('html_editor','comments_'.$questionId,false);
- //$$questionId->addElement('submit','submitQuestion',get_lang('Ok'));
- $$questionId->setDefaults(${user.$questionId});
- $$questionId->display();
- ?>
-
- ".$comnt;
- }
- ?>
-
- |
+
|