56 $this->headericon = $a_headericon;
66 return $this->headericon;
76 $this->link_title = $a_val;
86 return $this->link_title;
96 $this->items = $a_val;
116 $this->selectionheaderclass = $a_selectionheaderclass;
126 return $this->selectionheaderclass;
136 $this->form_cmd = $a_val;
146 return $this->form_cmd;
156 $this->field_var = $a_val;
166 return $this->field_var;
176 $this->hidden_var = $a_val;
186 return $this->hidden_var;
197 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
199 $overlay->setAnchor(
"ilChkboxListAnchorEl_".$this->
getId());
200 $overlay->setTrigger(
"ilChkboxListTrigger_".$this->
getId());
201 $overlay->setAutoHide(
false);
205 $tpl =
new ilTemplate(
"tpl.checkbox_list_overlay.html",
true,
true,
206 "Services/UIComponent/CheckboxListOverlay",
"DEFAULT",
false,
true);
208 $tpl->setCurrentBlock(
"top_img");
212 $tpl->setVariable(
"IMG_DOWN",
216 $tpl->setVariable(
"IMG_DOWN",
225 $tpl->setVariable(
"ALT_SEL_TOP",
"");
227 $tpl->parseCurrentBlock();
230 foreach (
$items as $k => $v)
232 $tpl->setCurrentBlock(
"list_entry");
234 $tpl->setVariable(
"VAL_ENTRY", $k);
235 $tpl->setVariable(
"TXT_ENTRY", $v[
"txt"]);
238 $tpl->setVariable(
"CHECKED",
"checked='checked'");
240 $tpl->parseCurrentBlock();
246 $tpl->setVariable(
"VAL_SUBMIT", $lng->txt(
"refresh"));
getSelectionHeaderClass()
Get Selection Header Class.
setHiddenVar($a_val)
Set hidden var (used to indicated that checkbox array has been sent in a form)
getHiddenVar()
Get hidden var.
setFormCmd($a_val)
Set form command.
getLinkTitle()
Get link title.
__construct($a_id="")
Constructor.
getHeaderIcon()
Get Header Icon.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getHTML()
Get selection list HTML.
special template class to simplify handling of ITX/PEAR
setFieldVar($a_val)
Set field var.
This is a utility class for the yui overlays.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
User interface class for a checkbox list overlay.
setLinkTitle($a_val)
Set link title.
getFormCmd()
Get form command.
setItems($a_val)
Set items.
setHeaderIcon($a_headericon)
Set Header Icon.
setSelectionHeaderClass($a_selectionheaderclass)
Set Selection Header Class.
getFieldVar()
Get field var.