4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
23 $this->
setId(
"repnwitgrptbl");
25 $this->
setTitle($lng->txt(
"rep_new_item_groups"));
28 $this->
addColumn($lng->txt(
"cmps_add_new_rank"),
"");
30 $this->
addColumn($lng->txt(
"rep_new_item_group_nr_subitems"),
"");
31 $this->
addColumn($lng->txt(
"action"),
"");
33 $this->
addCommandButton(
"saveNewItemGroupOrder", $lng->txt(
"cmps_save_options"));
34 $this->
addMultiCommand(
"confirmDeleteNewItemGroup", $lng->txt(
"delete"));
39 $this->
setRowTemplate(
"tpl.table_row_new_item_group.html",
"Services/Repository");
59 ilUtil::sendInfo(sprintf($lng->txt(
"rep_new_item_group_unassigned_subitems"),
sizeof($subitems[0])));
67 "pos" => $item[
"pos"],
68 "title" => $item[
"title"],
69 "type" => $item[
"type"],
70 "subitems" =>
sizeof($subitems[$item[
"id"]])
83 $this->tpl->setVariable(
"VAR_MULTI",
"grp_id[]");
84 $this->tpl->setVariable(
"VAL_MULTI", $a_set[
"id"]);
86 $this->tpl->setVariable(
"VAR_POS",
"grp_order[".$a_set[
"id"].
"]");
87 $this->tpl->setVariable(
"VAL_POS", $a_set[
"pos"]);
88 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
92 $this->tpl->setVariable(
"VAL_ITEMS", $a_set[
"subitems"]);
94 $ilCtrl->setParameter($this->parent_obj,
"grp_id", $a_set[
"id"]);
95 $url = $ilCtrl->getLinkTarget($this->parent_obj,
"editNewItemGroup");
96 $ilCtrl->setParameter($this->parent_obj,
"grp_id",
"");
98 $this->tpl->setVariable(
"URL_EDIT", $url);
99 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));