-
-
-
- | |
- * |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
- |
- '.get_lang('Scenario').'';
- }
- } else { ?>
-
-
- |
-
- * |
-
-
-
- get_flat_list();
-
- for ($i = 1; $i <= $nbrAnswers; $i++) {
- // is an delineation
- if ($answerType == HOT_SPOT_DELINEATION) {
- $option_lp = '';
-
- // setting the LP
- $isSelected = false;
- foreach ($flat_list as $id => $details) {
- $selected = '';
- if (isset($lp[$i]) && $id == $lp[$i]) {
- $isSelected = true;
- $selected = 'selected="selected"';
- }
- $option_lp .= '';
- }
-
- if ($isSelected) {
- $option_lp = ''.$option_lp;
- } else {
- $option_lp = ''.$option_lp;
- }
-
- // Feedback SELECT
- $question_list = $objExercise->selectQuestionList();
- $option_feed = '';
- $option_feed .= '';
-
- foreach ($question_list as $key => $questionid) {
- $selected = '';
- $question = Question::read($questionid);
- $val = 'Q'.$key.' :'.substrwords($question->selectTitle(), ICON_SIZE_SMALL);
-
- if (isset($select_question[$i]) && $questionid == $select_question[$i]) {
- $selected = 'selected="selected"';
- }
-
- $option_feed .= '';
- }
-
- if (isset($select_question[$i]) && $select_question[$i] == -1) {
- $option_feed .= '';
- } else {
- $option_feed .= '';
- }
-
- //-------- IF it is a delineation
- if ($_SESSION['tmp_answers']['hotspot_type'][$i] == 'delineation') {
- $option1 = $option2 = $option3 = '';
- for ($k = 1; $k <= 100; $k++) {
- $selected1 = $selected2 = $selected3 = '';
- if ($k == $threadhold1[$i])
- $selected1 = 'selected="selected"';
- if ($k == $threadhold2[$i])
- $selected2 = 'selected="selected"';
- if ($k == $threadhold3[$i])
- $selected3 = 'selected="selected"';
- $option1 .= '';
- $option2 .= '';
- $option3 .= '';
- }
- ?>
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
- |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
- |
-
-
- |
- |
-
- |
-
-
- |
-
-
-
-
-
- |
-
-
- |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
- |
-
- |
-
-
-
-
- | |
- * |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
- |
- |
-
- |
-
- |
-
-
-
- |
-
- |
-
-
- |
-
-
-
-
- |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
- |
-
-
- |
-
- |
-
-
- |
- 'TestProposedAnswer',
- 'cols-size' => [0, 12, 0]
- );
- $form->addHtmlEditor('comment['.$i.']', null, false, false, $config);
- $renderer = $form->defaultRenderer();
- $form_template = '{content}';
- $renderer->setFormTemplate($form_template);
- $element_template = '
- {label}
- {element}';
- $renderer->setElementTemplate($element_template);
-
- $form->setDefaults(array('comment['.$i.']' => $commentValue));
- $return = $form->return_form();
- ?>
- |
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
+
+
+ | |
+ * |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) {
+ echo ''.get_lang('Comment').' | ';
+ if ($answerType == HOT_SPOT_DELINEATION) {
+ echo ''.get_lang('Scenario').' | ';
}
-
- $list = new LearnpathList(api_get_user_id());
- $flat_list = $list->get_flat_list();
+ } else {
+ echo ''.get_lang('Comment').' | ';
+ }
+ ?>
+ * |
+
+
+
+ get_flat_list();
+
+ for ($i = 1; $i <= $nbrAnswers; $i++) {
+ // is an delineation
+ if ($answerType == HOT_SPOT_DELINEATION) {
$option_lp = '';
+
+ // setting the LP
$isSelected = false;
foreach ($flat_list as $id => $details) {
$selected = '';
- if (isset($lp_noerror) && $id == $lp_noerror) {
- $selected = 'selected="selected"';
+ if (isset($lp[$i]) && $id == $lp[$i]) {
$isSelected = true;
+ $selected = 'selected="selected"';
}
$option_lp .= '';
}
@@ -944,93 +649,437 @@ if ($modifyAnswers) {
if ($isSelected) {
$option_lp = ''.$option_lp;
} else {
- $option_lp = ''.$option_lp;
+ $option_lp = ''.$option_lp;
}
// Feedback SELECT
$question_list = $objExercise->selectQuestionList();
$option_feed = '';
$option_feed .= '';
- $details = isset($details) ? $details : null;
- $id = isset($id) ? $id : 0;
- $selectQuestionNoError = isset($selectQuestionNoError) ? $selectQuestionNoError : null;
+
foreach ($question_list as $key => $questionid) {
$selected = '';
$question = Question::read($questionid);
$val = 'Q'.$key.' :'.substrwords($question->selectTitle(), ICON_SIZE_SMALL);
- if ($questionid == $selectQuestionNoError) {
+
+ if (isset($select_question[$i]) && $questionid == $select_question[$i]) {
$selected = 'selected="selected"';
}
+
$option_feed .= '';
}
- if ($selectQuestionNoError == -1) {
+
+ if (isset($select_question[$i]) && $select_question[$i] == -1) {
$option_feed .= '';
} else {
$option_feed .= '';
}
- if ($answerType == HOT_SPOT_DELINEATION) {
+ //-------- IF it is a delineation
+ if ($_SESSION['tmp_answers']['hotspot_type'][$i] == 'delineation') {
+ $option1 = $option2 = $option3 = '';
+ for ($k = 1; $k <= 100; $k++) {
+ $selected1 = $selected2 = $selected3 = '';
+ if ($k == $threadhold1[$i]) {
+ $selected1 = 'selected="selected"';
+ }
+ if ($k == $threadhold2[$i]) {
+ $selected2 = 'selected="selected"';
+ }
+ if ($k == $threadhold3[$i]) {
+ $selected3 = 'selected="selected"';
+ }
+ $option1 .= '';
+ $option2 .= '';
+ $option3 .= '';
+ }
?>
- |
- selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
- |
- |
-
- |
-
- |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ |
+
+
+ |
+ |
+
+ |
- |
+ |
+
+
+
+
|
-
-
+ |
+
|
selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
|
- |
- |
+ |
+
+
+ | |
+ * |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
+ |
+ |
+
+ |
+
+ |
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+
+
+ |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+ 'TestProposedAnswer',
+ 'cols-size' => [0, 12, 0]
+ );
+ $form->addHtmlEditor('comment['.$i.']', null, false, false, $config);
+ $renderer = $form->defaultRenderer();
+ $form_template = '{content}';
+ $renderer->setFormTemplate($form_template);
+ $element_template = '
+ {label}
+ {element}';
+ $renderer->setElementTemplate($element_template);
+
+ $form->setDefaults(array('comment['.$i.']' => $commentValue));
+ $return = $form->return_form();
+ ?>
+ |
+
+
+
+
+
+
+
+
+
+
- |
-
+
+
+ get_flat_list();
+ $option_lp = '';
+ $isSelected = false;
+ foreach ($flat_list as $id => $details) {
+ $selected = '';
+ if (isset($lp_noerror) && $id == $lp_noerror) {
+ $selected = 'selected="selected"';
+ $isSelected = true;
+ }
+ $option_lp .= '
';
+ }
+
+ if ($isSelected) {
+ $option_lp = '
'.$option_lp;
+ } else {
+ $option_lp = '
'
+ .$option_lp;
+ }
+
+ // Feedback SELECT
+ $question_list = $objExercise->selectQuestionList();
+ $option_feed = '';
+ $option_feed .= '
';
+ $selectQuestionNoError = isset($selectQuestionNoError) ? $selectQuestionNoError : null;
+ foreach ($question_list as $key => $questionid) {
+ $selected = '';
+ $question = Question::read($questionid);
+ $val = 'Q'.$key.' :'.substrwords($question->selectTitle(), ICON_SIZE_SMALL);
+ if ($questionid == $selectQuestionNoError) {
+ $selected = 'selected="selected"';
+ }
+ $option_feed .= '
';
+ }
+ if ($selectQuestionNoError == -1) {
+ $option_feed .= '
';
+ } else {
+ $option_feed .= '
';
+ }
+
+ if ($answerType == HOT_SPOT_DELINEATION) {
+ ?>
+
+ |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
+ |
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+ selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+ |
+
+
+
+
+