Code

Updated FAI partition handling
[gosa.git] / gosa-plugins / fai / admin / fai / class_faiPackageEntry.inc
index e184c7f82b1d1dd6d1a8d1cd23b69cde0cde04c2..f86f89a96aff64eefcd72d3697101ef4e5c5789e 100644 (file)
@@ -74,10 +74,12 @@ class faiPackageEntry extends plugin
 
     /* Create section checkboxes 
      */ 
-    $Section_boxes = "<input type='hidden' value='chkchange' name='chkchange'><table summary=''><tr>";
+    $Section_boxes = "
+          <div style='height:450px; overflow:scroll;'> 
+            <input type='hidden' value='chkchange' name='chkchange'><table summary=''><tr>";
     $i = 0;
     foreach($this->package_sections as $cat => $selected){
-      if($i == 3){
+      if($i == 2){
         $Section_boxes .="</tr><tr>";
         $i = 0;
       }
@@ -90,7 +92,7 @@ class faiPackageEntry extends plugin
       }
       $i ++ ;
     }
-    $Section_boxes .= "</tr></table>";
+    $Section_boxes .= "</tr></table></div>";
 
     /* Create List && fill it with packages
      */
@@ -111,6 +113,12 @@ class faiPackageEntry extends plugin
       }else{
         $check = "";
       }
+  
+      $desc = " ";
+      if(isset($pkg['DESCRIPTION'])){
+        $desc = base64_decode($pkg['DESCRIPTION']);
+      }
+
       $chkbox = "<input type='checkbox' value='1' name='use_".base64_encode($pkg['PACKAGE'])."' ".$check.">
         <input type='hidden' value='1' name='wasonpage_".base64_encode($pkg['PACKAGE'])."'>";
       $divlist->AddEntry(array(array("string"=>$chkbox, "attach" => "style='text-align:center;width:20px;'"),
@@ -118,7 +126,7 @@ class faiPackageEntry extends plugin
               "attach" => "style='width:180px;' title='".$pkg['PACKAGE']." (".$pkg['VERSION'].")'"),
             array("string"=>"<div style='width:238px; overflow:hidden;'>".htmlentities($pkg['VERSION'])."</div>",   
               "attach" => "style='width:240px' title='".$pkg['PACKAGE']." (".$pkg['VERSION'].")'"),
-            array("string"=>htmlentities($pkg['DESCRIPTION']), 
+            array("string"=>htmlentities($desc), 
               "attach" => "style='border-right:0px;text-align:left;'")));
     }