| [ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <!-- $Id: uiaccountsel.tpl 17204 2004-10-14 09:07:31Z bgigon $ --> 2 <script LANGUAGE="JavaScript"> 3 window.focus(); 4 5 function addOption(id,label,value,multiple) 6 { 7 openerSelectBox = opener.document.getElementById(id); 8 9 if (multiple && openerSelectBox) { 10 select = ''; 11 for(i=0; i < openerSelectBox.length; i++) { 12 with (openerSelectBox.options[i]) { 13 if (selected || openerSelectBox.selectedIndex == i) { 14 select += (value.slice(0,1)==',' ? '' : ',')+value; 15 } 16 } 17 } 18 select += (select ? ',' : '')+value; 19 opener.addOption(id,label,value,0); 20 opener.addOption(id,'{lang_multiple}',select,0); 21 } 22 else { 23 opener.addOption(id,label,value,!multiple && openerSelectBox && openerSelectBox.selectedIndex < 0); 24 } 25 selectBox = document.getElementById('uiaccountsel_popup_selection'); 26 if (selectBox) { 27 for (i=0; i < selectBox.length; i++) { 28 if (selectBox.options[i].value == value) { 29 selectBox.options[i].selected = true; 30 break; 31 } 32 } 33 if (i >= selectBox.length) { 34 selectBox.options[selectBox.length] = new Option(label,value,false,true); 35 } 36 } 37 } 38 39 function removeSelectedOptions() 40 { 41 for(i=0; i<document.uiaccountsel.participants.options.length;i++) 42 { 43 if(document.uiaccountsel.participants.options[i].selected==true) 44 { 45 for (j = 0 ; j < opener.document.{FormName}.{SelectName}.options.length ; j++) 46 { 47 if (opener.document.{FormName}.{SelectName}.options[j].value == document.uiaccountsel.participants.options[i].value) 48 opener.document.{FormName}.{SelectName}.options[j]=null; 49 } 50 51 document.uiaccountsel.participants.options[i]=null; 52 i--; 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 145 <!-- BEGIN bla_intro --> 146 147 <!-- END bla_intro --> 148 149 <!-- BEGIN other_intro --> 150 151 <!-- END other_intro --> 152 153 <!-- BEGIN group_cal --> 154 155 <!-- END group_cal --> 156 157 <!-- BEGIN group_other --> 158 159 <!-- END group_other --> 160 161 <!-- BEGIN all_intro --> 162 163 <!-- END all_intro --> 164 165 <!-- BEGIN group_all --> 166 167 <!-- END group_all --> 168 169 <td valign="top"> 170 <table border="0" width="100%" cellpadding="2" cellspacing="2"> 171 <tr class="th"> 172 <td width="100%" class="th" align="center" colspan="3"><b>{lang_accounts}</b></td> 173 </tr> 174 <tr class="th"> 175 <td align="center">{sort_lastname}</td> 176 <td align="center">{sort_firstname}</td> 177 <td width="10%"> </td> 178 </tr> 179 180 <!-- BEGIN accounts_list --> 181 182 <tr class="{tr_color}"> 183 <td>{bold}{lastname}</td> 184 <td>{bold}{firstname}</td> 185 <td align="center"> 186 <input type="image" src="{img}" onclick="{onclick}; return false;" title="{lang_select_user}"> 187 </td> 188 </tr> 189 190 <!-- END accounts_list --> 191 192 </table> 193 </td> 194 <td valign="top"> 195 <table border="0" width="100%" cellpadding="2" cellspacing="2"> 196 <tr class="th"> 197 <td align="center" colspan="2"><b>{lang_selection}</b> {remove}</td> 198 </tr> 199 <form name="uiaccountsel"> 200 <tr class="row_off"> 201 <td align="center"> 202 {selection} 203 </td> 204 </tr> 205 </form> 206 <tr> 207 <td align="center" colspan="2"> 208 <input type="button" name="close" value="{lang_close}" onClick="{close_action}"> 209 </td> 210 </tr> 211 </table> 212 </td> 213 </tr> 214 </table> 215 </div> 216
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 |