4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
37 $this->
setStyle(
'table',
'fullwidth');
39 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title',
'');
41 if ($this->show_postponed)
43 $this->
addColumn($this->lng->txt(
"postpone_status") ,
'postponed',
'');
46 if ($this->show_marker)
48 $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked',
'');
51 $this->
setTitle($this->lng->txt(
'tst_tracked_question_list'));
53 $this->
setRowTemplate(
"tpl.il_as_tst_tracked_questions_row.html",
"Modules/Test");
59 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
75 if (strlen(
$data[
'description']))
77 $this->tpl->setCurrentBlock(
'description');
79 $this->tpl->parseCurrentBlock();
82 if( $this->show_postponed )
84 if(
$data[
'postponed'])
86 $this->tpl->setCurrentBlock(
'postponed');
87 $this->tpl->setVariable(
'POSTPONED', $this->lng->txt(
'postponed'));
88 $this->tpl->parseCurrentBlock();
92 $this->tpl->setCurrentBlock(
'postponed');
93 $this->tpl->touchBlock(
'postponed');
94 $this->tpl->parseCurrentBlock();
98 if ($this->show_marker)
102 $this->tpl->setCurrentBlock(
'marked_img');
103 $this->tpl->setVariable(
"ALT_MARKED", $this->lng->txt(
"tst_question_marked"));
105 $this->tpl->parseCurrentBlock();
107 $this->tpl->setCurrentBlock(
'marker');
108 $this->tpl->parseCurrentBlock();
112 $this->tpl->setCurrentBlock(
'marker');
113 $this->tpl->touchBlock(
'marker');
114 $this->tpl->parseCurrentBlock();
119 if(
$data[
"obligatory"] )
121 $OBLIGATORY =
"<img src=\"".ilUtil::getImagePath(
"obligatory.gif",
"Modules/Test").
122 "\" alt=\"".$this->lng->txt(
"question_obligatory").
123 "\" title=\"".$this->lng->txt(
"question_obligatory").
"\" />";
125 else $OBLIGATORY =
'';
128 $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
130 $this->tpl->setVariable(
"ORDER",
$data[
'order']);
132 $this->tpl->setVariable(
"HREF",
$data[
'href']);