24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
58 $this->obligationsNotAnswered = $obligationsNotAnswered;
62 $this->
setStyle(
'table',
'fullwidth');
64 $this->
addColumn($this->lng->txt(
"tst_qst_order"),
'order',
'');
65 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title',
'');
66 $this->
addColumn($this->lng->txt(
"obligatory"),
'obligatory',
'');
68 if ($this->show_points)
70 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'points',
'');
72 $this->
addColumn($this->lng->txt(
"worked_through"),
'worked_through',
'');
73 if ($this->show_marker)
75 $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked',
'');
80 $this->
setTitle($this->lng->txt(
'obligations_summary'));
84 $this->
setTitle($this->lng->txt(
'question_summary'));
87 $this->
setRowTemplate(
"tpl.il_as_tst_list_of_questions_row.html",
"Modules/Test");
91 if( !$obligationsNotAnswered )
98 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
114 if ($this->show_points)
116 $this->tpl->setCurrentBlock(
'points');
117 $this->tpl->setVariable(
"POINTS",
$data[
'points']);
118 $this->tpl->parseCurrentBlock();
120 if (strlen(
$data[
'description']))
122 $this->tpl->setCurrentBlock(
'description');
124 $this->tpl->parseCurrentBlock();
126 if ($this->show_marker)
130 $this->tpl->setCurrentBlock(
'marked_img');
131 $this->tpl->setVariable(
"ALT_MARKED", $this->lng->txt(
"tst_question_marked"));
133 $this->tpl->parseCurrentBlock();
137 $this->tpl->touchBlock(
'marker');
142 if(
$data[
"obligatory"] )
144 $OBLIGATORY =
"<img src=\"".ilUtil::getImagePath(
"obligatory.gif",
"Modules/Test").
145 "\" alt=\"".$this->lng->txt(
"question_obligatory").
146 "\" title=\"".$this->lng->txt(
"question_obligatory").
"\" />";
148 else $OBLIGATORY =
'';
151 $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
153 $this->tpl->setVariable(
"ORDER",
$data[
'order']);
155 $this->tpl->setVariable(
"HREF",
$data[
'href']);
156 $this->tpl->setVariable(
"POSTPONED",
$data[
'postponed']);
157 if (
$data[
"worked_through"])
160 $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"worked_through"));
165 $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"not_worked_through"));