From: hickert Date: Wed, 27 Feb 2008 12:52:04 +0000 (+0000) Subject: Updated gotmasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=291ba85bbd6a6fe22047bad81a4941fdca5e362f;p=gosa.git Updated gotmasses -Installation progress will be displayed now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9172 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc index 546f88df8..1cc10293c 100644 --- a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc @@ -327,6 +327,17 @@ class gotomasses extends plugin } } + $status = $task['STATUS']; + + /* Special handling for all entries that have + STATUS == "processing" && PROGRESS == NUMERIC + */ + if($status == "processing" && isset($task['PROGRESS'])){ + $percent = $task['PROGRESS']; + $status = "".$percent." %"; + } + + /* Create each field */ $field0 = array("string" => "" , "attach" => "style='width:20px;".$color."'"); @@ -335,7 +346,7 @@ class gotomasses extends plugin $field1a= array("string" => $display2, "attach" => "style='".$color.";width:120px;'"); $field2 = array("string" => date("d.m.Y H:i:s",strtotime($task['TIMESTAMP'])),"attach" => "style='".$color.";width:100px;'"); - $field3 = array("string" => $task['STATUS'],"attach" => "style='".$color.";width:80px;'"); + $field3 = array("string" => $status,"attach" => "style='".$color.";width:80px;'"); $field4 = array("string" => $prio_actions.$action,"attach" => "style='".$color.";text-align:right;width:120px;border-right:0px;'"); $divlist->AddElement(array($field0,$field1,$field1a,$field2,$field3,$field4)); }