1 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding="0" border="0">
3 <!-- Headline container -->
4 <tr>
5 <td colspan="2" style="width:50%; vertical-align:top;">
6 <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"/> {t}Generic{/t}</h2>
7 </td>
8 </tr>
9 <tr>
10 <td style="vertical-align:top;">
11 <table summary="">
12 <tr>
13 <td><label for="sambaHomePath">{t}Home directory{/t}</label></td>
14 <td>
15 {render acl=$sambaHomePathACL checkbox=$multiple_support checked=$use_sambaHomePath}
16 <input id="sambaHomePath" name="sambaHomePath" size=30 maxlength=60 value="{$sambaHomePath}">
17 {/render}
18 {render acl=$sambaHomeDriveACL checkbox=$multiple_support checked=$use_sambaHomeDrive}
19 <select size="1" name="sambaHomeDrive">
20 {html_options values=$drives output=$drives selected=$sambaHomeDrive}
21 </select>
22 {/render}
23 </td>
24 </tr>
25 <tr>
26 <td><label for="sambaDomainName">{t}Domain{/t}</label></td>
27 <td>
28 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
29 <select id="sambaDomainName" size="1" name="sambaDomainName"
30 onChange="document.mainform.submit();">
31 {html_options values=$domains output=$domains selected=$sambaDomainName}
32 </select>
33 {/render}
34 <input type='submit' name='display_information' value='{t}Show information{/t}'>
35 </td>
36 </tr>
37 </table>
38 </td>
39 <td style="border-left:1px solid #A0A0A0">
40
41 </td>
42 <td style="vertical-align:top;">
43 <table summary="">
44 <tr>
45 <td><label for="">{t}Script path{/t}</label></td>
46 <td>
47 {render acl=$sambaLogonScriptACL checkbox=$multiple_support checked=$use_sambaLogonScript}
48 <input id="sambaLogonScript" name="sambaLogonScript" size=35 maxlength=60 value="{$sambaLogonScript}">
49 {/render}
50 </td>
51 </tr>
52 <tr>
53 <td><label for="">{t}Profile path{/t}</label></td>
54 <td>
55 {render acl=$sambaProfilePathACL checkbox=$multiple_support checked=$use_sambaProfilePath}
56 <input class="center" id="sambaProfilePath" name="sambaProfilePath" size=35 maxlength=60 value="{$sambaProfilePath}">
57 {/render}
58 </td>
59 </tr>
60 </table>
61 </td>
62 </tr>
63 </table>
65 <p class="seperator"> </p>
67 <h2><img class="center" alt="" align="middle" src="plugins/samba/images/terminal_server.png" /> {t}Terminal Server{/t}</h2>
69 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
70 <tr>
71 <td style="vertical-align:top;width:50%">
73 {if $multiple_support}
74 <input class="center" type=checkbox name="use_tslogin" id="use_tslogin" value="1"
75 {if $use_tslogin} checked {/if}
76 onClick="changeState('tslogin')">
77 <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
78 {if !$use_tslogin} disabled {/if}>
79 {else}
80 {render acl=$AllowLoginOnTerminalServerACL}
81 <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
82 onclick="
83 changeState('CtxWFHomeDir');
84 changeState('CtxWFHomeDirDrive');
85 changeState('CtxWFProfilePath');
86 changeState('inherit');
87 changeTripleSelectState_2nd_neg('tslogin','inherit','CtxInitialProgram');
88 changeTripleSelectState_2nd_neg('tslogin','inherit','CtxWorkDirectory');
89 changeState('CtxMaxConnectionTimeF');
90 changeState('CtxMaxDisconnectionTimeF');
91 changeState('CtxMaxIdleTimeF');
92 changeTripleSelectState('tslogin','CtxMaxConnectionTimeF','CtxMaxConnectionTime');
93 changeTripleSelectState('tslogin','CtxMaxDisconnectionTimeF','CtxMaxDisconnectionTime');
94 changeTripleSelectState('tslogin','CtxMaxIdleTimeF','CtxMaxIdleTime');
95 changeState('connectclientdrives');
96 changeState('connectclientprinters');
97 changeState('defaultprinter');
98 changeState('shadow');
99 changeState('brokenconn');
100 changeState('reconn');
101 ">
102 {/render}
103 {/if}
104 <i>{t}Allow login on terminal server{/t}</i>
105 <table summary="">
106 <tr>
107 <td><label for="CtxWFHomeDir">{t}Home directory{/t}</label></td>
108 <td>
109 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFHomeDir}
110 <input id="CtxWFHomeDir" name="CtxWFHomeDir" size=30 maxlength=60 value="{$CtxWFHomeDir}" {$tsloginstate}>
111 {/render}
112 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFHomeDirDrive}
113 <select size="1" id="CtxWFHomeDirDrive" name="CtxWFHomeDirDrive" {$tsloginstate}>
114 {html_options values=$drives output=$drives selected=$CtxWFHomeDirDrive}
115 </select>
116 {/render}
117 </td>
118 </tr>
119 <tr>
120 <td><label for="CtxWFProfilePath">{t}Profile path{/t}</label></td>
121 <td>
122 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFProfilePath}
123 <input id="CtxWFProfilePath" name="CtxWFProfilePath" size=35 maxlength=60 value="{$CtxWFProfilePath}" {$tsloginstate}>
124 {/render}
125 </td>
126 </tr>
127 </table>
128 </td>
129 <td style="border-left:1px solid #A0A0A0">
130
131 </td>
132 <td style="vertical-align:top;">
133 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_inherit}
134 <input class="center" type=checkbox id="inherit" name="inherit" {if $inheritstate} checked {/if}
135 {$tsloginstate}
136 onClick="changeState('CtxInitialProgram');
137 changeState('CtxWorkDirectory');"
139 >
140 {/render}
141 <i>{t}Inherit client config{/t}</i>
142 <table summary="">
143 <tr>
144 <td><label for="CtxInitialProgram">{t}Initial program{/t}</label></td>
145 <td>
146 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxInitialProgram}
147 <input id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}" {$inheritstate} {$tsloginstate}>
148 {/render}
149 </td>
150 </tr>
151 <tr>
152 <td><label for="CtxWorkDirectory">{t}Working directory{/t}</label></td>
153 <td>
154 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWorkDirectory}
155 <input id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60 value='{$CtxWorkDirectory}' {$inheritstate} {$tsloginstate}>
156 {/render}
157 </td>
158 </tr>
159 </table>
160 </td>
161 </tr>
162 </table>
164 <p class="seperator"> </p>
166 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
167 <tr>
168 <td style="vertical-align:top;">
169 <i>{t}Timeout settings (in minutes){/t}</i>
170 <table summary="">
171 <tr>
172 <td>
173 {if $multiple_support}
174 <input type="checkbox" name="use_CtxMaxConnectionTimeF" {if $use_CtxMaxConnectionTimeF} checked {/if}
175 onClick="changeState('CtxMaxConnectionTimeF');" class="center"
176 >
177 {/if}
178 {render acl=$AllowLoginOnTerminalServerACL}
179 <input id="CtxMaxConnectionTimeF" type="checkbox" class="center" name="CtxMaxConnectionTimeF"
180 {if !$use_CtxMaxConnectionTimeF && $multiple_support} disabled {/if}
181 value="1" {$CtxMaxConnectionTimeF}
182 onclick="changeState('CtxMaxConnectionTime')" {$tsloginstate}>
183 {/render}
185 <label for="CtxMaxConnectionTimeF">{t}Connection{/t}</label>
186 </td>
187 <td>
188 {render acl=$AllowLoginOnTerminalServerACL}
189 <input name="CtxMaxConnectionTime" id="CtxMaxConnectionTime" size=5 maxlength=5 value="{$CtxMaxConnectionTime}" {$tsloginstate}
190 { if !$CtxMaxConnectionTimeF } disabled {/if}>
191 {/render}
192 </td>
193 </tr>
194 <tr>
195 <td>
196 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxMaxDisconnectionTimeF}
197 <input id="CtxMaxDisconnectionTimeF" type=checkbox name="CtxMaxDisconnectionTimeF" value="1" {$CtxMaxDisconnectionTimeF} onclick="changeState('CtxMaxDisconnectionTime')" {$tsloginstate} class="center">
198 {/render}
199 <label for="CtxMaxDisconnectionTimeF">{t}Disconnection{/t}</label>
200 </td>
201 <td>
202 {render acl=$AllowLoginOnTerminalServerACL}
203 <input name="CtxMaxDisconnectionTime" id="CtxMaxDisconnectionTime" size=5 maxlength=5 value="{$CtxMaxDisconnectionTime}" {$tsloginstate}
204 { if !$CtxMaxDisconnectionTimeF } disabled {/if}>
205 {/render}
206 </td>
207 </tr>
208 <tr>
209 <td>
210 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxMaxIdleTimeF}
211 <input id="CtxMaxIdleTimeF" type=checkbox name="CtxMaxIdleTimeF" value="1" {$CtxMaxIdleTimeF} onclick="changeState('CtxMaxIdleTime')" {$tsloginstate} class="center">
212 {/render}
213 <label for="CtxMaxIdleTimeF">{t}IDLE{/t}</label>
214 </td>
215 <td>
216 {render acl=$AllowLoginOnTerminalServerACL}
217 <input name="CtxMaxIdleTime" id="CtxMaxIdleTime" size=5 maxlength=5 value="{$CtxMaxIdleTime}" {$tsloginstate}
218 { if !$CtxMaxIdleTimeF } disabled {/if}>
219 {/render}
220 </td>
221 </tr>
222 </table>
223 </td>
224 <td style="border-left:1px solid #A0A0A0">
225
226 </td>
227 <td style="vertical-align:top;">
229 <i>{t}Client devices{/t}</i>
230 <table summary="">
231 <tr>
232 <td>
233 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_connectclientdrives}
234 <input id="connectclientdrives" type=checkbox name="connectclientdrives" value="1" {$connectclientdrives} {$tsloginstate} class="center">
235 {/render}
236 <label for="connectclientdrives">{t}Connect client drives at logon{/t}</label>
237 </td>
238 </tr>
239 <tr>
240 <td>
241 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_connectclientprinters}
242 <input id="connectclientprinters" type=checkbox name="connectclientprinters" value="1" {$connectclientprinters}{$tsloginstate} class="center">
243 {/render}
244 <label for="connectclientprinters">{t}Connect client printers at logon{/t}</label>
245 </td>
246 </tr>
247 <tr>
248 <td>
249 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_defaultprinter}
250 <input id="defaultprinter" type=checkbox name="defaultprinter" value="1" {$defaultprinter} {$tsloginstate} class="center">
251 {/render}
252 <label for="defaultprinter">{t}Default to main client printer{/t}</label>
253 </td>
254 </tr>
255 </table>
257 </td>
258 <td style="border-left:1px solid #A0A0A0">
259
260 </td>
261 <td style="vertical-align:top;width:50%">
262 <i>{t}Miscellaneous{/t}</i>
263 <table summary="">
264 <tr>
265 <td>
266 <label for="shadow">{t}Shadowing{/t}</label>
267 </td>
268 <td>
269 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_shadow}
270 <select id="shadow" size="1" name="shadow" {$tsloginstate}>
271 {html_options options=$shadow selected=$shadowmode}
272 </select>
273 {/render}
274 </td>
275 </tr>
276 <tr>
277 <td><label for="brokenconn">{t}On broken or timed out{/t}</label></td>
278 <td>
279 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_brokenconn}
280 <select id="brokenconn" size="1" name="brokenconn" {$tsloginstate}>
281 {html_options options=$brokenconn selected=$brokenconnmode}
282 </select>
283 {/render}
284 </td>
285 </tr>
286 <tr>
287 <td><label for="reconn">{t}Reconnect if disconnected{/t}</label></td>
288 <td>
289 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_reconn}
290 <select id="reconn" size="1" name="reconn" {$tsloginstate}>
291 {html_options options=$reconn selected=$reconnmode}
292 </select>
293 {/render}
294 </td>
295 </tr>
296 </table>
298 </td>
299 </tr>
300 </table>
302 <p class="seperator"> </p>
304 <h2><img class="center" alt="" align="middle" src="images/lists/key.png" /> {t}Access options{/t}</h2>
306 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4 border=0>
307 <tr>
308 <td colspan=2 style="width:50%; vertical-align:top;">
310 <!-- Samba policies -->
311 <table>
312 <tr>
313 <td colspan=2>
314 {render acl=$sambaAcctFlagsXACL checkbox=$multiple_support checked=$use_no_expiry}
315 <input id="no_expiry" type=checkbox name="no_expiry" value="1" {$flagsX} class="center">
316 {/render}
317 <label for="no_expiry">{t}The password never expires{/t}</label>
318 </td>
319 </tr>
320 <tr>
321 <td colspan=2>
322 {render acl=$sambaAcctFlagsNACL checkbox=$multiple_support checked=$use_no_password_required}
323 <input id="no_password_required" type=checkbox name="no_password_required" value="1" {$flagsN} class="center">
324 {/render}
325 <label for="no_password_required">{t}Login from windows client requires no password{/t}</label>
326 </td>
327 </tr>
328 <tr>
329 <td colspan=2 style="vertical-align:top;">
330 {render acl=$sambaPwdCanChangeACL checkbox=$multiple_support checked=$use_allow_pwchange}
331 <input id="allow_pwchange" type=checkbox name="allow_pwchange" value="1" {$flagsP} class="center">
332 {/render}
333 <label for="allow_pwchange">{t}Allow user to change password from client{/t}</label>
334 </td>
335 </tr>
336 <tr>
337 <td colspan=2>
338 {render acl=$sambaAcctFlagsLACL checkbox=$multiple_support checked=$use_temporary_disable}
339 <input id="temporary_disable" type=checkbox name="temporary_disable" value="1" {$flagsD} class="center">
340 {/render}
341 <label for="temporary_disable">{t}Lock samba account{/t}</label>
342 </td>
343 </tr>
344 <tr>
345 <td>
346 {render acl=$sambaPwdMustChangeACL checkbox=$multiple_support checked=$use_password_expires}
347 <input id="password_expires" type=checkbox name="password_expires" value="1" {$flagsC} class="center"
348 onClick="document.mainform.submit();">
349 {/render}
350 <label for="password_expires">{t}Password expires on{/t}</label>
351 </td>
352 <td style='width:55%'>
353 {render acl=$sambaPwdMustChangeACL}
354 <input type="text" id="sambaPwdMustChange" name="sambaPwdMustChange" class="date" style='width:100px' value="{$sambaPwdMustChange}">
355 {if $sambaPwdMustChangeACL|regex_replace:"/[cdmr]/":"" == "w"}
356 <script type="text/javascript">
357 {literal}
358 var datepicker = new DatePicker({ relative : 'sambaPwdMustChange', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
359 {/literal}
360 </script>
361 {/if}
362 {/render}
363 </td>
364 </tr>
365 {if $additional_info_PwdMustChange}
366 <tr>
367 <td colspan=2 style='padding-left: 10px;'>
368 <i>({$additional_info_PwdMustChange})</i>
369 </td>
370 </tr>
371 {/if}
372 <tr>
373 <td>
374 {render acl=$sambaKickoffTimeACL checkbox=$multiple_support checked=$use_kickoff_time_set}
375 <input id="kickoff_time_set" type=checkbox name="kickoff_time_set" value="1" {$flagsK} class="center">
376 {/render}
377 <label for="kickoff_time_set">{t}Account expires after{/t}</label>
378 </td>
379 <td>
380 {render acl=$sambaKickoffTimeACL}
381 <input type="text" id="sambaKickoffTime" name="sambaKickoffTime" class="date" style='width:100px' value="{$sambaKickoffTime}">
382 {if $sambaKickoffTimeACL|regex_replace:"/[cdmr]/":"" == "w"}
383 <script type="text/javascript">
384 {literal}
385 var datepicker2 = new DatePicker({ relative : 'sambaKickoffTime', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
386 {/literal}
387 </script>
388 {/if}
389 {/render}
390 </td>
391 </tr>
392 <tr>
393 <td colspan=2> </td>
394 </tr>
395 <tr>
396 <td colspan=2>
397 {render acl=$sambaLogonHoursACL mode=read_active checkbox=$multiple_support checked=$use_SetSambaLogonHours}
398 {t}Samba logon times{/t} <input type='submit' name='SetSambaLogonHours' value='{t}Edit settings...{/t}'>
399 {/render}
400 </td>
401 </tr>
402 </table>
403 <!-- /Samba policies -->
405 </td>
406 <td style="border-left:1px solid #A0A0A0">
407
408 </td>
409 <td style="vertical-align:top;">
410 <label for="workstation_list">{t}Allow connection from these workstations only{/t}</label>
411 <br>
413 {if $multiple_support}
414 <input type="checkbox" name="use_workstation_list" {if $use_workstation_list} checked {/if} class="center"
415 onClick="changeState('workstation_list');">
416 <select {if $multiple_support && !$use_workstation_list} disabled {/if}
417 id="workstation_list" style="width:100%;" name="workstation_list[]" size=10 multiple>
419 {foreach from=$multiple_workstations item=item key=key}
420 {if $item.UsedByAllUsers}
421 <option value="{$key}">{$item.Name} ({t}Used by all users{/t})</option>
422 {else}
423 <option style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'
424 value="{$key}">{$item.Name} ({t}Used by some users{/t})</option>
425 {/if}
426 {/foreach}
427 </select>
428 <br>
429 <input type="submit" value="{msgPool type=addButton}" name="add_ws">
430 <input type="submit" value="{msgPool type=delButton}" name="delete_ws">
431 {else}
432 {render acl=$sambaUserWorkstationsACL}
433 <select id="workstation_list" style="width:100%;" name="workstation_list[]" size=10 multiple>
434 {html_options values=$workstations output=$workstations}
435 </select>
436 {/render}
437 <br>
438 {render acl=$sambaUserWorkstationsACL}
439 <input type="submit" value="{msgPool type=addButton}" name="add_ws">
440 {/render}
441 {render acl=$sambaUserWorkstationsACL}
442 <input type="submit" value="{msgPool type=delButton}" name="delete_ws">
443 {/render}
444 {/if}
445 </td>
446 </tr>
447 </table>
449 <input type="hidden" name="sambaTab" value="sambaTab">