Code

Made kerberos plugin w3c conform
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Mar 2010 12:19:37 +0000 (12:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Mar 2010 12:19:37 +0000 (12:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16991 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc
gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl
gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl

index 70ae2244fdc4459bedf1961abb7ee5f36ce86849..31ca651ed79072eea4dc50dbab832c8ff45a50a8 100644 (file)
@@ -139,8 +139,8 @@ class goKrbServer extends goService{
     }
 
     $divlist = new divSelectBox("Kerberos Policies");
-    $action  = "<input type='image' src='images/lists/edit.png' class='center' name='policy_edit_%id'>";
-    $action .= "<input type='image' src='images/lists/trash.png' class='center' name='policy_del_%id'>";
+    $action  = image('images/lists/edit.png','policy_edit_%id');
+    $action .= image('images/lists/trash.png','policy_del_%id');
     foreach($this->policies as $key => $policy){
       if($policy['STATUS'] == "REMOVED") continue;
 
@@ -295,7 +295,7 @@ class goKrbServer extends goService{
         /* Remove policy requested 
          */
         if(preg_match("/^policy_del/",$name)){
-          $id = preg_replace("/^policy_del_([0-9]*)_.*/i","\\1",$name);
+          $id = preg_replace("/^policy_del_([0-9]*)/i","\\1",$name);
           if(isset($this->policies[$id])){
             $this->RemovePolicy($id);
           }
@@ -305,7 +305,7 @@ class goKrbServer extends goService{
         /* Edit Policy requested 
          */
         if(preg_match("/^policy_edit/",$name)){
-          $id = preg_replace("/^policy_edit_([0-9]*)_.*/i","\\1",$name);
+          $id = preg_replace("/^policy_edit_([0-9]*)/i","\\1",$name);
           if(isset($this->policies[$id])){
 
             /* Load policy information, if not done before 
index 13de8e40e50b10ea72e630f23a660b0d0b445e47..34c6a589be7a3270d1792f0d89ed3d1fd64b6eeb 100644 (file)
@@ -1,44 +1,22 @@
 <h3>{t}Kerberos kadmin access{/t}</h3>
 
-  <table style='width:100%;'>
-   <tr>
-    <td>
-               <table>
-                <tr>
-                 <td>{t}Kerberos Realm{/t}{$must}</td>
-                  {render acl=$goKrbRealmACL}
-                 <td><input type='text' name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60  value="{$goKrbRealm}"></td>
-                       {/render}
-                </tr>
-               </table>
-     </td>
-    </tr>
-{if $MIT_KRB}
-    <tr>
-     <td>
-               <h3>{t}Policies{/t}</h3>
-               <table style="width:100%;">
-                <tr>
-                 <td>
-                  {render acl=$goKrbPolicyACL}
-                   {$divlist}
-                  {/render}
-                 </td>
-                </tr>
-               </table>
-               <button type='submit' name='policy_add'>{msgPool type=addButton}</button>
+{t}Kerberos Realm{/t}{$must}
+ {render acl=$goKrbRealmACL}
+  <input type='text' name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60  value="{$goKrbRealm}">
+ {/render}
 
-     </td>
-    </tr>
+{if $MIT_KRB}
+ <h3>{t}Policies{/t}</h3>
+ {render acl=$goKrbPolicyACL}
+  {$divlist}
+ {/render}
+ <button type='submit' name='policy_add'>{msgPool type=addButton}</button>
 {/if}
-   </table>
 
-<hr>
-<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
-    <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
-
-    &nbsp;
-    <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
 
+<hr>
+<div class="plugin-actions">
+ <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
+ <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
 </div>
 <input type="hidden" name="goKrbServerPosted" value="1">
index 254e225e51fecb1685df7069ee2204040bf811c6..4cb5bffc3b580fcff49e2702212b97daa3dff2bb 100644 (file)
@@ -1,53 +1,57 @@
 <h3>{t}Policy settings{/t}</h3>
-<table style="width:100%">
+
+<table style="width:100%" summary="{t}Kerberos policy{/t}">
  <tr>
   <td class='right-border'>
 
-   <table>
+   <table style="width:100%" summary="{t}Kerberos policy{/t}">
     <tr>
-      <td>{t}Policy name{/t}{$must}</td>
-      <td><input type="text" name="name" value="{$name}"></td>
+     <td>{t}Policy name{/t}{$must}</td>
+     <td><input type="text" name="name" value="{$name}"></td>
     </tr>
     <tr>
-      <td>{t}Minimum password length{/t}</td>
-      <td><input type="text" name="PW_MIN_LENGTH" value="{$PW_MIN_LENGTH}"></td>
+     <td>{t}Minimum password length{/t}</td>
+     <td><input type="text" name="PW_MIN_LENGTH" value="{$PW_MIN_LENGTH}"></td>
     </tr>
     <tr>
-      <td>{t}Required different characters{/t}</td>
-      <td><input type="text" name="PW_MIN_CLASSES" value="{$PW_MIN_CLASSES}"></td>
+     <td>{t}Required different characters{/t}</td>
+     <td><input type="text" name="PW_MIN_CLASSES" value="{$PW_MIN_CLASSES}"></td>
     </tr>
     <tr>
-      <td>{t}Password history size{/t}</td>
-      <td><input type="text" name="PW_HISTORY_NUM" value="{$PW_HISTORY_NUM}"></td>
+     <td>{t}Password history size{/t}</td>
+     <td><input type="text" name="PW_HISTORY_NUM" value="{$PW_HISTORY_NUM}"></td>
     </tr>
    </table>
-   </td>
-   <td>
 
-    <table>
+  </td>
+  <td>
+
+   <table style="width:100%" summary="{t}Kerberos policy{/t}">
+    <tr>
      <td>
-      <tr>
-        <td>{t}Minimum password lifetime{/t}</td>
-        <td><input type="text" name="PW_MIN_LIFE" value="{$PW_MIN_LIFE}">&nbsp;{t}seconds{/t}</td>
-      </tr>
-      <tr>
-        <td>{t}Password lifetime{/t}</td>
-        <td><input type="text" name="PW_MAX_LIFE" value="{$PW_MAX_LIFE}">&nbsp;{t}seconds{/t}</td>
-      </tr>
-    </table>
-   </td>
-  </tr>
-  <tr>
-    <td colspan="2"><br>{$POLICY_REFCNT}</td>
-  </tr>
- </table>
-<input type="hidden" name="Policy_Posted" value="1">
-<hr>
+       <td>{t}Minimum password lifetime{/t}</td>
+       <td><input type="text" name="PW_MIN_LIFE" value="{$PW_MIN_LIFE}">&nbsp;{t}seconds{/t}</td>
+     </tr>
+     <tr>
+       <td>{t}Password lifetime{/t}</td>
+       <td><input type="text" name="PW_MAX_LIFE" value="{$PW_MAX_LIFE}">&nbsp;{t}seconds{/t}</td>
+     </tr>
+   </table>
 
-<div style="text-align:right; padding:4px;">
-       <button type='submit' name='save_policy'>{msgPool type=okButton}</button>
+  </td>
+ </tr>
+ <tr>
+  <td colspan="2">
+   <br>
+   {$POLICY_REFCNT}
+  </td>
+ </tr>
+</table>
 
-       &nbsp;
-       <button type='submit' name='cancel_policy'>{msgPool type=cancelButton}</button>
+<input type="hidden" name="Policy_Posted" value="1">
+<hr>
 
+<div class="plugin-actions">
+ <button type='submit' name='save_policy'>{msgPool type=okButton}</button>
+ <button type='submit' name='cancel_policy'>{msgPool type=cancelButton}</button>
 </div>