summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4554e4d)
raw | patch | inline | side by side (parent: 4554e4d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Aug 2005 12:59:31 +0000 (12:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Aug 2005 12:59:31 +0000 (12:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1049 594d385d-05f5-0310-b6e9-bd551577e9d8
TODO | patch | blob | history | |
plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
index 32448096d53a9d59c59404fb233eb0805e6eb572..bd2cf9a53112b93f0177a49c035149fd07f2212d 100644 (file)
--- a/TODO
+++ b/TODO
* Fix problem with winstation and invalid structural object class chain (inetOrgPerson/device)
* Deparment dialog
- - adapt base when creating a new department
- - show different symbol when the department contains subdepartments
* User dialog
- - adapt base when creating a new user/template
- Add button for template created users
* Systems dialog
- Add buttons for all system types
- - Filter is broken
* All dialogs
- - adapt base when creating a new entity
- cleanup, remove not used code fragments
- between pictures ... if needed (convert_list ? )
- ALT not translated
diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc
index 79f1807a15c3e0b2a0994f0cf69cf7bc21cf9066..b461d6b5e5867f5cee11e4930183534c387e0ba5 100644 (file)
array("string"=>_("Department name")),
array("string" =>_("Actions"), "attach" => "style='text-align: right;border:none'")));
+
foreach($this->departments as $key => $val) {
if(!isset($this->config->departments[trim($key)])){
$this->config->departments[trim($key)]="";
}
+
+ $non_empty="";
+ $keys= str_replace("/","\/",$key);
+ foreach($this->config->departments as $keyd=>$vald ){
+ if(preg_match("/".$keys."\/.*/",$keyd)){
+ $non_empty="full";
+ }
+ }
+
$title = $this->config->departments[$key];
-
- $field0 = array("string" => "<img src='images/folder.png' title='"._("department")."' alt='department'>","attach"=>"style='width:20px;'");
+ $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>","attach"=>"style='width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='width:100%' title='".$title."'");
$field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions),"attach"=>"style='text-align:right;border:none'");