Code

Added other picture if department contains additional departments
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Aug 2005 12:59:31 +0000 (12:59 +0000)
committerhickert <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
plugins/admin/departments/class_departmentManagement.inc

diff --git a/TODO b/TODO
index 32448096d53a9d59c59404fb233eb0805e6eb572..bd2cf9a53112b93f0177a49c035149fd07f2212d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -7,19 +7,14 @@ Things to fix before 2.4:
 * 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
   - &nbsp; between pictures ... if needed (convert_list ? )
   - ALT not translated 
index 79f1807a15c3e0b2a0994f0cf69cf7bc21cf9066..b461d6b5e5867f5cee11e4930183534c387e0ba5 100644 (file)
@@ -302,14 +302,23 @@ class departmentManagement extends plugin
                                                                          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'");