Code

Added list images
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Sep 2010 15:14:38 +0000 (15:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Sep 2010 15:14:38 +0000 (15:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19877 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc

index 7f213e87c0485de918cc58d1b1fe75b30a53000c..8e8394bc49f29825a7a7f23b67950b1c123087e4 100644 (file)
@@ -306,9 +306,16 @@ class DeviceConfig extends management
 
         // Build up device-list configuration   
         $types ="";
+        $images = array();
+        $images[] = 'images/lists/edit.png';
+        $images[] = 'images/caps.png';
+        $images[] = 'images/lists/trash.png';
+        $images[] = 'images/filter.png';
+        $images[] = 'images/find.png';
+        $i = 0; 
         foreach($this->itemConfig as $type => $item){
             $desc = $item['description'];
-            $img = 'images/lists/trash.png';
+            $img = $images[$i++];
             $types .= 
                 "   <objectType>".
                 "     <label>{$desc}</label>".
@@ -322,13 +329,15 @@ class DeviceConfig extends management
 
 
         $items = "";
+        $i = 0;
         foreach($this->addableContainerItems as $item){
             $desc = $this->itemConfig[$item]['description'];
+            $img = $images[$i++];
             $items .=
                 "<action>".
                 "    <name>add_{$item}</name>".
                 "    <type>entry</type>".
-                "    <image>images/lists/edit.png</image>".
+                "    <image>{$img}</image>".
                 "    <label>{$desc}</label>".
                 "</action>";
         }