From acd555297dec04a1601a76208e34bbfdfd14f975 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 6 Aug 2007 08:43:52 +0000 Subject: [PATCH] Added a border to the fai script list. Added sorting direction image. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6965 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 20 +++++++++++++++++--- plugins/admin/fai/faiScript.tpl | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index cdefc1929..4c23a59d6 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -306,9 +306,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); diff --git a/plugins/admin/fai/faiScript.tpl b/plugins/admin/fai/faiScript.tpl index 093e8b5f7..c0ff247b5 100644 --- a/plugins/admin/fai/faiScript.tpl +++ b/plugins/admin/fai/faiScript.tpl @@ -38,7 +38,7 @@

  {t}List of scripts{/t}

- +
{$Entry_divlist} -- 2.30.2