Code

Added random generated status messages for each entry
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 10:15:16 +0000 (10:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 10:15:16 +0000 (10:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7654 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_gotomasses.inc

index 6e364c2b894ad1f434d9b6849040a6a97efd8887..1920ea8dda390d5880fe9241185b6a3f2c028669 100644 (file)
@@ -269,7 +269,17 @@ class gotomasses extends plugin
 
   function get_additional_entry_informations($data)
   {
-    return("<div style='width:80px;background-color:#999999;'><div style='background-color:#00FF00;width:40%'>&nbsp;</div></div>");
+    $i = rand(0,3);
+    if($i == 0){
+      return("<div style='width:80px;background-color:#999999;'><div style='background-color:#00FF00;width:40%'>&nbsp;</div></div>");
+    }
+    if($i == 1){
+      return("<font style='color: #FF0000;'>Failed</font>");
+    }
+    if($i == 1){
+      return("<font style='color: #00FF00;'>OK</font>");
+    }
+    return("-");
   }