source: companies/celepar/expressoAdmin1_2/templates/default/computers_form.tpl @ 763

Revision 763, 4.2 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

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