1 | <table border="0" width="90%" align="center"> |
---|
2 | <tr> |
---|
3 | <td valign="top"> |
---|
4 | {rows} |
---|
5 | </td> |
---|
6 | <td valign="top"> |
---|
7 | <table border="0" width=100%> |
---|
8 | <form action="{form_action}" method="POST" name="app_form"> |
---|
9 | |
---|
10 | <input type="hidden" name="try_saved" value="false"> |
---|
11 | <input type="hidden" name="uidnumber" value="{uidnumber}"> |
---|
12 | <input type="hidden" name="computer_dn" value="{computer_dn}"> |
---|
13 | <input type="hidden" name="old_computer_context" value="{old_computer_context}"> |
---|
14 | <input type="hidden" name="old_computer_cn" value="{old_computer_cn}"> |
---|
15 | <input type="hidden" name="old_computer_dn" value="{old_computer_dn}"> |
---|
16 | <input type="hidden" name="old_computer_sambaAcctFlags" value="{old_computer_sambaAcctFlags}"> |
---|
17 | <input type="hidden" name="old_computer_description" value="{old_computer_description}"> |
---|
18 | <input type="hidden" name="old_sambasid" value="{old_sambasid}"> |
---|
19 | <tr> |
---|
20 | <td colspan="2" align="right" bgcolor="{color_bg1}"> |
---|
21 | <input type="button" value="{lang_back}" onClick="document.location.href='{back_url}'"> |
---|
22 | <input type="submit" value="{lang_save}" onClick="javascript:submitValues(); try_saved.value='true';"> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | |
---|
26 | <tr> |
---|
27 | <td></td> |
---|
28 | |
---|
29 | <td colspan="0"> |
---|
30 | |
---|
31 | <table border=0 width=100%> |
---|
32 | <tr bgcolor={row_on}> |
---|
33 | <td> |
---|
34 | {lang_sectors}: |
---|
35 | </td> |
---|
36 | <td> |
---|
37 | <select name="sector_context" {disabled} {combo_sectors} |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | |
---|
41 | <tr bgcolor={row_off}> |
---|
42 | <td>{lang_sambadomain}:</td> |
---|
43 | <td> |
---|
44 | <select {disabled_samba} name="sambasid"> |
---|
45 | {sambadomainname_options} |
---|
46 | </select> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr bgcolor={row_off}> |
---|
51 | <td width="25%">{lang_computer_cn}:</td> |
---|
52 | <td> |
---|
53 | <input name="computer_cn" size="25" value="{computer_cn}" {disabled} autocomplete="off"> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | |
---|
57 | <tr bgcolor={row_on}> |
---|
58 | <td>{lang_computer_type}:</td> |
---|
59 | <td> |
---|
60 | <select name="sambaAcctFlags" onBlur=javascript:hide_element(this.value)> |
---|
61 | <option value="[W ]" {active_workstation_selected} onClick='javascript:hide_element(this.id)'>{lang_active_workstation}</option> |
---|
62 | <option value="[DW ]" {desactive_workstation_selected} onClick='javascript:hide_element(this.id)'>{lang_desactive_workstation}</option> |
---|
63 | <option id="show_tr_computer_password" value="[I ]" {trust_account_selected} onClick='javascript:hide_element(this.id)'>{lang_trust_account}</option> |
---|
64 | <option value="[S ]" {server_selected} onClick='javascript:hide_element(this.id)'>{lang_server}</option> |
---|
65 | </select> |
---|
66 | </td> |
---|
67 | </tr> |
---|
68 | |
---|
69 | <tr id="tr_computer_password" bgcolor={row_on} style="{display_tr_computer_password}"> |
---|
70 | <td width="25%">{lang_computer_password}:</td> |
---|
71 | <td> |
---|
72 | <input type="password" name="computer_password" size="25" {disabled} autocomplete="off"> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | <tr bgcolor={row_on}> |
---|
76 | <td width="25%">{lang_computer_description}:</td> |
---|
77 | <td> |
---|
78 | <input name="computer_description" size="60" value="{computer_description}" {disabled} autocomplete="off"> |
---|
79 | </td> |
---|
80 | </tr> |
---|
81 | </table> |
---|
82 | </td> |
---|
83 | </tr> |
---|
84 | |
---|
85 | <tr> |
---|
86 | <td colspan="2" align="left" bgcolor="{color_bg1}"> |
---|
87 | <input type="submit" value="{lang_save}" onClick="javascript:try_saved.value='true';"> |
---|
88 | <input type="button" value="{lang_back}" onClick="document.location.href='{back_url}'"> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | </form> |
---|
92 | </table> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | </table> |
---|
96 | {error_messages} |
---|
97 | <script language="Javascript"> |
---|
98 | function hide_element(ID) |
---|
99 | { |
---|
100 | element = document.getElementById('tr_computer_password'); |
---|
101 | if ((ID == 'show_tr_computer_password') || (ID == '[I ]')) |
---|
102 | { |
---|
103 | element.style.display = ''; |
---|
104 | } |
---|
105 | else |
---|
106 | { |
---|
107 | element.style.display = 'none'; |
---|
108 | |
---|
109 | } |
---|
110 | } |
---|
111 | </script> |
---|