source: trunk/expressoAdmin1_2/templates/default/computers_form.tpl @ 6159

Revision 6159, 4.2 KB checked in by rodsouza, 12 years ago (diff)

Ticket #2595 - Corrigindo problema de hierarquia

  • Property svn:eol-style set to native
  • Property svn:executable set to *
RevLine 
[414]1<!-- BEGIN body -->
[2]2<table border="0" width="90%" align="center">
3        <tr>
4                <td valign="top">
5                        {rows}
6                </td>
7                <td valign="top">
[6159]8                        <form action="{form_action}" method="POST" name="app_form">
9                                <input type="hidden" name="try_saved" value="false">
10                                <input type="hidden" name="uidnumber" value="{uidnumber}">
11                                <input type="hidden" name="computer_dn" value="{computer_dn}">                                 
12                                <input type="hidden" name="old_computer_context" value="{old_computer_context}">
13                                <input type="hidden" name="old_computer_cn" value="{old_computer_cn}">
14                                <input type="hidden" name="old_computer_dn" value="{old_computer_dn}">
15                                <input type="hidden" name="old_computer_sambaAcctFlags" value="{old_computer_sambaAcctFlags}">
16                                <input type="hidden" name="old_computer_description" value="{old_computer_description}">
17                                <input type="hidden" name="old_sambasid" value="{old_sambasid}">
18                                <table border="0" width=100%>                   
[2]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%>
[73]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                                                       
[2]37                                                                <tr bgcolor={row_on}>
38                                                                        <td>
[73]39                                                                                {lang_organizations}:
[2]40                                                                        </td>
41                                                                        <td>
[73]42                                                                                <select id="ea_combo_org_info" name="sector_context" {disabled} {combo_sectors}
[2]43                                                                        </td>
44                                                                </tr>                                                   
[27]45
46                                                                <tr bgcolor={row_off}>
[414]47                                                                        <td>{lang_domain}:</td>
[27]48                                                                        <td>
49                                                                                <select {disabled_samba} name="sambasid">
50                                                                                        {sambadomainname_options}
51                                                                                </select>
52                                                                        </td>
53                                                                </tr>
[2]54                                                               
[309]55                                                                <tr bgcolor={row_off}>
[414]56                                                                        <td width="25%">{lang_computer_uid}:</td>
[2]57                                                                        <td>
58                                                                                <input name="computer_cn" size="25" value="{computer_cn}" {disabled} autocomplete="off">
59                                                                        </td>
60                                                                </tr>
61                                                               
[309]62                                                                <tr bgcolor={row_on}>
[2]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>
[27]73
[2]74                                                                <tr id="tr_computer_password" bgcolor={row_on} style="{display_tr_computer_password}">
[414]75                                                                        <td width="25%">{lang_password}:</td>
[2]76                                                                        <td>
77                                                                                <input type="password" name="computer_password" size="25" {disabled} autocomplete="off">
78                                                                        </td>
79                                                                </tr>
[27]80                                                                <tr bgcolor={row_on}>
[414]81                                                                        <td width="25%">{lang_description}:</td>
[2]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>
[6159]96                                </table>
97                        </form>
[2]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        }
[414]116</script>
[6159]117<!-- END body -->
Note: See TracBrowser for help on using the repository browser.