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;
124 $this->hidden_item[] = array(
"var" => $a_post_var,
"value" => $a_value);
138 include_once(
"./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
141 if (count($this->item) > 0)
144 $ctab->setData($this->item);
147 foreach ($this->buttons as $b)
149 $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
151 $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
152 $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
156 $ctab->addHiddenInput($hidden_item[
"var"], $hidden_item[
"value"]);
161 $ctab->setFormName($this->form_name);
164 return $ctab->getHTML();
170 if($this->hidden_item)
172 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
176 $hiddenInput->setValue($hidden_item[
'value']);
177 $tb->addInputItem($hiddenInput);
180 $tb->addFormButton($this->confirm_txt, $this->confirm_cmd);
181 $tb->addFormButton($this->cancel_txt, $this->cancel_cmd);
182 return $tb->getHTML();
193 $this->form_name = $a_name;