24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
56 $this->
setStyle(
'table',
'fullwidth');
57 $this->
addColumn($this->lng->txt(
"title"),
'title',
'');
58 $this->
addColumn($this->lng->txt(
"description"),
'description',
'');
59 $this->
addColumn($this->lng->txt(
"author"),
'author',
'');
60 $this->
addColumn($this->lng->txt(
"question_type"),
'ttype',
'');
61 $this->
addColumn($this->lng->txt(
"create_date"),
'created',
'');
62 $this->
addColumn($this->lng->txt(
"last_update"),
'updated',
'');
64 $this->
addCommandButton(
'print', $this->lng->txt(
'print'),
"javascript:window.print();return false;");
66 $this->
setRowTemplate(
"tpl.il_as_qpl_printview_row.html",
"Modules/TestQuestionPool");
68 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
94 if ((strcmp($this->outputmode,
"detailed") == 0) || (strcmp($this->outputmode,
"detailed_printview") == 0))
96 $this->tpl->setCurrentBlock(
"overview_row_detail");
97 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
99 if (strcmp($this->outputmode,
"detailed") == 0)
101 $solutionoutput = $question_gui->getSolutionOutput($active_id =
"",
$pass = NULL, $graphicalOutput = FALSE, $result_output = FALSE, $show_question_only = FALSE, $show_feedback = FALSE, $show_correct_solution =
true, $show_manual_scoring =
false);
102 if (strlen($solutionoutput) == 0) $solutionoutput = $question_gui->getPreview();
103 $this->tpl->setVariable(
"DETAILS", $solutionoutput);
107 $this->tpl->setVariable(
"DETAILS", $question_gui->getPreview());
109 $this->tpl->parseCurrentBlock();