[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <!-- $Id: uiaccountsel.tpl 20295 2006-02-15 12:31:25Z $ --> 2 3 <script LANGUAGE="JavaScript"> 4 window.focus(); 5 6 function addOption(id,label,value,multiple) 7 { 8 openerSelectBox = opener.document.getElementById(id); 9 10 if (multiple && openerSelectBox) { 11 select = ''; 12 for(i=0; i < openerSelectBox.length; i++) { 13 with (openerSelectBox.options[i]) { 14 if (selected || openerSelectBox.selectedIndex == i) { 15 select += (value.slice(0,1)==',' ? '' : ',')+value; 16 } 17 } 18 } 19 select += (select ? ',' : '')+value; 20 opener.addOption(id,label,value,0); 21 opener.addOption(id,'{lang_multiple}',select,0); 22 } 23 else { 24 opener.addOption(id,label,value,!multiple); 25 } 26 selectBox = document.getElementById('uiaccountsel_popup_selection'); 27 if (selectBox) { 28 for (i=0; i < selectBox.length; i++) { 29 if (selectBox.options[i].value == value) { 30 selectBox.options[i].selected = true; 31 break; 32 } 33 } 34 if (i >= selectBox.length) { 35 selectBox.options[selectBox.length] = new Option(label,value,false,true); 36 } 37 } 38 } 39 40 function removeSelectedOptions(id) 41 { 42 openerSelectBox = opener.document.getElementById(id); 43 if (openerSelectBox == null) window.close(); 44 selectBox = document.getElementById('uiaccountsel_popup_selection'); 45 for (i=0; i < selectBox.length; i++) { 46 if (selectBox.options[i].selected) { 47 for (j=0; j < openerSelectBox.length; j++) { 48 if (openerSelectBox[j].value == selectBox.options[i].value) { 49 openerSelectBox.removeChild(openerSelectBox[j]); 50 } 51 } 52 selectBox.options[i--] = null; 53 } 54 } 55 } 56 57 function copyOptions(id) 58 { 59 openerSelectBox = opener.document.getElementById(id); 60 selectBox = document.getElementById('uiaccountsel_popup_selection'); 61 for (i=0; i < openerSelectBox.length; i++) { 62 with (openerSelectBox.options[i]) { 63 if (selected && value.slice(0,1) != ',') { 64 selectBox.options[selectBox.length] = new Option(text,value); 65 } 66 } 67 } 68 } 69 70 function oneLineSubmit(id) 71 { 72 openerSelectBox = opener.document.getElementById(id); 73 74 if (openerSelectBox) { 75 if (openerSelectBox.selectedIndex >= 0) { 76 selected = openerSelectBox.options[openerSelectBox.selectedIndex].value; 77 if (selected.slice(0,1) == ',') selected = selected.slice(1); 78 opener.addOption(id,'{lang_multiple}',selected,1); 79 } 80 else { 81 for (i=0; i < openerSelectBox.length; i++) { 82 with (openerSelectBox.options[i]) { 83 if (selected) { 84 opener.addOption(id,text,value,1); 85 break; 86 } 87 } 88 } 89 } 90 } 91 window.close(); 92 } 93 </script> 94 95 <style type="text/css"> 96 .letter_box,.letter_box_active { 97 background-color: #E8F0F0; 98 width: 15px; 99 border: 1px solid white; 100 text-align: center; 101 cursor: pointer; 102 cusror: hand; 103 } 104 .letter_box_active { 105 font-weight: bold; 106 background-color: #D3DCE3; 107 } 108 .letter_box_active,.letter_box:hover { 109 border: 1px solid black; 110 background-color: #D3DCE3; 111 } 112 </style> 113 114 <div id="divMain"> 115 <table border="0" width="100%"> 116 <tr> 117 <td width="20%" rowspan="3">{accountsel_icon}</td> 118 <td align="right" colspan="5"> 119 <form method="POST" action="{search_action}"> 120 {query_type} 121 <input type="text" name="query" value="{prev_query}"> 122 <input type="submit" name="search" value="{lang_search}"> 123 </form> 124 </td> 125 </tr> 126 <tr> 127 <td colspan="5"> 128 <table width="100%"><tr> 129 <!-- BEGIN letter_search --> 130 <td class="{class}" onclick="location.href='{link}';">{letter}</td> 131 <!-- END letter_search --> 132 </tr></table> 133 </td> 134 </tr> 135 <tr> 136 {left} 137 <td align="center">{lang_showing}</td> 138 {right} 139 </tr> 140 </table> 141 142 <table border="0" width="100%" cellpadding="0" cellspacing="0"> 143 <tr> 144 <td valign="top" width="20%"> 145 <table border="0" width="100%" cellpadding="2" cellspacing="2"> 146 <tr> 147 <td class="th" colspan="2" align="center"><b>{lang_groups}</b></td> 148 </tr> 149 <!-- BEGIN bla_intro --> 150 <tr> 151 <td class="th" colspan="2">{lang_perm}</td> 152 </tr> 153 154 <!-- END bla_intro --> 155 156 <!-- BEGIN other_intro --> 157 <tr> 158 <td class="th" colspan="2">{lang_perm}</td> 159 </tr> 160 <!-- END other_intro --> 161 162 <!-- BEGIN group_cal --> 163 <tr class="{tr_color}"> 164 <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td> 165 <td align="center"> 166 <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_group}"> 167 </td> 168 </tr> 169 <!-- END group_cal --> 170 171 <!-- BEGIN group_other --> 172 173 <tr class="{tr_color}"> 174 <td><a href="{link_user_group}" title="{lang_list_members}">{name_user_group}</a></td> 175 </tr> 176 177 <!-- END group_other --> 178 179 <!-- BEGIN all_intro --> 180 <tr height="5"> 181 <td> </td> 182 </tr> 183 <tr> 184 <td class="th" colspan="2">{lang_nonperm}</td> 185 </tr> 186 187 <!-- END all_intro --> 188 189 <!-- BEGIN group_all --> 190 191 <tr class="{tr_color}"> 192 <td colspan="2"><a href="{link_all_group}" title="{lang_list_members}">{name_all_group}</a></td> 193 </tr> 194 195 <!-- END group_all --> 196 197 198 </table> 199 </td> 200 <td valign="top"> 201 <table border="0" width="100%" cellpadding="2" cellspacing="2"> 202 <tr class="th"> 203 <td width="100%" class="th" align="center" colspan="4"><b>{lang_accounts}</b></td> 204 </tr> 205 <tr class="th"> 206 <td align="center">{sort_lid}</td> 207 <td align="center">{sort_firstname}</td> 208 <td align="center">{sort_lastname}</td> 209 <td width="10%"> </td> 210 </tr> 211 212 <!-- BEGIN accounts_list --> 213 214 <tr class="{tr_color}"> 215 <td>{lid}</td> 216 <td>{firstname}</td> 217 <td>{lastname}</td> 218 <td align="center"> 219 <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_user}"> 220 </td> 221 </tr> 222 223 <!-- END accounts_list --> 224 225 </table> 226 </td> 227 <td valign="top"> 228 <table border="0" width="100%" cellpadding="2" cellspacing="2"> 229 <tr class="th"> 230 <td align="center" colspan="2"><b>{lang_selection}</b> {remove}</td> 231 </tr> 232 <tr class="row_off"> 233 <td align="center"> 234 {selection} 235 </td> 236 </tr> 237 <tr> 238 <td align="center" colspan="2"> 239 <input type="button" name="close" value="{lang_close}" onClick="{close_action}"> 240 </td> 241 </tr> 242 </table> 243 </td> 244 </tr> 245 </table> 246 </div> 247
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |