24 require_once(
"Services/Table/classes/class.ilTableGUI.php");
51 $this->form_action = $a_form_action;
56 return $this->form_action;
66 $this->headertext = $a_headertext;
76 return $this->headertext;
87 $this->buttons[] = array(
88 "txt" => $a_txt,
"cmd" => $a_cmd);
99 $this->cancel_txt = $a_txt;
100 $this->cancel_cmd = $a_cmd;
111 $this->confirm_txt = $a_txt;
112 $this->confirm_cmd = $a_cmd;
123 public function addItem($a_post_var, $a_id, $a_text, $a_img =
"",
126 $this->item[] = array(
"var" => $a_post_var,
"id" => $a_id,
127 "text" => $a_text,
"img" => $a_img,
"alt" => $a_alt);
130 $this->use_images =
true;
147 $this->hidden_item[] = array(
"var" => $a_post_var,
"value" => $a_value);
161 include_once(
"./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
163 $ctab->setData($this->item);
166 foreach ($this->buttons as $b)
168 $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
170 $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
171 $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
175 $ctab->addHiddenInput($hidden_item[
"var"], $hidden_item[
"value"]);
178 return $ctab->getHTML();