Code

Fixed lists with pagenums
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Dec 2005 07:12:10 +0000 (07:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Dec 2005 07:12:10 +0000 (07:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2196 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_divlist.inc
plugins/admin/fai/class_faiPackageEntry.inc

index 203d2298424f83770e13c85fdd2c0ed05e532c14..06b34845ffa1649a0705df3d0b329313e069daa7 100644 (file)
@@ -129,7 +129,7 @@ class divlist {
                $s_return       = "";
    
     // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table.
-    $s_return .= "\n<tr><td class='scrollbody'><div style='align:left;width:".$this->s_width."px;height:".($this->s_height-20)."px;overflow:auto;'>";
+    $s_return .= "\n<tr><td colspan=".$this->cols." class='scrollbody'><div style='align:left;width:".$this->s_width."px;height:".($this->s_height-20)."px;overflow:auto;'>";
 
     // Only reduce width if we need a scrollbar (>19 Entries)
     if($this->_numEntries()>19) {
index 860b6707a4c637383b4e36ccf8fb00ac097753f9..57e96f97dafe4cd072eabaf6649f7fd560d30ae4 100644 (file)
@@ -46,11 +46,11 @@ class faiPackageEntry extends plugin
 
     $divlist = new divlist("PackageEntry");
     $divlist->SetSummary(_("This list displays all assigned package names for this repository settings."));
-    $divlist->SetEntriesPerPage(0);
+    $divlist->SetEntriesPerPage(20);
     $divlist->SetHeight("650px;");
     $divlist->SetHeader(array(array("string" => "&nbsp;", "attach" => "style='text-align:center;width:20px;'"),
-                              array("string" => "Name", "attach" => "style=''"),
-                              array("string" => "Version", "attach" => "style='width:100px;'"),
+                              array("string" => "Name", "attach" => "style='width:180px;'"),
+                              array("string" => "Version", "attach" ),
                               array("string" => "Description", "attach" => "style='width:240px;border-right:0px;text-align:left;'")));
 
     if(isset($_GET['search'])){
@@ -126,9 +126,9 @@ class faiPackageEntry extends plugin
           $chkbox = "<input type='checkbox' value='1' name='use_".base64_encode($pkg[0])."' ".$check." onclick='document.mainform.submit()'>
                    <input type='hidden' value='1' name='wasonpage_".base64_encode($pkg[0])."'>";
           $divlist->AddEntry(array(array("string"=>$chkbox, "attach" => "style='text-align:center;width:20px;'"),
-                               array("string"=>$pkg[0], "attach" => "style=''"),
-                               array("string"=>$pkg[1], "attach" => "style='width:100px;'"),
-                               array("string"=>$pkg[3], "attach" => "style='width:240px;border-right:0px;text-align:left;'")));
+                               array("string"=>$pkg[0], "attach" => "style='width:180px;'"),
+                               array("string"=>$pkg[1]),
+                               array("string"=>$pkg[3], "attach" => "style='width:221px;border-right:0px;text-align:left;'")));
         }
       }
     }