Code

Fixed layout for emtpy lists
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 May 2006 09:07:24 +0000 (09:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 May 2006 09:07:24 +0000 (09:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3332 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index b3df504d6a0fd1ec9fad27c372b120e5adc2e8c6..8e9f0feda64735c37b1cb5c1104530083c0d712e 100644 (file)
@@ -516,19 +516,18 @@ class MultiSelectWindow{
                                }
                        }
 
-
                        /* Add to divlist */
                        $row = array();
-                       $row[] = $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
-                       $row[] = $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+                       $row[]=$field1=array("string"=>"<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
+                       $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
 
                        if($numtabs > 2){       
                                for($i = 2 ; $i <$numtabs;$i++){
-                                       if($i ==($numtabs-1)){
-                                               $row[] = array("string"=>"&nbsp;","attach" => "style='width:60px;border-right:0px;text-align:right;'");
-                                       }else{
-                                               $row[] = array("string"=>"&nbsp;");
-                                       }
+          if(isset( $this->array_Header[$i]['attach'])){
+            $row[] = array("string"=>"&nbsp;","attach" => $this->array_Header[$i]['attach']);
+          }else{
+            $row[] = array("string"=>"&nbsp;");
+          }
                                }
                        }