From c3360b6b88ecc425b77c1c62ea89bc201ce82a1f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 29 Jan 2008 14:48:28 +0000 Subject: [PATCH] Updated gotomasses. -Added up/down sorting images git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8637 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addons/gotomasses/class_gotomasses.inc | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc index e5090c877..d4424187f 100644 --- a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc +++ b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc @@ -16,8 +16,8 @@ class gotomasses extends plugin var $ids_to_remove = array(); var $divlist = NULL; - var $sort_by = "QueuePosition"; - var $sort_dir = "up"; + var $sort_by = "Schedule"; + var $sort_dir = "down"; var $range = 25; var $start = 0; @@ -204,7 +204,16 @@ class gotomasses extends plugin $divlist->EnableSaveButton(FALSE); $divlist->SetHeadpageMode(); + if($this->sort_dir == "up"){ + $sort_img = "/\"; + }else{ + $sort_img = "\/"; + } + if($this->sort_by == "TargetName"){ $sort_img_1 = $sort_img; } else { $sort_img_1 = "" ;} + if($this->sort_by == "TaskID"){ $sort_img_2 = $sort_img; } else { $sort_img_2 = "" ;} + if($this->sort_by == "Schedule"){ $sort_img_3 = $sort_img; } else { $sort_img_3 = "" ;} + if($this->sort_by == "Action"){ $sort_img_4 = $sort_img; } else { $sort_img_4 = "" ;} /* Display add button if allowed */ $header = "
"; @@ -226,11 +235,11 @@ class gotomasses extends plugin /* set Page header */ $divlist->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); - $divlist->AddHeader(array("string"=>""._("Target")." / ". - ""._("Task")."")); - $divlist->AddHeader(array("string"=>""._("Schedule")."", + $divlist->AddHeader(array("string"=>""._("Target").$sort_img_1." / ". + ""._("Task").$sort_img_2."")); + $divlist->AddHeader(array("string"=>""._("Schedule").$sort_img_3."", "attach"=>"style='width:100px;'")); - $divlist->AddHeader(array("string"=>""._("Status")."", + $divlist->AddHeader(array("string"=>""._("Status").$sort_img_4."", "attach"=>"style='width:80px;'")); $divlist->AddHeader(array("string"=>_("Action"), "attach"=>"style='border-right:0px;width:120px;'")); -- 2.30.2