Code

Added Focus patch
[gosa.git] / plugins / personal / generic / generic.tpl
index c79dccdf67fc25178ec9040dc3483a5b15b8a47a..f74986c4b02f77b245faf8394fe70101d4f2c2d3 100644 (file)
           <tr>
                <td width="147" height="200" bgcolor="gray">
                {if !$userPicture_is_readable}
-                       <img align="center" valign="center" border="0" width="100%" src="images/default.jpg" alt="{t}Personal picture{/t}">
+                       <img class='center' border="0" width="100%" src="images/default.jpg" alt="{t}Personal picture{/t}">
                {else}
-                       <img align="center" valign="center" border="0" width="100%" src="getbin.php?rand={$rand}" alt="{t}Personal picture{/t}">
+                       <img class='center' border="0" width="100%" src="getbin.php?rand={$rand}" alt="{t}Personal picture{/t}">
                {/if}
                </td>
           </tr>
           <tr>
                <td>
                {render acl=$userPictureACL}
-                       <input valign="top" type="submit" name="edit_picture" value="{t}Change picture{/t}...">
+                       <input style='vertical-align:top;' type="submit" name="edit_picture" value="{t}Change picture{/t}...">
                {/render}
                </td>
           </tr>
                <select id="base" size="1" name="base" title="{t}Choose subtree to place user in{/t}">
                        {html_options options=$bases selected=$base_select}
                </select>
+       {/render}
+       {render acl=$baseACL disable_picture='images/folder_gray.png'}
                <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
        {/render}
      </td>
   <td style="vertical-align:top;">
    <table summary="" style="width:100%"> 
     <tr>
-     <td><label for="l">{t}Location{/t}</l></td>
+     <td><label for="l">{t}Location{/t}</label></td>
      <td>
        {render acl=$lACL}
                <input id="l" name="l" size=22 maxlength=60 value="{$l}">
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.sn.focus();
+       focus_field('sn');
        if (document.mainform.yearSel != "")
                                populate(document.mainform,document.mainform.dateOfBirth);
   -->