Changeset 342 for trunk/expressoMail1_2/js/QuickCatalogSearch.js
- Timestamp:
- 07/01/08 11:40:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r325 r342 139 139 Op.value = '"' + data[i].cn + '" ' + '<' + data[i].mail + '>'; 140 140 cmb.options.add(Op); 141 142 141 } 143 142 cmb.options[0].selected = true; … … 153 152 154 153 if(! this.arrayWin[div.id]) { 155 div.style.width = "700px"; //na comunidade valor eh 600px154 div.style.width = "700px"; 156 155 div.style.height = "230px"; 157 156 var title = get_lang('The results were found in the Global Catalog')+':'; … … 226 225 el.style.visibility = "hidden"; 227 226 el.style.position = "absolute"; 228 el.style.width = "700px"; // na comunidade valor eh 495px227 el.style.width = "700px"; 229 228 el.style.height = is_ie ? "360px" : "375px"; 230 229 el.style.left = "0px"; … … 239 238 '<tr><td><select style="width:150px" id="select_catalog" name="select_catalog" onchange="javascript:QuickCatalogSearch.update_organizations();"></select> '+ 240 239 '<select id="select_organization" style="width:100px" name="select_organization"></select> '+ 241 '<input type="text" id="search_for" name="search_for" value="" size=" 10" maxlength="15"/> <input type="button" onclick="QuickCatalogSearch.searchCatalogList(true)" class="button" value="'+get_lang('Search')+'"> <input style="display:none" type="button" onclick="QuickCatalogSearch.searchCatalogList(false)" class="button" value="'+get_lang('List All')+'"></td></tr>'+242 '<tr><td><input onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" id="type" type="radio" name="type" value="l"/>'+get_lang('Public Lists')+' <input type="radio" name="type" value="u" onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" checked/>'+get_lang('Users')+' '+240 '<input type="text" id="search_for" name="search_for" value="" size="30" maxlength="20"/> <input type="button" onclick="QuickCatalogSearch.searchCatalogList(true)" class="button" value="'+get_lang('Search')+'"> <input style="display:none" type="button" onclick="QuickCatalogSearch.searchCatalogList(false)" class="button" value="'+get_lang('List All')+'"></td></tr>'+ 241 //'<tr><td><input onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" id="type" type="radio" name="type" value="l"/>'+get_lang('Public Lists')+' <input type="radio" name="type" value="u" onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" checked/>'+get_lang('Users')+' '+ 243 242 '<span style="visibility:hidden;background:#cc4444" id=msg_search> <font face="Verdana" size="1" color="WHITE">'+get_lang('Search in Catalog')+'...</font> </span></td></tr>'+ 244 243 '<tr><td>'+ … … 298 297 var user_catalog = "Catalogo Geral"; 299 298 300 for(i = 0; i < data.length; i++) { 301 302 Element('select_catalog').options[i] = new Option(data[i],i); 303 if(user_catalog.toUpperCase() == data[i].toUpperCase()) 304 Element('select_catalog').options[i].selected = true; 299 if(data.length <= 1) 300 Element('select_catalog').style.display = 'none'; 301 else { 302 for(i = 0; i < data.length; i++) { 303 Element('select_catalog').options[i] = new Option(data[i],i); 304 if(user_catalog.toUpperCase() == data[i].toUpperCase()) 305 Element('select_catalog').options[i].selected = true; 306 } 305 307 } 306 308 } 307 309 cExecute ("$this.ldap_functions.get_catalogs", handler_catalogs); 308 310 309 311 this.update_organizations(); 310 312 … … 383 385 384 386 var handler_org = function(data){ 385 Element('select_organization').options[0] = new Option( 'todos','todos');387 Element('select_organization').options[0] = new Option(get_lang('all'),'all'); 386 388 if (data != null){ 387 389 388 390 for(x = 0; x < data.length; x++) { 389 Element('select_organization').options[x+1] = new Option(data[x] ,data[x]);391 Element('select_organization').options[x+1] = new Option(data[x].toUpperCase(),data[x]); 390 392 } 391 393 } … … 512 514 } 513 515 else{ 514 516 515 517 /*******************************************************************************************/ 516 518 /* O resultado pratico do bloco de codigo a seguir eh a exibicao dos valores em tela,
Note: See TracChangeset
for help on using the changeset viewer.