4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
26 public function __construct($a_parent_obj, $a_parent_cmd =
"")
37 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
49 foreach ($a_set as $key => $value)
51 $this->tpl->setVariable(
"VAL_".strtoupper($key), $value);
65 $this->total_data[$a_key] = $a_value;
86 if (is_object($ilCtrl) && $this->
getId() ==
"")
91 if(!$this->enabled[
'content'])
103 $this->
setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
122 $this->tpl->addBlockFile(
"TBL_CONTENT",
"tbl_content", $this->row_template,
123 $this->row_template_dir);
125 foreach($data as $set)
127 $this->tpl->setCurrentBlock(
"tbl_content");
128 $this->css_row = ($this->css_row !=
"tblrow1")
131 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
134 $this->tpl->setCurrentBlock(
"tbl_content");
135 $this->tpl->parseCurrentBlock();
138 $this->css_row_2 = ($this->css_row ==
"tblrow1")
142 $this->tpl->setCurrentBlock(
'totals_row');
144 foreach($this->total_data as $key => $value)
146 $this->tpl->setVariable(
'CSS_ROW_2', $this->css_row_2);
147 $this->tpl->setVariable($key, $value);
149 $this->tpl->parseCurrentBlock();
157 : $lng->txt(
"no_items");
159 $this->css_row = ($this->css_row !=
"tblrow1")
163 $this->tpl->setCurrentBlock(
"tbl_no_entries");
164 $this->tpl->setVariable(
'TBL_NO_ENTRY_CSS_ROW', $this->css_row);
165 $this->tpl->setVariable(
'TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
166 $this->tpl->setVariable(
'TBL_NO_ENTRY_TEXT', trim($no_items_text));
167 $this->tpl->parseCurrentBlock();
171 if ($this->form_action !=
"")
174 if (is_object($ilUser) && $ilUser->prefs[
"screen_reader_optimization"])
176 $hash =
"#".$this->getTopAnchor();
179 $this->tpl->setCurrentBlock(
"tbl_form_header");
180 $this->tpl->setVariable(
"FORMACTION", $this->
getFormAction().$hash);
181 $this->tpl->setVariable(
"FORMNAME", $this->
getFormName());
182 $this->tpl->parseCurrentBlock();
183 $this->tpl->touchBlock(
"tbl_form_footer");