5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
28 $this->
setTitle($lng->txt(
"cont_pages"));
30 $this->
addColumn($this->lng->txt(
""),
"",
"1");
31 $this->
addColumn($this->lng->txt(
"type"),
"",
"1");
32 $this->
addColumn($this->lng->txt(
"title"));
33 $this->
addColumn($this->lng->txt(
"cont_usage"));
37 if ($this->lm->getLayoutPerPage())
39 $this->
addColumn($this->lng->txt(
"cont_layout"));
45 $this->
setRowTemplate(
"tpl.page_list_row.html",
"Modules/LearningModule");
53 if ($this->lm->getLayoutPerPage())
79 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
81 $this->lm_set->get(
"time_scheduled_page_activation"));
84 $img_sc = ($this->lm_set->get(
"time_scheduled_page_activation") &&
91 $img =
"icon_pg_d".$img_sc.
".png";
92 $alt = $lng->txt(
"cont_page_deactivated");
97 $this->lm->getType()))
99 $img =
"icon_pg_del".$img_sc.
".png";
100 $alt = $lng->txt(
"cont_page_deactivated_elements");
104 $img =
"icon_pg".$img_sc.
".png";
105 $alt = $this->lng->txt(
"pg");
111 $ilCtrl->setParameter($this,
"backcmd",
"");
112 $ilCtrl->setParameterByClass(
"ilLMPageObjectGUI",
"obj_id", $a_set[
"obj_id"]);
113 $this->tpl->setVariable(
"HREF_TITLE",
114 $ilCtrl->getLinkTargetByClass(
"ilLMPageObjectGUI",
"edit"));
115 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
116 $this->tpl->setVariable(
"ID", $a_set[
"obj_id"]);
119 if ($this->lm->lm_tree->isInTree($a_set[
"obj_id"]))
121 $path_str = $this->parent_obj->getContextPath($a_set[
"obj_id"]);
130 if ($a_set[
"obj_id"] == $this->lm->getHeaderPage())
132 $add_str =
" <b>(".$lng->txt(
"cont_header").
")</b>";
134 if ($a_set[
"obj_id"] == $this->lm->getFooterPage())
136 $add_str =
" <b>(".$lng->txt(
"cont_footer").
")</b>";
139 $this->tpl->setVariable(
"USAGE", $path_str.$add_str);
142 if ($this->lm->getLayoutPerPage())
146 $this->tpl->setVariable(
"LAYOUT",
147 $lng->txt(
"cont_layout_".$l));