Code

Disable forward button if we reached the last step
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Apr 2007 07:51:19 +0000 (07:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Apr 2007 07:51:19 +0000 (07:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6044 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setup.inc

index fd15d27694e6fe86d7f93f1456e9051b61fe89c2..8ff19b5067c8cf647aadb00c14a5a2bf3cf25383 100644 (file)
@@ -224,7 +224,11 @@ class setup
       $str .= "<input type='button' name='last' value='"._("Backward")."' disabled>";
     }
 
-    $str .= "<input type='submit' name='next' value='"._("Forward")."'>";
+    if(isset($this->o_steps[$this->i_current + 1])){
+      $str .= "<input type='submit' name='next' value='"._("Forward")."'>";
+    }else{
+      $str .= "<input type='button' value='"._("Forward")."' disabled>";
+    }
     $str .="</div>";
     return($str);
   }