[2] | 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 | {query_type} |
---|
| 80 | <input type="text" name="query" value="{prev_query}"> |
---|
| 81 | <input type="submit" name="search" value="{lang_search}"> |
---|
| 82 | </form> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | <tr> |
---|
| 86 | <td colspan="5"> |
---|
| 87 | <table width="100%"><tr> |
---|
| 88 | <!-- BEGIN letter_search --> |
---|
| 89 | <td class="{class}" onclick="location.href='{link}';">{letter}</td> |
---|
| 90 | <!-- END letter_search --> |
---|
| 91 | </tr></table> |
---|
| 92 | </td> |
---|
| 93 | </tr> |
---|
| 94 | <tr> |
---|
| 95 | {left} |
---|
| 96 | <td align="center">{lang_showing}</td> |
---|
| 97 | {right} |
---|
| 98 | </tr> |
---|
| 99 | </table> |
---|
| 100 | |
---|
| 101 | <table border="0" width="100%" cellpadding="0" cellspacing="0"> |
---|
| 102 | <tr> |
---|
| 103 | <td valign="top" width="20%"> |
---|
| 104 | <table border="0" width="100%" cellpadding="2" cellspacing="2"> |
---|
| 105 | <tr> |
---|
| 106 | <td class="th" colspan="2" align="center"><b>{lang_groups}</b></td> |
---|
| 107 | </tr> |
---|
| 108 | <!-- BEGIN bla_intro --> |
---|
| 109 | <tr> |
---|
| 110 | <td class="th" colspan="2">{lang_perm}</td> |
---|
| 111 | </tr> |
---|
| 112 | |
---|
| 113 | <!-- END bla_intro --> |
---|
| 114 | |
---|
| 115 | <!-- BEGIN other_intro --> |
---|
| 116 | <tr> |
---|
| 117 | <td class="th" colspan="2">{lang_perm}</td> |
---|
| 118 | </tr> |
---|
| 119 | <!-- END other_intro --> |
---|
| 120 | |
---|
| 121 | <!-- BEGIN group_cal --> |
---|
| 122 | <tr class="{tr_color}"> |
---|
| 123 | <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td> |
---|
| 124 | <td align="center"> |
---|
| 125 | <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_group}"> |
---|
| 126 | </td> |
---|
| 127 | </tr> |
---|
| 128 | <!-- END group_cal --> |
---|
| 129 | |
---|
| 130 | <!-- BEGIN group_other --> |
---|
| 131 | |
---|
| 132 | <tr class="{tr_color}"> |
---|
| 133 | <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td> |
---|
| 134 | </tr> |
---|
| 135 | |
---|
| 136 | <!-- END group_other --> |
---|
| 137 | |
---|
| 138 | <!-- BEGIN all_intro --> |
---|
| 139 | <tr height="5"> |
---|
| 140 | <td> </td> |
---|
| 141 | </tr> |
---|
| 142 | <tr> |
---|
| 143 | <td class="th" colspan="2">{lang_nonperm}</td> |
---|
| 144 | </tr> |
---|
| 145 | |
---|
| 146 | <!-- END all_intro --> |
---|
| 147 | |
---|
| 148 | <!-- BEGIN group_all --> |
---|
| 149 | |
---|
| 150 | <tr class="{tr_color}"> |
---|
| 151 | <td colspan="2"><a href="{link_all_group}" title="{lang_list_members}">{name_all_group}</a></td> |
---|
| 152 | </tr> |
---|
| 153 | |
---|
| 154 | <!-- END group_all --> |
---|
| 155 | |
---|
| 156 | |
---|
| 157 | </table> |
---|
| 158 | </td> |
---|
| 159 | <td valign="top"> |
---|
| 160 | <table border="0" width="100%" cellpadding="2" cellspacing="2"> |
---|
| 161 | <tr class="th"> |
---|
| 162 | <td width="100%" class="th" align="center" colspan="4"><b>{lang_accounts}</b></td> |
---|
| 163 | </tr> |
---|
| 164 | <tr class="th"> |
---|
| 165 | <td align="center">{sort_lid}</td> |
---|
| 166 | <td align="center">{sort_firstname}</td> |
---|
| 167 | <td align="center">{sort_lastname}</td> |
---|
| 168 | <td width="10%"> </td> |
---|
| 169 | </tr> |
---|
| 170 | |
---|
| 171 | <!-- BEGIN accounts_list --> |
---|
| 172 | |
---|
| 173 | <tr class="{tr_color}"> |
---|
| 174 | <td>{lid}</td> |
---|
| 175 | <td>{firstname}</td> |
---|
| 176 | <td>{lastname}</td> |
---|
| 177 | <td align="center"> |
---|
| 178 | <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_user}"> |
---|
| 179 | </td> |
---|
| 180 | </tr> |
---|
| 181 | |
---|
| 182 | <!-- END accounts_list --> |
---|
| 183 | |
---|
| 184 | </table> |
---|
| 185 | </td> |
---|
| 186 | <td valign="top"> |
---|
| 187 | <table border="0" width="100%" cellpadding="2" cellspacing="2"> |
---|
| 188 | <tr class="th"> |
---|
| 189 | <td align="center" colspan="2"><b>{lang_selection}</b> {remove}</td> |
---|
| 190 | </tr> |
---|
| 191 | <tr class="row_off"> |
---|
| 192 | <td align="center"> |
---|
| 193 | {selection} |
---|
| 194 | </td> |
---|
| 195 | </tr> |
---|
| 196 | <tr> |
---|
| 197 | <td align="center" colspan="2"> |
---|
| 198 | <input type="button" name="close" value="{lang_close}" onClick="window.close()"> |
---|
| 199 | </td> |
---|
| 200 | </tr> |
---|
| 201 | </table> |
---|
| 202 | </td> |
---|
| 203 | </tr> |
---|
| 204 | </table> |
---|
| 205 | </div> |
---|
| 206 | |
---|