5 require_once(
"Services/Table/classes/class.ilTableGUI.php");
33 $this->form_action = $a_form_action;
38 return $this->form_action;
48 $this->headertext = $a_headertext;
58 return $this->headertext;
69 $this->buttons[] = array(
70 "txt" => $a_txt,
"cmd" => $a_cmd);
81 $this->cancel_txt = $a_txt;
82 $this->cancel_cmd = $a_cmd;
93 $this->confirm_txt = $a_txt;
94 $this->confirm_cmd = $a_cmd;
105 public function addItem($a_post_var, $a_id, $a_text, $a_img =
"",
108 $this->item[] = array(
"var" => $a_post_var,
"id" => $a_id,
109 "text" => $a_text,
"img" => $a_img,
"alt" => $a_alt);
112 $this->use_images =
true;
129 $this->hidden_item[] = array(
"var" => $a_post_var,
"value" => $a_value);
143 include_once(
"./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
146 if (count($this->item) > 0)
149 $ctab->setData($this->item);
152 foreach ($this->buttons as $b)
154 $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
156 $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
157 $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
161 $ctab->addHiddenInput($hidden_item[
"var"], $hidden_item[
"value"]);
166 $ctab->setFormName($this->form_name);
169 return $ctab->getHTML();
175 $tb->addFormButton($this->confirm_txt, $this->confirm_cmd);
176 $tb->addFormButton($this->cancel_txt, $this->cancel_cmd);
177 return $tb->getHTML();
188 $this->form_name = $a_name;