summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18042d7)
raw | patch | inline | side by side (parent: 18042d7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Aug 2009 13:16:16 +0000 (13:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Aug 2009 13:16:16 +0000 (13:16 +0000) |
-Added a new col to display periadical info
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14172 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14172 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/goto/class_gotomasses.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc
index ad278eaba61f3fdd86377e58ecb2e57f82980c2a..8efbd99df7aa53127a964377038de2bfbf3a87f6 100644 (file)
$divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=TargetName'>"._("Target").$sort_img_1."</a>"));
$divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=TaskID'>"._("Task").$sort_img_2."</a>",
"attach"=>"style='width:120px;'"));
+ $divlist->AddHeader(array("string"=>_("Period"),
+ "attach"=>"style='width:60px;'"));
$divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Schedule'>"._("Schedule").$sort_img_3."</a>",
"attach"=>"style='width:140px;'"));
$divlist->AddHeader(array("string"=>"<a href='?plug=".$plug."&sort=Action'>"._("Status").$sort_img_4."</a>",
$display = $task['PLAINNAME'];
$tooltip = " title='".$task['MACADDRESS']."' ";
}
+
+
$display2= $task['HEADERTAG'];
-
+
/* Check if this event exists as Daemon class
* In this case, display a more accurate entry.
*/
}
}
+ // Check whether this is a periodical job or not.
+ $period = "";
+ if(isset($task['PERIODIC']) && !preg_match("/none/i",$task['PERIODIC'])){
+ $tmp = split("_", $task['PERIODIC']);
+ if(count($tmp) == 2){
+ $period= $tmp[0]." "._($tmp[1]);
+ }
+ }
+
/* Create each field */
$field0 = array("string" => "<input type='checkbox' id='item_selected_".$task['ID']."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;".$color."'");
"attach" => $tooltip."style='".$color."'");
$field1a= array("string" => $display2,
"attach" => "style='".$color.";width:120px;'");
+ $field1b= array("string" => $period,
+ "attach" => "style='".$color.";width:60px;'");
if ($task['TIMESTAMP'] == "19700101000000"){
$field2 = array("string" => _("immediately"),"attach" => "style='".$color.";width:140px;'");
} else {
}
$field3 = array("string" => $status,"attach" => "style='".$color.";width:80px;'");
$field4 = array("string" => $prio_actions.$action,"attach" => "style='".$color.";text-align:right;width:140px;border-right:0px;'");
- $divlist->AddElement(array($field0,$field1,$field1a,$field2,$field3,$field4));
+ $divlist->AddElement(array($field0,$field1,$field1a,$field1b,$field2,$field3,$field4));
}
$smarty = get_smarty();