Code

Added special states like "Waiting for activation" and "Hardware detection"
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 13:10:37 +0000 (13:10 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 13:10:37 +0000 (13:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9897 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/class_gotomasses.inc

index 1edf44b4d2b5be29ebceb54d39696e307f222238..bc0668db9323c3d93983b3998a50787349bd3fce 100644 (file)
@@ -436,9 +436,20 @@ class gotomasses extends plugin
        */
       if($status == "processing" && isset($task['PROGRESS'])){
         $percent = $task['PROGRESS'];
-        $status = "<img src='progress.php?x=80&amp;y=13&amp;p=".$percent."' alt='".$percent."&nbsp;%'>";
-      }
 
+        /* Show activation? */
+        if ($percent == "goto-activation"){
+          $status = "<img class='center' src='images/status_stopped.png' alt=''>&nbsp;"._("Activation");
+
+        /* Show hardware detect? */
+        } elseif ($percent == "goto-hardware-detection") {
+          $status = "<img class='center' src='images/hardware.png' alt=''>&nbsp;"._("Detection");
+
+        /* Real percent */
+        } else {
+          $status = "<img src='progress.php?x=80&amp;y=13&amp;p=".$percent."' alt='".$percent."&nbsp;%'>";
+        }
+      }
 
       /* Create each field */
       $field0 = array("string" => "<input type='checkbox' id='item_selected_".$task['ID']."' name='item_selected_".$key."'>" ,