Code

Added AutoScrollDown to "FAI branch IFrame" just for testing. Looks good.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Dec 2006 07:11:01 +0000 (07:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Dec 2006 07:11:01 +0000 (07:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5370 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc
plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/faiNewBranch.tpl

index 1e086ecb5b2486cc7f47ece760c23cccc8c01dcb..d50b78d55f058dfa0a7d747833f1865986aed398 100644 (file)
@@ -583,6 +583,8 @@ class LDAP{
         }
       }
 
+      echo "<script language=\"javascript\" type=\"text/javascript\">scrollDown2();</script>" ;
+
       $this->ls ("(objectClass=*)",$sourcedn);
       while ($this->fetch()){
         $deldn= $this->getDN();
index 68078e36a92ad254f57880616f6af4cac911112c..629b0190d77383bd51a939402e5a36d1b5a42e09 100644 (file)
@@ -400,8 +400,16 @@ class faiManagement extends plugin
         $mimedst = preg_replace("/ou=fai,ou=configs,ou=systems,/","ou=mime,","ou=".$name.",".$baseToUse) ; 
 
         /* Print header to have styles included */
-        echo "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
-        echo "<body style='background-image:none;margin:3px;color:black'>";
+        echo '  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+          <html>
+          <head>
+          <title></title>
+          <style type="text/css">@import url("themes/default/style.css");</style>
+          <script language="javascript" src="include/focus.js" type="text/javascript"></script>
+          </head>
+          <body style="background: none;margin:3px;color:black">
+          ';
+
 
         /* Duplicate applications 
          */
@@ -447,6 +455,8 @@ class faiManagement extends plugin
           <br><input type='submit' name='CloseIFrame' value='"._("Continue")."'>
           </form></div>";
 
+        echo "<script language=\"javascript\" type=\"text/javascript\">scrollDown2();</script>" ;
+
         /* Print footer to have valid html */
         echo "</body></html>";
 
index 111fa80ed5144bcb3d03f43d3bbeb9359dc8e4ab..e9afc27a21b00636a182c1c530993e79990098fb 100755 (executable)
 <br>
 <br>
 <div style="margin:3px;background-color:white; border:1px solid #A0A0A0">
-<iframe src="?plug={$plugID}&PerformBranch=1" width="100%" name="status" style="height:450px;background-color:#FFFFFF;">
+<iframe src="?plug={$plugID}&amp;PerformBranch=1" width="100%" name="status" style="height:450px;background-color:#FFFFFF;">
 
        <p>{t}Your browser doesn't support iframes, please use this link to perform the requested operation.{/t}
                <br>
-               <a href='?plug={$plugID}&PerformBranch=1' target="_blank" title="{t}Perform requested operation.{/t}"><b>{t}Initiate operation{/t}</b></a>
+               <a href='?plug={$plugID}&amp;PerformBranch=1' target="_blank" title="{t}Perform requested operation.{/t}"><b>{t}Initiate operation{/t}</b></a>
        </p>    
 </iframe>
 </div>