source: companies/serpro/expressoAdminSerpro/templates/default/computers_form.tpl @ 903

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

Importacao inicial do Expresso do Serpro

Line 
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_off}>
33                                                                        <td>{lang_search_organization}:</td>
34                                                                        <td><input type="text" id="organization_search" autocomplete="off" size=20 onKeyUp="javascript:search_organization(this.value);"></td>
35                                                                </tr>
36                                                       
37                                                                <tr bgcolor={row_on}>
38                                                                        <td>
39                                                                                {lang_organizations}:
40                                                                        </td>
41                                                                        <td>
42                                                                                <select id="ea_combo_org_info" name="sector_context" {disabled} {combo_sectors}
43                                                                        </td>
44                                                                </tr>                                                   
45
46                                                                <tr bgcolor={row_off}>
47                                                                        <td>{lang_sambadomain}:</td>
48                                                                        <td>
49                                                                                <select {disabled_samba} name="sambasid">
50                                                                                        {sambadomainname_options}
51                                                                                </select>
52                                                                        </td>
53                                                                </tr>
54                                                               
55                                                                <tr bgcolor={row_off}>
56                                                                        <td width="25%">{lang_computer_cn}:</td>
57                                                                        <td>
58                                                                                <input name="computer_cn" size="25" value="{computer_cn}" {disabled} autocomplete="off">
59                                                                        </td>
60                                                                </tr>
61                                                               
62                                                                <tr bgcolor={row_on}>
63                                                                        <td>{lang_computer_type}:</td>
64                                                                        <td>
65                                                                                <select name="sambaAcctFlags" onBlur=javascript:hide_element(this.value)>
66                                                                                        <option value="[W          ]" {active_workstation_selected} onClick='javascript:hide_element(this.id)'>{lang_active_workstation}</option>
67                                                                                        <option value="[DW         ]" {desactive_workstation_selected} onClick='javascript:hide_element(this.id)'>{lang_desactive_workstation}</option>
68                                                                                        <option id="show_tr_computer_password" value="[I          ]" {trust_account_selected} onClick='javascript:hide_element(this.id)'>{lang_trust_account}</option>
69                                                                                        <option value="[S          ]" {server_selected} onClick='javascript:hide_element(this.id)'>{lang_server}</option>
70                                                                                </select>
71                                                                        </td>
72                                                                </tr>
73
74                                                                <tr id="tr_computer_password" bgcolor={row_on} style="{display_tr_computer_password}">
75                                                                        <td width="25%">{lang_computer_password}:</td>
76                                                                        <td>
77                                                                                <input type="password" name="computer_password" size="25" {disabled} autocomplete="off">
78                                                                        </td>
79                                                                </tr>
80                                                                <tr bgcolor={row_on}>
81                                                                        <td width="25%">{lang_computer_description}:</td>
82                                                                        <td>
83                                                                                <input name="computer_description" size="60" value="{computer_description}" {disabled} autocomplete="off">
84                                                                        </td>
85                                                                </tr>
86                                                        </table>
87                                                </td>
88                                        </tr>
89
90                                        <tr>
91                                                <td colspan="2" align="left" bgcolor="{color_bg1}">
92                                                        <input type="submit" value="{lang_save}" onClick="javascript:try_saved.value='true';">
93                                                        <input type="button" value="{lang_back}" onClick="document.location.href='{back_url}'">
94                                                </td>
95                                        </tr>
96                                </form>
97                        </table>
98                </td>
99        </tr>
100</table>
101{error_messages}
102<script language="Javascript">
103        function hide_element(ID)
104        {
105                element = document.getElementById('tr_computer_password');
106                if ((ID == 'show_tr_computer_password') || (ID == '[I          ]'))
107                {
108                        element.style.display = '';                     
109                }
110                else
111                {
112                        element.style.display = 'none';
113
114                }
115        }
116</script>
Note: See TracBrowser for help on using the repository browser.