77 if ($this->test->getKioskMode())
79 $this->tpl->setBodyClass(
"kiosk");
80 $this->tpl->setAddFooter(FALSE);
91 require_once
'class.ilTestEvaluationGUI.php';
92 require_once
'./Services/PDFGeneration/classes/class.ilPDFGeneration.php';
96 $template =
new ilTemplate(
"tpl.il_as_tst_submission_review.html", TRUE, TRUE,
"Modules/Test");
99 $template->setVariable(
"FORMACTION", $this->
ilCtrl->
getFormAction($this->testOutputGUI,
'redirectBack').
'&reviewed=1');
101 $template->setVariable(
"BUTTON_CONTINUE", $this->lng->txt(
"btn_next"));
102 $template->setVariable(
"BUTTON_BACK", $this->lng->txt(
"btn_previous"));
104 if($this->test->getListOfQuestionsEnd())
106 $template->setVariable(
"CANCEL_CMD",
'outQuestionSummary');
110 $template->setVariable(
"CANCEL_CMD",
'backFromSummary');
113 $active = $this->test->getActiveIdOfUser($ilUser->getId());
116 $testevaluationgui->setContextWithinTestPass(
true);
117 $results = $this->test->getTestResult($active, $this->testSession->getPass());
118 $results_output = $testevaluationgui->getPassListOfAnswers(
119 $results, $active, $this->testSession->getPass(),
false,
false,
false, false
122 if ($this->test->getShowExamviewPdf())
124 $template->setVariable(
"PDF_TEXT", $this->lng->txt(
"pdf_export"));
126 $inst_id = $ilSetting->get(
'inst_id', null);
132 $filename =
$path .
'/exam_N' . $inst_id .
'-' . $this->testOutputGUI->object->getId() .
'-' . $active .
'-' . $this->testSession->getPass() .
'.pdf';
133 require_once
'class.ilTestPDFGenerator.php';
135 $template->setVariable(
"PDF_FILE_LOCATION",
$filename);
139 $template->setCurrentBlock(
'prevent_double_form_subm');
140 $template->touchBlock(
'prevent_double_form_subm');
141 $template->parseCurrentBlock();
144 if($this->test->getShowExamviewHtml())
146 if($this->test->getListOfQuestionsEnd())
148 $template->setVariable(
"CANCEL_CMD_BOTTOM",
'outQuestionSummary');
152 $template->setVariable(
"CANCEL_CMD_BOTTOM",
'backFromSummary');
154 $template->setVariable(
"BUTTON_CONTINUE_BOTTOM", $this->lng->txt(
"btn_next"));
155 $template->setVariable(
"BUTTON_BACK_BOTTOM", $this->lng->txt(
"btn_previous"));
157 $template->setVariable(
'HTML_REVIEW', $results_output);