47 case 'iltestoutputgui':
50 case 'iltestevaluationgui':
74 require_once
'class.ilTestEvaluationGUI.php';
88 if ($this->test->getKioskMode())
90 $this->tpl->setBodyClass(
"kiosk");
91 $this->tpl->setAddFooter(FALSE);
102 require_once
'class.ilTestEvaluationGUI.php';
103 require_once
'./Services/PDFGeneration/classes/class.ilPDFGeneration.php';
107 if ( ( array_key_exists(
"pass",
$_GET) && (strlen(
$_GET[
"pass"]) > 0) ) || (!is_null(
$pass) ) )
109 if ( is_null(
$pass) )
115 $template =
new ilTemplate(
"tpl.il_as_tst_submission_review.html", TRUE, TRUE,
"Modules/Test");
118 $template->setVariable(
"FORMACTION", $this->
ilCtrl->
getFormAction($this->testOutputGUI,
'redirectBack').
'&reviewed=1');
120 $template->setVariable(
"BUTTON_CONTINUE", $this->lng->txt(
"btn_next"));
121 $template->setVariable(
"BUTTON_BACK", $this->lng->txt(
"btn_previous"));
123 if($this->test->getListOfQuestionsEnd())
125 $template->setVariable(
"CANCEL_CMD",
'outQuestionSummary');
129 $template->setVariable(
"CANCEL_CMD",
'backFromSummary');
135 $active = $this->test->getActiveIdOfUser($ilUser->getId());
139 $results_output = $testevaluationgui->getPassListOfAnswers(
$results, $active,
$pass,
false,
false,
false,
false);
141 if ($this->test->getShowExamviewPdf())
143 $template->setCurrentBlock(
"pdf_export");
144 $template->setVariable(
"PDF_TEXT", $this->lng->txt(
"pdf_export"));
145 $template->setVariable(
"PDF_IMG_ALT", $this->lng->txt(
"pdf_export"));
148 $inst_id = $ilSetting->get(
'inst_id', null);
154 $filename =
$path .
'/exam_N' . $inst_id .
'-' . $this->testOutputGUI->object->getId() .
'-' . $active .
'-' .
$pass .
'.pdf';
155 require_once
'class.ilTestPDFGenerator.php';
157 $template->setVariable(
"PDF_FILE_LOCATION",
$filename);
160 if ($this->test->getShowExamviewHtml())
162 $template->setCurrentBlock(
'html_review');
163 $template->setVariable(
'HTML_REVIEW', $results_output);