summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e68a5af)
raw | patch | inline | side by side (parent: e68a5af)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 29 Jan 2008 14:48:28 +0000 (14:48 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 29 Jan 2008 14:48:28 +0000 (14:48 +0000) |
-Added up/down sorting images
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8637 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8637 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/addons/gotomasses/class_gotomasses.inc | patch | blob | history |
diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc
index e5090c877fe11767d03de10029d15a94a13e328a..d4424187fd029f96f6b9caad03c11ad855eceb62 100644 (file)
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;
$divlist->EnableSaveButton(FALSE);
$divlist->SetHeadpageMode();
+ if($this->sort_dir == "up"){
+ $sort_img = "<img src='images/sort_up.png' alt='/\' border=0>";
+ }else{
+ $sort_img = "<img src='images/sort_down.png' alt='\/' border=0>";
+ }
+ 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 = "<div style='padding:5px'>";
/* set Page header */
$divlist->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'"));
- $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=TargetName'>"._("Target")."</a> / ".
- "<a href='?plug=".$plug."&sort=TaskID'>"._("Task")."</a>"));
- $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Schedule'>"._("Schedule")."</a>",
+ $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=TargetName'>"._("Target").$sort_img_1."</a> / ".
+ "<a href='?plug=".$plug."&sort=TaskID'>"._("Task").$sort_img_2."</a>"));
+ $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Schedule'>"._("Schedule").$sort_img_3."</a>",
"attach"=>"style='width:100px;'"));
- $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Action'>"._("Status")."</a>",
+ $divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Action'>"._("Status").$sort_img_4."</a>",
"attach"=>"style='width:80px;'"));
$divlist->AddHeader(array("string"=>_("Action"),
"attach"=>"style='border-right:0px;width:120px;'"));