5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
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");
48 foreach ($files as $f)
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));