Code

Updated samba tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jan 2009 10:45:10 +0000 (10:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jan 2009 10:45:10 +0000 (10:45 +0000)
- Hide logon / off modification boxes, fixed information style.
- Damn JS...

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13347 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/samba/personal/samba/class_sambaAccount.inc
gosa-plugins/samba/personal/samba/samba3.tpl

index d082d00d93e8bda8f2f8dc95e69f2dd5b40af07b..2f3df17e3f73537515556acbbf73b08fbd01b541 100644 (file)
@@ -924,8 +924,8 @@ class sambaAccount extends plugin
     }
 
     $str =
+      "\n<table style='width:100%;'><tr><td style='width:50%; border-right: solid 1px #B0B0B0;'>".
       "\n<table>".
-      "\n<tr><td>&nbsp;</td></tr>". 
       "\n<tr><td><b>"._("Domain attributes")."</b></td></tr>". 
       "\n<tr><td>"._("Min password length").":           </td><td>".$sambaMinPwdLength."</td></tr>". 
       "\n<tr><td>"._("Min password length").":           </td><td>".$sambaMinPwdLength."</td></tr>". 
@@ -937,7 +937,7 @@ class sambaAccount extends plugin
       "\n<tr><td>"._("Bad lockout attempt").":           </td><td>".$sambaLockoutThreshold."</td></tr>".
       "\n<tr><td>"._("Disconnect time").":               </td><td>".$sambaForceLogoff."</td></tr>".
       "\n<tr><td>"._("Refuse machine password change").":</td><td>".$sambaRefuseMachinePwdChange."</td></tr>".
-      "\n<tr><td>&nbsp;</td></tr>". 
+      "\n</table></td><td style='vertical-align: top;'><table>".
       "\n<tr><td><b>"._("User attributes")."</b></td></tr>". 
       "\n<tr><td>"._("Last failed login").":             </td><td>".$sambaBadPasswordTime."</td></tr>".
       "\n<tr><td>"._("Logon attempts").":                </td><td>".$sambaBadPasswordCount."</td></tr>".
@@ -947,7 +947,7 @@ class sambaAccount extends plugin
       "\n<tr><td>"._("Automatic logoff").":              </td><td>".$sambaKickoffTime."</td></tr>".
       "\n<tr><td>"._("Password expires").":              </td><td>".$sambaPwdMustChange."</td></tr>".
       "\n<tr><td>"._("Password change available").":     </td><td>".$sambaPwdCanChange."</td></tr>".
-      "\n</table>";
+      "\n</table></td></tr></table>";
     return($str);
   }
 
index 02e9bac05f88863113166928b15acee76ec64e45..250639b858c34df3066b1a26bcf6178c4c8e7f2c 100644 (file)
 {/render}
      </td>
     </tr>
-    <tr>
-     <td>{t}Information{/t}</td>
-     <td>
-      {if $display_information}
-      <input type='submit' name='display_information' value='{t}Hide{/t}'>
-      {else}
-      <input type='submit' name='display_information' value='{t}Show{/t}'>
-      {/if}
-     </td>
-    </tr>
-    <tr>
-     <td colspan="2">
-     {if $display_information}
-               {$samba_information}
-     {/if}
-     <td>
-    </tr>
    </table>
   </td>
   <td style="border-left:1px solid #A0A0A0">
  </tr>
 </table>
 
+<p class="seperator">&nbsp;</p>
+<h2>&nbsp;<img class="center" src='images/info_small.png'>&nbsp;{t}Information{/t}</h2>
+<table style='width:100%;'>
+ <tr>
+  <td>{t}Show information{/t}
+   {if $display_information}
+    <input type='submit' name='display_information' value='{t}Hide{/t}'>
+   {else}
+    <input type='submit' name='display_information' value='{t}Show{/t}'>
+   {/if}
+  </td> 
+ </tr>
+ {if $display_information}
+ <tr>
+  <td>
+    {$samba_information}
+  </td>
+ </tr>
+ {/if}
+</table>
 <p class="seperator">&nbsp;</p>
 
 <h2><img class="center" alt="" align="middle" src="plugins/samba/images/terminal_server.png" />&nbsp;{t}Terminal Server{/t}</h2>