5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 parent::__construct($a_parent_obj, $a_parent_cmd);
27 $this->
setTitle($lng->txt(
"cont_overlay_images"));
30 $this->
addColumn($this->lng->txt(
"thumbnail"),
"",
"20px");
31 $this->
addColumn($this->lng->txt(
"filename"));
34 $this->
setRowTemplate(
"tpl.iim_overlays_row.html",
"Services/COPage");
47 $files = $this->mob->getFilesOfDirectory(
"overlays");
50 $ov[] =
array(
"filename" => $f);
63 $this->tpl->setVariable(
"FILENAME", $a_set[
"filename"]);
64 $piname = pathinfo($a_set[
"filename"]);
66 basename($a_set[
"filename"],
".".$piname[
'extension']).
".png");
67 if (!is_file($th_path))
69 $this->mob->makeThumbnail(
"overlays/".$a_set[
"filename"],
70 basename($a_set[
"filename"],
".".$piname[
'extension']).
".png");
72 if (is_file($th_path))
74 $this->tpl->setVariable(
"THUMB",
ilUtil::img($th_path));
getOverlays()
Get overlays.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_mob)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
TableGUI class for interactive image overlays.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.