summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e6c593)
raw | patch | inline | side by side (parent: 0e6c593)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 10:10:44 +0000 (10:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 10:10:44 +0000 (10:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7653 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_divListMasses.inc | patch | blob | history | |
plugins/addons/gotomasses/class_gotomasses.inc | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_divListMasses.inc b/plugins/addons/gotomasses/class_divListMasses.inc
index 1cfbe1021da9039f1a6799bbca2e606370376eb8..f504380ccd85971a35a27fadccf97c58b76fed2e 100644 (file)
$colors[1] = "#EEEEEE";
$c_keys = array();
$last_c = 0;
+ if($this->parent->sort_dir=="down"){
+ $last_c = !$last_c;
+ }
+
foreach($tasks as $key => $task){
/* Skip unchecked actions */
continue;
}
+
+
+ /* Handle coloring */
$color="";
if($this->parent->sort_by == "TaskID"){
if(!in_array($task['TASK_ID'],$c_keys)){
$color = "background-color: ".$colors[$last_c];
}
-
+ /* Create actions */
$id = $task['ID'];
$queue_pos = $task['Queue_Position'];
$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."'> ";
$prio_actions.= "<input class='center' type='image' src='images/prio_bottom.png' name='prio_bottom_".$id."'> ";
-
$action = "<input type='image' src='images/edit.png' name='edit_task_".$id."' class='center' alt='"._("Edit")."'>";
if($this->parent->acl_is_removeable()){
$action.= "<input type='image' src='images/edittrash.png' name='remove_task_".$id."' class='center' alt='"._("Reomve")."'>";
}
- /* Create each field */
- $field0 = array("string" => "<input type='checkbox' id='item_selected_".$id."' name='item_selected_".$id."'>" ,
- "attach" => "style='width:20px;".$color."'");
+
+ $display = preg_replace(array("/%id%/","/%str%/"),array($id,$this->parent->target_to_string($task)),$edit_link);
+ $display2= $this->parent->get_additional_entry_informations($task);
/* Create each field */
- $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),
+ $field0 = array("string" => "<input type='checkbox' id='item_selected_".$id."' name='item_selected_".$id."'>" ,
+ "attach" => "style='width:20px;".$color."'");
+ $field0a= array("string" => $queue_pos ,"attach" => "style='width:20px;".$color."'");
+ $field1 = array("string" => $display,
"attach" => "style='".$color."'");
+ $field1a= array("string" => $display2,
+ "attach" => "style='".$color.";width:80px;'");
$field2 = array("string" => $this->parent->time_to_string($task),"attach" => "style='".$color.";width:100px;'");
$field3 = array("string" => $this->parent->action_to_string($task),"attach" => "style='".$color.";width:80px;'");
$field4 = array("string" => $prio_actions.$action,"attach" => "style='".$color.";text-align:right;width:120px;border-right:0px;'");
- $this->AddElement(array($field0,$field0a,$field1,$field2,$field3,$field4));
+ $this->AddElement(array($field0,$field0a,$field1,$field1a,$field2,$field3,$field4));
}
}
diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc
index 3fb9061eccafb9aa2d4e4a752404079cb6462377..6e364c2b894ad1f434d9b6849040a6a97efd8887 100644 (file)
}
+ function get_additional_entry_informations($data)
+ {
+ return("<div style='width:80px;background-color:#999999;'><div style='background-color:#00FF00;width:40%'> </div></div>");
+ }
+
+
function target_to_string($data)
{
$ret = "";