Code

Fixed w3c errors for hooks.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 07:23:09 +0000 (07:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 07:23:09 +0000 (07:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7834 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHookEntry.inc
plugins/admin/fai/faiHook.tpl
plugins/admin/fai/faiHookEntry.tpl

index 0d12d8e35adc7f73b1999081e392b1b6fd955952..5a23ea4979aecc181caf441685565ed654044bd0 100644 (file)
@@ -115,7 +115,12 @@ class faiHookEntry extends plugin
       }
       $smarty->assign($name."ACL",$acl);
     }
-
+   
+    if(get_magic_quotes_gpc()){
+      $smarty->assign("FAIscript" , htmlentities(stripslashes($this->FAIscript)));
+    }else{
+      $smarty->assign("FAIscript" , htmlentities($this->FAIscript));
+    }
     $display.= $smarty->fetch(get_template_path('faiHookEntry.tpl', TRUE));
     return($display);
   }
index 95ceba6fb3408037c29487ca61f6b24adcb21144..6768ad92dab28754a54b2c96a271d5eb1d950139 100644 (file)
@@ -36,9 +36,7 @@
        <tr>
                <td>
                                <h2><img class="center" alt="" src="images/fai_hook.png" align="middle" title="{t}Objects{/t}">&nbsp;
-                                       <LABEL for="SubObject">
-                                               {t}List of hook scripts{/t}
-                                       </LABEL>
+                                       {t}List of hook scripts{/t}
                                </h2>
                                <table width="100%" summary=''>
                                <tr>
index 7d6bc4415096c752a169450ab9472de45617d01a..882da267d23f1c423939a51f4556e87555bb8f63 100644 (file)
@@ -38,7 +38,7 @@
                                                        {t}Task{/t}&nbsp;
                                                        </LABEL>
 {render acl=$FAItaskACL}
-                                                       <select name="FAItask" title="{t}Choose an existing FAI task{/t}">
+                                                       <select id="FAItask" name="FAItask" title="{t}Choose an existing FAI task{/t}">
                                                                {html_options values=$tasks output=$tasks selected=$FAItask}
                                                        </select>
 {/render}
@@ -60,7 +60,8 @@
     <tr>
         <td>
 {render acl=$FAIscriptACL}
-            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript" >{$FAIscript}</textarea>
+            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript" 
+                               rows=20 cols=120>{$FAIscript}</textarea>
 {/render}
         </td>
     </tr>