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(
"HREF_MARKED",
ilUtil::img(
'./templates/default/images/marked.svg', $this->lng->txt(
"tst_question_marked"),
'24px',
'24px'));
104 $this->tpl->parseCurrentBlock();
106 $this->tpl->setCurrentBlock(
'marker');
107 $this->tpl->parseCurrentBlock();
111 $this->tpl->setCurrentBlock(
'marker');
112 $this->tpl->touchBlock(
'marker');
113 $this->tpl->parseCurrentBlock();
118 if(
$data[
"obligatory"] )
120 $OBLIGATORY =
"<img src=\"".ilUtil::getImagePath(
"obligatory.gif",
"Modules/Test").
121 "\" alt=\"".$this->lng->txt(
"question_obligatory").
122 "\" title=\"".$this->lng->txt(
"question_obligatory").
"\" />";
124 else $OBLIGATORY =
'';
127 $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
129 $this->tpl->setVariable(
"ORDER",
$data[
'order']);
131 $this->tpl->setVariable(
"HREF",
$data[
'href']);