summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fa3bcd)
raw | patch | inline | side by side (parent: 1fa3bcd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 09:13:02 +0000 (09:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 09:13:02 +0000 (09:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7652 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_divListMasses.inc | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_divListMasses.inc b/plugins/addons/gotomasses/class_divListMasses.inc
index 186f5c8b3df4fe703b7505cb27c346c56ce70076..1cfbe1021da9039f1a6799bbca2e606370376eb8 100644 (file)
}
}
+ $colors[0] = "#DDDDDD";
+ $colors[1] = "#EEEEEE";
+ $c_keys = array();
+ $last_c = 0;
foreach($tasks as $key => $task){
/* Skip unchecked actions */
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 = "<input class='center' type='image' src='images/prio_top.png' name='prio_top_".$id."'> ";
$prio_actions.= "<input class='center' type='image' src='images/prio_increase.png' name='prio_increase_".$id."'> ";
$prio_actions.= "<input class='center' type='image' src='images/prio_decrease.png' name='prio_decrease_".$id."'> ";
}
/* Create each field */
$field0 = array("string" => "<input type='checkbox' id='item_selected_".$id."' name='item_selected_".$id."'>" ,
- "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;'");