Code

[COSMETIC] Most of the imgs are now centered vertically in most browsers.
[gosa.git] / plugins / personal / environment / environment.tpl
index 447eb359fc3a203d2e6335dd6e7f99d71d9eed23..cb673d40b56195d37421d799c9d3d2ae1cb045dd 100644 (file)
@@ -1,21 +1,21 @@
 {if $is_account ne 'true'}
-       <img alt="" src="images/stop.png" align="middle">
+       <img alt="" class="center" src="images/stop.png" align="middle">
        {t}The environment extension is currently disabled.{/t}
 {else}
 <input type="hidden" name="iamposted" value="1">
 
-<h2><img alt="" src="images/fai_profile.png" align="middle">&nbsp;{t}Profiles{/t}</h2>
+<h2><p class="center"><img class="center" alt="" src="images/fai_profile.png" align="middle" /> {t}Profiles{/t}</p></h2>
 <table summary="{t}Environment managment settings{/t}" width="100%">
   <tr>
    <td style="width:50%;border-right:1px solid #B0B0B0;vertical-align:top;">
                        <table summary="{t}Profile managment{/t}">
                                <tr>
                                        <td style="vertical-align:top">
-                                               <input type="checkbox" value="1" {$useProfileCHK} name="useProfile" {$useProfileACL} id="useProfile"
-                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');">
+                                               <input class="center" type="checkbox" value="1" {$useProfileCHK} name="useProfile" {$useProfileACL} id="useProfile"
+                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');" {$gotoProfileFlagsACL}>
                                        </td>
-                                       <td valign="top">
-                                               <LABEL for="useProfile">{t}Use profile managment{/t}</LABEL>
+                                       <td style="vertical-align:middle;">
+                                               <label for="useProfile">{t}Use profile managment{/t}</label>
                                        </td>
                                </tr>
                                <tr>
@@ -25,7 +25,7 @@
                                                <table summary="{t}Profile server managment{/t}">
                                                        <tr>
                                                                <td>    
-                                                                       <LABEL for="gotoProfileServer">{t}Profil path{/t}</LABEL>
+                                                                       <label for="gotoProfileServer">{t}Profil path{/t}</label>
                                                                </td>
                                                                <td>
                                                                        <select id="gotoProfileServer" 
@@ -37,9 +37,9 @@
                                                        </tr>
                                                        <tr>
                                                                <td colspan=2>  
-                                                                       <input type="checkbox" name="gotoProfileFlag_C" value="C" 
-                                                                               id="gotoProfileFlag_C" {$gotoProfileACL} {$gotoProfileFlag_CCHK}>&nbsp;
-                                                                       <LABEL for="gotoProfileFlag_C">{t}Cache profile localy{/t}</LABEL>
+                                                                       <input class="center" type="checkbox" name="gotoProfileFlag_C" value="C" 
+                                                                               id="gotoProfileFlag_C" {$useProfileACL} {$gotoProfileFlagsACL} {$gotoProfileFlag_CCHK}>&nbsp;
+                                                                       <label for="gotoProfileFlag_C">{t}Cache profile localy{/t}</label>
                                                                </td>
                                                        </tr>
                                                </table>
                        <table summary="{t}Kiosk profile settings{/t}">
                                <tr>
                                        <td>
-                                               <LABEL for="gotoKioskProfile">{t}Kiosk profile{/t}</LABEL>
+                                               <label for="gotoKioskProfile">{t}Kiosk profile{/t}</label>
                                        </td>
                                        <td>
                                                <select name="gotoKioskProfile" {$gotoKioskProfileACL} id="gotoKioskProfile">
-                        {html_options values=$gotoKioskProfiles output=$gotoKioskProfiles selected=$gotoKioskProfile}
+                        {html_options values=$gotoKioskProfileKeys output=$gotoKioskProfiles selected=$gotoKioskProfile}
                         <option disabled>&nbsp;</option></select>&nbsp;
                                                <input type="submit" name="KioskManagementDialog" value="{t}Manage{/t}" {$gotoKioskProfileACL}>
                                        </td>
                                </tr>
                                <tr>
                                        <td>
-                                               <LABEL for="gotoProfileQuota">{t}Quota{/t}</LABEL
+                                               <label for="gotoProfileQuota">{t}Quota{/t}</label
                                                <br>
                                                <br>
                                        </td>
                                        <td>
-                                               <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" style="width:100px;" 
+                                               <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" size="6"
                                                        {$gotoProfileQuotaACL} id="gotoProfileQuota">{t}MB{/t}
                                                <br>
                                                <br>
                                </tr>
                                <tr>
                                        <td colspan=2>
-                                               <input type="checkbox" name="gotoProfileFlag_L" id="gotoProfileFlag_L" value="L" {$gotoProfileACL} {$gotoProfileFlag_LCHK}>
-                                               <LABEL for="gotoProfileFlag_L">{t}Resolution changeable on runtime{/t}</LABEL>
+                                               <input type="checkbox" name="gotoProfileFlag_L" id="gotoProfileFlag_L" value="L" {$gotoProfileFlagsACL} {$gotoProfileFlag_LCHK}>
+                                               <label for="gotoProfileFlag_L">{t}Resolution changeable on runtime{/t}</label>
                                        </td>
                                </tr>
                                <tr>
                                        <td>
-                                               <LABEL for="gotoXResolution">{t}Resolution{/t}</LABEL>
+                                               <label for="gotoXResolution">{t}Resolution{/t}</label>
                                        </td>
                                        <td>
                                                <select name="gotoXResolution" {$gotoXResolutionACL} id="gotoXResolution">
 <table summary="{t}Environment managment settings{/t}" width="100%">
   <tr>
    <td style="width:50%;border-right:1px solid #B0B0B0">
-       <h2><img alt="" src="images/fai_partitionTable.png" align="middle">&nbsp;<LABEL for="gotoShare">{t}Shares{/t}</LABEL></h2>
-       <table summary="">
+       <h2><p class="center"><img class="center" alt="" src="images/fai_partitionTable.png" align="middle" />&nbsp;<label for="gotoShare">{t}Shares{/t}</label></p></h2>
+       <table summary="" style="width:100%">
                <tr>
                        <td>
-                       <select style="width:350px;" name="gotoShare" multiple size=4 {$gotoShareACL} id="gotoShare">
+                       <select style="width:100%;" name="gotoShare" multiple size=5 {$gotoShareACL} id="gotoShare">
        {html_options values=$gotoShareKeys output=$gotoShares}
        <option disabled>&nbsp;</option>
                                </select>
        </table>
    </td>
    <td>
-       <h2><img alt="" src="images/fai_script.png" align="middle">&nbsp;<LABEL for="gotoLogonScript">{t}Logon scripts{/t}</LABEL></h2>
-       <table summary="{t}Logon script management{/t}">
+       <h2><p class="center"><img class="center" alt="" src="images/fai_script.png" align="middle" />&nbsp;<label for="gotoLogonScript">{t}Logon scripts{/t}</label></p></h2>
+       <table summary="{t}Logon script management{/t}" style="width:100%">
                <tr>
                        <td>
-                       <select style="width:350px;" name="gotoLogonScript" multiple size=4 {$gotoLogonScriptACL} id="gotoLogonScript">
+                       <select style="width:100%;" name="gotoLogonScript" multiple size=5 {$gotoLogonScriptACL} id="gotoLogonScript">
        {html_options values=$gotoLogonScriptKeys output=$gotoLogonScripts }
        <option disabled>&nbsp;</option>
                                </select>
        
                                <br>
-                               <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptNew"            value="{t}Add{/t}">
+                               <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptNew"    value="{t}Add{/t}">
                                <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptDel"    value="{t}Delete{/t}"> 
                                <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptEdit"   value="{t}Edit{/t}"> 
                        </td>
 
 <table summary="{t}Environment managment settings{/t}" width="100%">
   <tr>
-   <td style="border-right:1px solid #B0B0B0">
-       <h2><img alt="" src="images/hotplug.png" align="middle">&nbsp;<LABEL for="gotoHotplugDevice">{t}Hotplug devices{/t}</LABEL></h2>        
-       <table summary="{t}Hotplug device settings{/t}">
+   <td style="border-right:1px solid #B0B0B0; width:50%">
+       <h2><p class="center"><img alt="" src="images/hotplug.png" align="middle" class="center" />&nbsp;<label for="gotoHotplugDevice">{t}Hotplug devices{/t}</label></p></h2> 
+       <table style="width:100%" summary="{t}Hotplug device settings{/t}">
                <tr>
                        <td>
-                               <select name="gotoHotplugDevice" {$gotoHotplugDeviceACL} size=4  style="width:350px;" id="gotoHotplugDevice">
+                               <select name="gotoHotplugDevice" {$gotoHotplugDeviceACL} size=5  style="width:100%;" id="gotoHotplugDevice">
        {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices}
        <option disabled>&nbsp;</option>
                        </td>
        </table>
    </td>
    <td>
-    <h2><img alt="" src="images/select_printer.png" align="middle">&nbsp;<LABEL for="gotoPrinter">{t}Printer{/t}</LABEL></h2>
-    <table summary="{t}Printer settings{/t}">
+    <h2><p class="center"<img alt="" src="images/select_printer.png" align="middle" class="center" />&nbsp;<label for="gotoPrinter">{t}Printer{/t}</label></p></h2>
+    <table style="width:100%" summary="{t}Printer settings{/t}">
        <tr>
            <td>
-               <select style="width:350px;" name="gotoPrinter" multiple size=4 {$gotoPrinterACL} id="gotoPrinter">
-               {html_options values=$gotoPrinterKeys output=$gotoPrinters}
+               <select style="width:100%;" name="gotoPrinterSel" multiple size=5 {$gotoPrinterACL} id="gotoPrinter">
+               {html_options values=$gotoPrinterKeys output=$gotoPrinter}
                <option disabled>&nbsp;</option>
                </select>
                <br>
    </td>
   </tr>
 </table>
-
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.useProfile.focus();
+  -->
+</script>
 {/if}
+