From 7ed850e0aaebb1058bcf5e5e6cab982b0cf34de8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Sep 2007 13:32:23 +0000 Subject: [PATCH] Fixed fai divlist git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7299 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 4c8110e9c..bb0477613 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -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"=>""._("Name").$sort_name.""), - array("string"=>"".$sort_prio._("Priority").""), - array("string"=>_("Download")), - array("string"=>_("Action")))); + array("string"=>"".$sort_prio._("Priority")."", + "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"=>"".$name['name'].""), - 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()); -- 2.30.2