5 require_once(
"Services/Table/classes/class.ilTableGUI.php");
32 $this->form_action = $a_form_action;
37 return $this->form_action;
47 $this->headertext = $a_headertext;
57 return $this->headertext;
68 $this->buttons[] = array(
69 "txt" => $a_txt,
"cmd" => $a_cmd);
80 $this->cancel_txt = $a_txt;
81 $this->cancel_cmd = $a_cmd;
92 $this->confirm_txt = $a_txt;
93 $this->confirm_cmd = $a_cmd;
104 public function addItem($a_post_var, $a_id, $a_text, $a_img =
"",
107 $this->item[] = array(
"var" => $a_post_var,
"id" => $a_id,
108 "text" => $a_text,
"img" => $a_img,
"alt" => $a_alt);
111 $this->use_images =
true;
128 $this->hidden_item[] = array(
"var" => $a_post_var,
"value" => $a_value);
142 include_once(
"./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
145 if (count($this->item) > 0)
148 $ctab->setData($this->item);
151 foreach ($this->buttons as $b)
153 $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
155 $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
156 $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
160 $ctab->addHiddenInput($hidden_item[
"var"], $hidden_item[
"value"]);
162 return $ctab->getHTML();
168 $tb->addFormButton($this->confirm_txt, $this->confirm_cmd);
169 $tb->addFormButton($this->cancel_txt, $this->cancel_cmd);
170 return $tb->getHTML();