5include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   24                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   30                $this->
addColumn($this->lng->txt(
"title"));
 
   31                $this->
addColumn($this->lng->txt(
"default"));
 
   32                $this->
addColumn($this->lng->txt(
"users"));
 
   33                $this->
addColumn($this->lng->txt(
"active"));
 
   34                $this->
addColumn($this->lng->txt(
"sty_substyles"));
 
   35                $this->
addColumn($this->lng->txt(
"actions"));
 
   38                $this->
setRowTemplate(
"tpl.sys_styles_row.html", 
"Services/Style");
 
   40                if ($rbacsystem->checkAccess(
"write", (
int) 
$_GET[
"ref_id"]))
 
   54                global $styleDefinition;
 
   63                $users_missing_styles = 0;
 
   64                foreach($all_user_styles as 
$style)
 
   66                        if (!isset($all_styles[
$style]))
 
   68                                $style_arr = explode(
":", 
$style);
 
   73                if ($users_missing_styles > 0)
 
   75                        $all_styles[
"other"] =
 
   77                                        "title" => $this->lng->txt(
"other"),
 
   81                                        "template_name" => 
"",
 
   83                                        "users" => $users_missing_styles
 
  102                if (is_array($a_set[
"substyle"]))
 
  104                        foreach ($a_set[
"substyle"] as $substyle)
 
  108                                foreach($cat_ass as $ca)
 
  110                                        if ($ca[
"substyle"] == $substyle[
"id"])
 
  112                                                $this->tpl->setCurrentBlock(
"cat");
 
  115                                                $this->tpl->parseCurrentBlock();
 
  121                                        $this->tpl->touchBlock(
"cats");
 
  124                                $this->tpl->setCurrentBlock(
"substyle");
 
  125                                $this->tpl->setVariable(
"SUB_STYLE", $substyle[
"name"]);
 
  126                                $this->tpl->parseCurrentBlock();
 
  128                        $this->tpl->touchBlock(
"substyles");
 
  130                        $ilCtrl->setParameter($this->parent_obj, 
"style_id", urlencode($a_set[
"id"]));
 
  131                        $this->tpl->setCurrentBlock(
"cmd");
 
  132                        $this->tpl->setVariable(
"HREF_CMD", 
$ilCtrl->getLinkTarget($this->parent_obj,
 
  133                                "assignStylesToCats"));
 
  134                        $this->tpl->setVariable(
"TXT_CMD", 
$lng->txt(
"sty_assign_categories"));
 
  135                        $this->tpl->parseCurrentBlock();
 
  138                $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
 
  139                $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  142                $this->tpl->setVariable(
"USERS", $a_set[
"users"]);
 
  147                        $this->tpl->setVariable(
"CHECKED", 
' checked="checked" ');
 
  150                if ($ilClientIniFile->readVariable(
"layout",
"skin") == $a_set[
"template_id"] &&
 
  151                        $ilClientIniFile->readVariable(
"layout",
"style") == $a_set[
"style_id"])
 
  153                        $this->tpl->setVariable(
"CHECKED_DEFAULT", 
' checked="checked" ');
 
_lookupActivatedStyle($a_skin, $a_style)
lookup if a style is activated
_getAllUserAssignedStyles()
skins and styles
_getNumberOfUsersForStyle($a_skin, $a_style)
skins and styles
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static getSystemStyleCategoryAssignments($a_skin_id, $a_style_id)
Get all system style category assignments.
static getAllSkinStyles()
Get all skins/styles.
TableGUI class for system styles.
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
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.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.