4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
   20                 $lng->loadLanguageModule(
"content");
 
   28                 $this->
addColumn($lng->txt(
"description"));
 
   35                 if ($rbacsystem->checkAccess(
"write",$this->parent_obj->object->getRefId()))
 
   40                         $this->
addCommandButton(
"savePageLayoutTypes", $lng->txt(
"cont_save_types"));
 
   50                 $this->
setTitle($lng->txt(
"page_layouts"));
 
   80                 $ilCtrl->setParameter($this->parent_obj, 
"layout_id", $a_set[
'layout_id']);
 
   81                 $this->tpl->setCurrentBlock(
"action");
 
   82                 $this->tpl->setVariable(
"HREF_ACTION",
 
   83                         $ilCtrl->getLinkTarget($this->parent_obj, 
"exportLayout"));
 
   84                 $this->tpl->setVariable(
"TXT_ACTION", $lng->txt(
"export"));
 
   85                 $this->tpl->parseCurrentBlock();
 
   86                 $ilCtrl->setParameter($this->parent_obj, 
"layout_id", 
"");
 
   89                 $this->tpl->setCurrentBlock(
"mod");
 
   90                 foreach($this->all_mods as $mod_id => $mod_caption)
 
   95                                 $this->tpl->setVariable(
"MOD_STATUS", 
" checked=\"checked\"");
 
   97                         $this->tpl->setVariable(
"MODULE_ID", $mod_id);
 
   98                         $this->tpl->setVariable(
"LAYOUT_ID", $a_set[
"layout_id"]);
 
   99                         $this->tpl->setVariable(
"MOD_NAME", $mod_caption);
 
  100                         $this->tpl->parseCurrentBlock();
 
  103                 if ($a_set[
'active'])
 
  111                 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
'title']);
 
  112                 $this->tpl->setVariable(
"VAL_DESCRIPTION", $a_set[
'description']);
 
  113                 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
'layout_id']);
 
  115                 $ilCtrl->setParameterByClass(
"ilobjstylesettingsgui", 
"obj_id", $a_set[
'layout_id']);
 
  116                 $this->tpl->setVariable(
"HREF_EDIT_PGLAYOUT",$ilCtrl->getLinkTargetByClass(
"ilobjstylesettingsgui",
"editPg"));
 
  119                 $this->tpl->setVariable(
"VAL_PREVIEW_HTML",$pgl_obj->getPreview());
 
  121                 if ($a_set[
"style_id"] > 0)
 
  123                         $this->tpl->setVariable(
"STYLE",
 
  127                 $this->tpl->setVariable(
"TYPE",
 
  129                                 array(
"0" => $lng->txt(
"cont_layout_template"),
 
  130                                         "1" => $lng->txt(
"cont_special_page")),