Code

Fixed date of birth && userPicture
[gosa.git] / plugins / personal / connectivity / proxy.tpl
index d2403c15de2325f236ad4293105868f0fdf4a624..c4851114a1d9a69148195f9dc53a05bbd99f828a 100644 (file)
@@ -1,35 +1,69 @@
-<h2>{if $tabbed eq 1}<input type="checkbox" name="proxy" value="B" {$proxyState} {$gosaProxyAcctFlagsACL} onclick="changeState('filterF'); changeState('filterT'); changeState('startHour'); changeState('startMinute'); changeState('stopHour'); changeState('stopMinute'); changeState('filterB'); changeState('quota_size'); changeState('quota_unit'); changeState('gosaProxyQuotaPeriod');">{/if}{t}Proxy account{/t}</h2>
-<table style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
+<h2>
+ <input type="checkbox" id="proxy" name="proxy" value="B" {$proxyState} {$proxyAccountACL} 
+   onClick="
+    {$changeA}
+
+{if $gosaProxyFlagF_W}
+       changeState('filterF');
+{/if}
+{if $gosaProxyFlagB_W} 
+    changeTripleSelectState('proxy', 'filterB', 'quota_size'); 
+{/if}
+{if $gosaProxyQuotaPeriod_W} 
+    changeTripleSelectState('proxy', 'filterB', 'quota_unit'); 
+    changeTripleSelectState('proxy', 'filterB', 'gosaProxyQuotaPeriod');
+{/if}
+   ">
+ {t}Proxy account{/t}</h2>
+
+<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
  <tr>
    <td>
-    <table width="100%" cellpadding=0>
-    <tr><td>
-    <input type="checkbox" name="filterF" id="filterF" value="F" {$filterF} {$gosaProxyAcctFlagsACL} {$pstate}>
+    <table summary="" border=0 width="100%" cellpadding=0>
+    <tr><td colspan=2>
+
+{render acl=$gosaProxyFlagFACL}
+    <input type="checkbox" name="filterF" id="filterF" value="F" {$filterF} {$pstate}>
+{/render}
     {t}Filter unwanted content (i.e. pornographic or violence related){/t}
     </td></tr>
      <tr>
       <td width="50%">
-    <input type="checkbox" name="filterT" id="filterT" value="T" {$filterT} {$gosaProxyAcctFlagsACL} {$pstate}>
-    {t}Limit proxy access to working time{/t}
+
+{render acl=$gosaProxyFlagTACL}
+    <input type="checkbox" name="filterT" id="filterT" value="T" {$filterT} {$pstate}  onClick="javascript:
+ {$ProxyWorkingStateChange}">
+{/render}
+
+    <LABEL for="startHour">{t}Limit proxy access to working time{/t}</LABEL>
     <br>
-    <table style="margin-left:20px;">
+    <table summary="" style="margin-left:20px;">
      <tr>
       <td>
-        <select size="1" id="startHour" name="startHour" {$gosaProxyWorkingStartACL} {$pstate}>
+
+{render acl=$gosaProxyWorkingTimeACL}
+        <select size="1" id="startHour" name="startHour" {if $Tstate!=""} disabled {/if} {$pstate}>
          {html_options values=$hours output=$hours selected=$starthour}
         </select>
+{/render}
         &nbsp;:&nbsp;
-        <select size="1" id="startMinute" name="startMinute" {$gosaProxyWorkingStartACL} {$pstate}>
+{render acl=$gosaProxyWorkingTimeACL}
+        <select size="1" id="startMinute" name="startMinute" {if  $Tstate!=""} disabled {/if} {$pstate}>
          {html_options values=$minutes output=$minutes selected=$startminute}
         </select>
+{/render}
         &nbsp;-&nbsp;
-        <select size="1" id="stopHour" name="stopHour" {$gosaProxyWorkingStopACL} {$pstate}>
-         {html_options values=$hours output=$hours selected=$stophour}
+{render acl=$gosaProxyWorkingTimeACL}
+        <select size="1" id="stopHour" name="stopHour" {if $Tstate!=""}disabled {/if} {$pstate}>
+   {html_options values=$hours output=$hours selected=$stophour}
         </select>
+{/render}
         &nbsp;:&nbsp;
-        <select size="1" id="stopMinute" name="stopMinute" {$gosaProxyWorkingStopACL} {$pstate}>
+{render acl=$gosaProxyWorkingTimeACL}
+        <select size="1" id="stopMinute" name="stopMinute" {if $Tstate!=""} disabled {/if} {$pstate} >
          {html_options values=$minutes output=$minutes selected=$stopminute}
         </select>
+{/render}
       </td>
      </tr>
     </table>
      &nbsp;
    </td>
       <td>
-    <input type="checkbox" id="filterB" name="filterB" value="B" {$filterB} {$pstate} {$gosaProxyAcctFlagsACL}>
-    {t}Restrict proxy usage by quota{/t}
+{render acl=$gosaProxyFlagBACL}
+    <input type="checkbox" id="filterB" name="filterB" value="B" {$filterB} {if $pstate=="disabled"} disabled {/if} onClick="{$changeB}">
+{/render}
+    <LABEL for="quota_size">{t}Restrict proxy usage by quota{/t}</LABEL>
     <br>
-    <table style="margin-left:20px;">
+    <table summary="" style="margin-left:20px;">
      <tr>
       <td>
-       <input name="quota_size" id="quota_size" size=7 maxlength=10 {$pstate} {$gosaProxyQuotaACL} value="{$quota_size}">
+{render acl=$gosaProxyFlagBACL}
+       <input name="quota_size" id="quota_size" size=7 maxlength=10 value="{$quota_size}" {if $Bstate=="disabled"} disabled {/if} {$pstate}>
+{/render}
        &nbsp;
-       <select size="1" name="quota_unit" id="quota_unit" {$pstate} {$gosaProxyQuotaACL}>
+{render acl=$gosaProxyQuotaPeriodACL}
+       <select size="1" name="quota_unit" id="quota_unit" {if $Bstate=="disabled" } disabled {/if} {$pstate}>
        {html_options options=$quota_unit selected=$quota_u}
        </select>
-       {t}per{/t} <!-- {$pstate} -->
-       <select size="1" name="gosaProxyQuotaPeriod" id="gosaProxyQuotaPeriod" {$pstate} {$gosaProxyQuotaACL}>
+{/render}
+    
+       <LABEL for="gosaProxyQuotaPeriod">{t}per{/t}</LABEL>
+{render acl=$gosaProxyQuotaPeriodACL}
+       <select size="1" name="gosaProxyQuotaPeriod" id="gosaProxyQuotaPeriod" {if $Bstate=="disabled"} disabled {/if} {$pstate}>
         {html_options options=$quota_time selected=$gosaProxyQuotaPeriod}
        </select>
+{/render}
       </td>
      </tr>
     </table>