From 6576ae6c4bb956cea5f2cfd3c7b5d8ce373e41e6 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 6 Aug 2007 08:59:16 +0000 Subject: [PATCH] Added border to divlist in fai script listing. Added Sorting images git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6966 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 3f9d0612e..7fd3c4a60 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -257,8 +257,23 @@ class faiScript extends plugin $divlist = new divlist("FAIscripts"); $plug = $_GET['plug']; - $divlist->SetHeader(array( array("string"=>""._("Name").""), - array("string"=>""._("Priority").""), + if($this->sort_order == "up"){ + $dir = "\/"; + }else{ + $dir = "/\"; + } + + if($this->sort_by == "name"){ + $sort_name = $dir; + $sort_prio = ""; + }else{ + $sort_name = ""; + $sort_prio = $dir; + } + + $divlist->SetHeader(array( + array("string"=>""._("Name").$sort_name.""), + array("string"=>"".$sort_prio._("Priority").""), array("string"=>_("Download")), array("string"=>_("Action")))); $divlist->SetHeight(300); -- 2.30.2