Code

Added http://servername/ppd/ to gotoPrinterPPD
[gosa.git] / plugins / admin / fai / class_faiPackageEntry.inc
index c1672746d264318260869c992cee44ebf46d435e..f863296709ac0ddfe1546cc48527f1cd50572520 100644 (file)
@@ -37,13 +37,14 @@ class faiPackageEntry extends plugin
   {
        /* Call parent execute */
        plugin::execute();
+
     /* Fill templating stuff */
     $smarty     = get_smarty();
     $display = "";
 
     $divlist = new divlist("PackageEntry");
     $divlist->SetSummary(_("This list displays all assigned package names for this repository settings."));
-    $divlist->SetEntriesPerPage(0);
+    $divlist->SetEntriesPerPage(20);
     $divlist->SetHeader(array(array("string"=>" "),
                               array("string"=>"Name"),
                               array("string"=>"Version"),
@@ -108,6 +109,7 @@ class faiPackageEntry extends plugin
       }
     }
 
+    $cnt = 0; 
     foreach($pkgs as $pkg){
       if((preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[0]))||
          (preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[3]))){
@@ -117,6 +119,7 @@ class faiPackageEntry extends plugin
           }else{
             $check = "";
           }
+          $cnt ++ ;
           $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),