Code

Fixed fai divlist
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Sep 2007 13:32:23 +0000 (13:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Sep 2007 13:32:23 +0000 (13:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7299 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiScript.inc

index 4c8110e9c47850784f354627f76f20ec5aff1ad8..bb0477613aa67d5a411d09cd696f6c5b2151bf3e 100644 (file)
@@ -315,8 +315,7 @@ class faiScript extends plugin
        Containing FAIscripts 
      */
     $divlist = new divlist("FAIscripts");
-#    $divlist->SetEntriesPerPage(0);
-    $divlist->SetPluginMode(); 
+    $divlist->SetEntriesPerPage(0);
     $plug = $_GET['plug'];
    
     if($this->sort_order == "up"){
@@ -334,9 +333,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%");
     foreach($this->getList(true) as $key => $name){
@@ -369,10 +371,10 @@ class faiScript extends plugin
       $s_acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry","cn")  ;
       if(preg_match("/r/",$s_acl)){
         $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),$act),
-                "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());