Code

Fixed fai script list.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Sep 2007 13:29:09 +0000 (13:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Sep 2007 13:29:09 +0000 (13:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7298 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiScript.inc

index f1d199e6f5b9a69c50c0785f71eee7625fca73b2..ac945d890fedffa402ae1542b5017aa9546b303a 100644 (file)
@@ -275,7 +275,7 @@ class faiScript extends plugin
        Containing FAIscripts 
      */
     $divlist = new divlist("FAIscripts");
-    
+    $divlist -> SetEntriesPerPage(0); 
     $plug = $_GET['plug'];
 
      if($this->sort_order == "up"){
@@ -294,9 +294,12 @@ class faiScript extends plugin
 
      $divlist->SetHeader(array(  
           array("string"=>"<a href='?plug=".$plug."&amp;sort=name'>"._("Name").$sort_name."</a>"),
-          array("string"=>"<a href='?plug=".$plug."&amp;sort=priority'>".$sort_prio._("Priority")."</a>"),
-          array("string"=>_("Download")),
-          array("string"=>_("Action"))));
+          array("string"=>"<a href='?plug=".$plug."&amp;sort=priority'>".$sort_prio._("Priority")."</a>",
+                "attach" => "style='width:100px;'"),
+          array("string"=>_("Download"),
+                "attach" => "style='width:100px;'"),
+          array("string"=>_("Action"),
+                "attach"=>"style='border-right: 0px;width:100px;text-align:right;'")));
     $divlist->SetHeight(300);
     $divlist->SetWidth("100%");
 
@@ -319,10 +322,10 @@ class faiScript extends plugin
       } 
 
       $divlist->AddEntry(array( array("string"=>"<a href='?plug=".$_GET['plug']."&act=edit&id=".$key."'>".$name['name']."</a>"),
-            array("string"=>$name['FAIpriority'] , "attach" => "style='width:20px;'"),
-            array("string"=>$down , "attach" => "style='width:20px;'"),
+            array("string"=>$name['FAIpriority'] , "attach" => "style='width:100px;'"),
+            array("string"=>$down , "attach" => "style='width:100px;'"),
             array("string"=>str_replace("%s",base64_encode($key),$img_edit.$img_remo),
-              "attach"=>"style='border-right: 0px;width:50px;text-align:right;'")));
+              "attach"=>"style='border-right: 0px;width:100px;text-align:right;'")));
     }
     $smarty->assign("Entry_divlist",$divlist->DrawList());