Code

Proxy Options (filter and quota) are now disabled, if assigned checkbox state is...
[gosa.git] / plugins / personal / connectivity / proxy.tpl
1 <h2>{if $tabbed eq 1}<input type="checkbox" id="proxy" name="proxy" value="B" {$proxyState} {$gosaProxyAcctFlagsACL} 
2         onclick="
3                 changeState('filterF'); 
4                 changeState('filterT'); 
5                 changeState('filterB'); 
6                 changeTripleSelectState('proxy', 'filterT', 'startHour'); 
7                 changeTripleSelectState('proxy', 'filterT', 'startMinute'); 
8                 changeTripleSelectState('proxy', 'filterT', 'stopHour'); 
9                 changeTripleSelectState('proxy', 'filterT', 'stopMinute'); 
10                 changeTripleSelectState('proxy', 'filterB', 'quota_size'); 
11                 changeTripleSelectState('proxy', 'filterB', 'quota_unit'); 
12                 changeTripleSelectState('proxy', 'filterB', 'gosaProxyQuotaPeriod');"
13         >
14         {/if}{t}Proxy account{/t}</h2>
16 <table style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
17  <tr>
18    <td>
19     <table width="100%" cellpadding=0>
20     <tr><td>
21     <input type="checkbox" name="filterF" id="filterF" value="F" {$filterF} {$gosaProxyAcctFlagsACL} {$pstate}>
22     {t}Filter unwanted content (i.e. pornographic or violence related){/t}
23     </td></tr>
24      <tr>
25       <td width="50%">
26     <input type="checkbox" name="filterT" id="filterT" value="T" {$filterT} {$gosaProxyAcctFlagsACL} {$pstate}
27         onclick="
28                 changeSubselectState('filterT', 'startHour'); 
29                 changeSubselectState('filterT', 'startMinute'); 
30                 changeSubselectState('filterT', 'stopHour'); 
31                 changeSubselectState('filterT', 'stopMinute'); 
32         ">
33     {t}Limit proxy access to working time{/t}
34     <br>
35     <table style="margin-left:20px;">
36      <tr>
37       <td>
38         <select size="1" id="startHour" name="startHour" {$gosaProxyWorkingStartACL} {$Tstate}>
39          {html_options values=$hours output=$hours selected=$starthour}
40         </select>
41         &nbsp;:&nbsp;
42         <select size="1" id="startMinute" name="startMinute" {$gosaProxyWorkingStartACL} {$Tstate}>
43          {html_options values=$minutes output=$minutes selected=$startminute}
44         </select>
45         &nbsp;-&nbsp;
46         <select size="1" id="stopHour" name="stopHour" {$gosaProxyWorkingStopACL} {$Tstate}>
47          {html_options values=$hours output=$hours selected=$stophour}
48         </select>
49         &nbsp;:&nbsp;
50         <select size="1" id="stopMinute" name="stopMinute" {$gosaProxyWorkingStopACL} {$Tstate}>
51          {html_options values=$minutes output=$minutes selected=$stopminute}
52         </select>
53       </td>
54      </tr>
55     </table>
56       </td>
57    <td rowspan=2 style="border-left:1px solid #A0A0A0">
58      &nbsp;
59    </td>
60       <td>
61     <input type="checkbox" id="filterB" name="filterB" value="B" {$filterB} {$pstate} {$gosaProxyAcctFlagsACL}
62         onclick="
63                 changeSubselectState('filterB', 'quota_size'); 
64                 changeSubselectState('filterB', 'quota_unit'); 
65                 changeSubselectState('filterB', 'gosaProxyQuotaPeriod');
66         ">
67     {t}Restrict proxy usage by quota{/t}
68     <br>
69     <table style="margin-left:20px;">
70      <tr>
71       <td>
72        <input name="quota_size" id="quota_size" size=7 maxlength=10 {$Bstate} {$gosaProxyQuotaACL} value="{$quota_size}">
73        &nbsp;
74        <select size="1" name="quota_unit" id="quota_unit" {$Bstate} {$gosaProxyQuotaACL}>
75         {html_options options=$quota_unit selected=$quota_u}
76        </select>
77        {t}per{/t}
78        <select size="1" name="gosaProxyQuotaPeriod" id="gosaProxyQuotaPeriod" {$Bstate} {$gosaProxyQuotaACL}>
79         {html_options options=$quota_time selected=$gosaProxyQuotaPeriod}
80        </select>
81       </td>
82      </tr>
83     </table>
84    </td>
85    </tr>
86    </table>
87   </td>
88  </tr>
89 </table>