Code

Added "Feedback send info"
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 May 2007 08:00:40 +0000 (08:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 May 2007 08:00:40 +0000 (08:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6289 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Feedback.inc
setup/setup_feedback.tpl

index 59849117f9dcd9b4fe111cdc414e21c004f2e0d9..bd2580b44d89b8d6a0bb2b1dd97abd6d7e44e6c2 100644 (file)
@@ -121,6 +121,8 @@ class Step_Feedback  extends setup_step
       $this->init();
     }
 
+    $additional_info ="";
+
     if(isset($_POST['send_feedback'])){
 
       $msgs = $this->check();
@@ -143,6 +145,8 @@ class Step_Feedback  extends setup_step
           }
           if(!preg_match("/successfully/i",$ret_value)){
             print_red(sprintf(_("Could not send feedback. Script said '%s'."),$ret_value));
+          }else{
+            $additional_info = "<font color='green'>"._("Feedback sucessfully send")."</font>";
           }
         }
         @fclose($ret);
@@ -162,6 +166,7 @@ class Step_Feedback  extends setup_step
     }
     $smarty->assign("years",$years);
     $smarty->assign("features_used",$this->features_used);
+    $smarty->assign("additional_info",$additional_info);
     $smarty->assign ("must", "<font class=\"must\">*</font>");
     return($smarty->fetch(get_template_path("setup_feedback.tpl",TRUE,dirname(__FILE__))));
   }
index 319f46a47010da5a0018aecaa6b63d2fb0ca230b..20fae54e6fad93b7b63ad37d2b86ad4d280d79b9 100644 (file)
@@ -1,5 +1,7 @@
 <div class='default' style='margin:12px; '>  
 
+       <h2>{$additional_info}</h2>
+
        <h2>
                <input {if $subscribe} checked {/if} type='checkbox' name='subscribe' value='1' class='center'>&nbsp;{t}Subscribe to the gosa-announce mailinglist{/t}
        </h2>