source: trunk/phpgwapi/templates/edge-it/uiaccountsel.tpl @ 2

Revision 2, 5.0 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1
2<script LANGUAGE="JavaScript">
3        window.focus();
4
5        function addOption(id,label,value)
6        {
7                opener.addOption(id,label,value);
8
9                selectBox = document.getElementById('uiaccountsel_popup_selection');
10                if (selectBox) {
11                        for (i=0; i < selectBox.length; i++) {
12                                if (selectBox.options[i].value == value) {
13                                        selectBox.options[i].selected = true;
14                                        break;
15                                }
16                        }
17                        if (i >= selectBox.length) {
18                                selectBox.options[selectBox.length] = new Option(label,value,false,true);
19                        }
20                }
21        }
22
23        function removeSelectedOptions(id)
24        {
25                openerSelectBox = opener.document.getElementById(id);
26                if (openerSelectBox == null) window.close();
27                selectBox = document.getElementById('uiaccountsel_popup_selection');
28                for (i=0; i < selectBox.length; i++) {
29                        if (selectBox.options[i].selected) {
30                                for (j=0; j < openerSelectBox.length; j++) {
31                                        if (openerSelectBox[j].value == selectBox.options[i].value) {
32                                                openerSelectBox.removeChild(openerSelectBox[j]);
33                                        }
34                                }
35                                selectBox.options[i--] = null;
36                        }
37                }
38        }
39
40        function copyOptions(id)
41        {
42                openerSelectBox = opener.document.getElementById(id);
43                selectBox = document.getElementById('uiaccountsel_popup_selection');
44                for (i=0; i < openerSelectBox.length; i++) {
45                        with (openerSelectBox.options[i]) {
46                                if (selected) {
47                                        selectBox.options[selectBox.length] =  new Option(text,value);
48                                }
49                        }
50                }
51        }
52</script>
53
54<style type="text/css">
55        .letter_box,.letter_box_active {
56                background-color: #E8F0F0;
57                width: 15px;
58                border: 1px solid white;
59                text-align: center;
60                cursor: pointer;
61                cusror: hand;
62        }
63        .letter_box_active {
64                font-weight: bold;
65                background-color: #D3DCE3;
66        }
67        .letter_box_active,.letter_box:hover {
68                border: 1px solid black;
69                background-color: #D3DCE3;
70        }
71</style>
72
73<div id="divMain">
74<table border="0" width="100%">
75        <tr>
76                <td width="20%" rowspan="3">{accountsel_icon}</td>
77                <td align="right" colspan="5">
78                        <form method="POST" action="{search_action}">
79                                 <select name="query_type" >
80                                                <option value="firstname">{lang_firstname}</option>
81                                                <option value="lastname">{lang_lastname}</option>
82                                        </select>
83                                <!-- {query_type} -->
84                                <input type="text" name="query" value="{prev_query}">
85                                <input type="submit" name="search" value="{lang_search}">
86                        </form>
87                </td>
88        </tr>
89        <tr>
90                <td colspan="5">
91                        <table width="100%"><tr>
92<!-- BEGIN letter_search -->
93                                <td class="{class}" onclick="location.href='{link}';">{letter}</td>
94<!-- END letter_search -->
95                        </tr></table>
96                </td>
97        </tr>
98        <tr>
99                {left}
100                <td align="center">{lang_showing}</td>
101                {right}
102        </tr>
103</table>
104
105<table border="0" width="100%" cellpadding="0" cellspacing="0">
106        <tr>
107                <td valign="top" width="20%">
108                        <table border="0" width="100%" cellpadding="2" cellspacing="2">
109                                <tr>
110                                        <td class="th" colspan="2" align="center"><b>{lang_groups}</b></td>
111                                </tr>
112<!-- BEGIN bla_intro -->
113                                <tr>
114                                        <td class="th" colspan="2">{lang_perm}</td>
115                                </tr>
116
117<!-- END bla_intro -->
118
119<!-- BEGIN other_intro -->
120                                <tr>
121                                        <td class="th" colspan="2">{lang_perm}</td>
122                                </tr>
123<!-- END other_intro -->
124
125<!-- BEGIN group_cal -->
126                                <tr class="{tr_color}">
127                                        <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td>
128                                        <td align="center">
129                                                <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_group}">
130                                        </td>
131                                </tr>
132<!-- END group_cal -->
133
134<!-- BEGIN group_other -->
135
136                                <tr class="{tr_color}">
137                                        <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td>
138                                </tr>
139
140<!-- END group_other -->
141
142<!-- BEGIN all_intro -->
143                                <tr height="5">
144                                        <td>&nbsp;</td>
145                                </tr>
146                                <tr>
147                                        <td class="th" colspan="2">{lang_nonperm}</td>
148                                </tr>
149
150<!-- END all_intro -->
151
152<!-- BEGIN group_all -->
153
154                                <tr class="{tr_color}">
155                                        <td colspan="2"><a href="{link_all_group}" title="{lang_list_members}">{name_all_group}</a></td>
156                                </tr>
157
158<!-- END group_all -->
159
160
161                        </table>
162                </td>
163                <td valign="top">
164                        <table border="0" width="100%" cellpadding="2" cellspacing="2">
165                                <tr class="th">
166                                        <td width="100%" class="th" align="center" colspan="3"><b>{lang_accounts}</b></td>
167                                </tr>
168                                <tr class="th">
169                                        <!-- <td align="center">{sort_lid}</td> -->
170                                        <td align="center">{sort_firstname}</td>
171                                        <td align="center">{sort_lastname}</td>
172                                        <td width="10%">&nbsp;</td>
173                                </tr>
174
175<!-- BEGIN accounts_list -->
176
177        <tr class="{tr_color}">
178                <!-- <td>{lid}</td> -->
179                <td>{firstname}</td>
180                <td>{lastname}</td>
181                <td align="center">
182                        <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_user}">
183                </td>
184        </tr>
185
186<!-- END accounts_list -->
187
188                        </table>
189                </td>
190                <td valign="top">
191                        <table border="0" width="100%" cellpadding="2" cellspacing="2">
192                                <tr class="th">
193                                        <td align="center" colspan="2"><b>{lang_selection}</b> {remove}</td>
194                                </tr>
195                                <tr class="row_off">
196                                        <td align="center">
197                                                {selection}
198                                        </td>
199                                </tr>
200                                <tr>
201                                        <td align="center" colspan="2">
202                                                <input type="button" name="close" value="{lang_close}" onClick="window.close()">
203                                        </td>
204                                </tr>
205                        </table>
206                </td>
207        </tr>
208</table>
209</div>
210
Note: See TracBrowser for help on using the repository browser.