24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
54 $this->show_marker = $show_marker;
57 $this->
setStyle(
'table',
'fullwidth');
59 $this->
addColumn($this->lng->txt(
"tst_qst_order"),
'order',
'');
60 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title',
'');
62 if ($this->show_points)
64 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'points',
'');
66 $this->
addColumn($this->lng->txt(
"worked_through"),
'worked_through',
'');
67 if ($this->show_marker)
69 $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked',
'');
72 $this->
setTitle($this->lng->txt(
'question_summary'));
74 $this->
setRowTemplate(
"tpl.il_as_tst_list_of_questions_row.html",
"Modules/Test");
80 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
96 if ($this->show_points)
98 $this->tpl->setCurrentBlock(
'points');
99 $this->tpl->setVariable(
"POINTS",
$data[
'points']);
100 $this->tpl->parseCurrentBlock();
102 if (strlen(
$data[
'description']))
104 $this->tpl->setCurrentBlock(
'description');
106 $this->tpl->parseCurrentBlock();
108 if ($this->show_marker)
112 $this->tpl->setCurrentBlock(
'marked_img');
113 $this->tpl->setVariable(
"ALT_MARKED", $this->lng->txt(
"tst_question_marked"));
115 $this->tpl->parseCurrentBlock();
119 $this->tpl->touchBlock(
'marker');
122 $this->tpl->setVariable(
"ORDER",
$data[
'order']);
124 $this->tpl->setVariable(
"HREF",
$data[
'href']);
125 $this->tpl->setVariable(
"POSTPONED",
$data[
'postponed']);
126 if (
$data[
"worked_through"])
128 $this->tpl->setVariable(
"HREF_WORKED_THROUGH",
ilUtil::getImagePath(
"icon_worked_through.gif"));
129 $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"worked_through"));
133 $this->tpl->setVariable(
"HREF_WORKED_THROUGH",
ilUtil::getImagePath(
"icon_not_worked_through.gif"));
134 $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"not_worked_through"));