From: hickert Date: Thu, 25 Oct 2007 09:13:02 +0000 (+0000) Subject: Updated gotomasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e6c59309e91612d3abcffc7e4bba7353a5289bb;p=gosa.git Updated gotomasses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_divListMasses.inc b/plugins/addons/gotomasses/class_divListMasses.inc index 186f5c8b3..1cfbe1021 100644 --- a/plugins/addons/gotomasses/class_divListMasses.inc +++ b/plugins/addons/gotomasses/class_divListMasses.inc @@ -90,6 +90,10 @@ class divListMasses extends MultiSelectWindow } } + $colors[0] = "#DDDDDD"; + $colors[1] = "#EEEEEE"; + $c_keys = array(); + $last_c = 0; foreach($tasks as $key => $task){ /* Skip unchecked actions */ @@ -97,10 +101,18 @@ class divListMasses extends MultiSelectWindow continue; } + $color=""; + if($this->parent->sort_by == "TaskID"){ + if(!in_array($task['TASK_ID'],$c_keys)){ + $c_keys[] = $task['TASK_ID']; + $last_c = !$last_c; + } + $color = "background-color: ".$colors[$last_c]; + } + + $id = $task['ID']; $queue_pos = $task['Queue_Position']; - $color= "background-color: #".$task['color']; - $prio_actions = " "; $prio_actions.= " "; $prio_actions.= " "; @@ -112,10 +124,10 @@ class divListMasses extends MultiSelectWindow } /* Create each field */ $field0 = array("string" => "" , - "attach" => "style='width:20px;'"); + "attach" => "style='width:20px;".$color."'"); /* Create each field */ - $field0a = array("string" => $queue_pos ,"attach" => "style='width:20px;'"); + $field0a = array("string" => $queue_pos ,"attach" => "style='width:20px;".$color."'"); $field1 = array("string" => preg_replace(array("/%id%/","/%str%/"),array($id,$this->parent->target_to_string($task)),$edit_link), "attach" => "style='".$color."'"); $field2 = array("string" => $this->parent->time_to_string($task),"attach" => "style='".$color.";width:100px;'");