summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 940e473)
raw | patch | inline | side by side (parent: 940e473)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Apr 2010 14:15:35 +0000 (14:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Apr 2010 14:15:35 +0000 (14:15 +0000) |
-Remove all disSelectLists here
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17525 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17525 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/acl/class_aclRole.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc
index 76de3e0cff0bde9175e447220ce60c7d67eb9f95..18b3fce7ca90c7e207e209a884e6e90cf192b6ee 100644 (file)
$this->sectionList->setDeleteable(false);
$this->sectionList->setEditable(false);
$this->sectionList->setWidth("100%");
- $this->sectionList->setHeight("120px");
+ $this->sectionList->setHeight("400px");
$this->sectionList->setColspecs(array('200px','*'));
$this->sectionList->setHeader(array(_("Section"),_("Description")));
$this->sectionList->setDefaultSortColumn(1);
}
if ($this->dialogState == 'create'){
+
+
+
/* Draw list */
$aclList= new divSelectBox("aclList");
$aclList->SetHeight(450);
-
+ $data = $lData = array();
+
// Create a map of all used sections, this allows us to simply hide the remove button
// if no acl is configured for the given section
// e.g. ';all;department/country;users/user;
if($this->acl_is_writeable("gosaAclTemplate") && preg_match("/;".$section."(;|\/)/", $usedList)){
$action.= image('images/lists/trash.png','cat_del_'.$section,_("Delete category ACL"));
}
-
- $field1= array("string" => $dsc, "attach" => "style='width:140px'");
- $field2= array("string" => $summary);
- $field3= array("string" => $action, "attach" => "style='border-right:0px;width:50px'");
- $aclList->AddEntry(array($field1, $field2, $field3));
+ $data[] = $section;
+ $lData[] = array('data'=>array($dsc, $summary, $action));
}
- $smarty->assign("aclList", $aclList->DrawList());
+
+ $this->sectionList->setListData($data,$lData);
+ $this->sectionList->update();
+ $smarty->assign("aclList", $this->sectionList->render());
+
$smarty->assign("aclType", $this->aclType);
$smarty->assign("aclTypes", $this->aclTypes);
$smarty->assign("target", $this->target);