Ignore:
Timestamp:
06/24/08 16:45:40 (16 years ago)
Author:
rafaelraymundo
Message:

Alterações realizadas para unificação do ExpressoMail?


r39 | 50673548368 | 2008-06-24 18:17:33 -0300 (Ter, 24 Jun 2008) | 9 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Os arquivos abaixo sofreram modificacoes para tratar a exibicao do departamento na opcao "Pesquisar" do email.

  • alteracao na funcao catalogsearch() em expressoMail1_2/inc/class.ldap_functions.inc.php
  • alteracao na funcao searchCatalogList em expressoMail1_2/js/QuickCatalogSearch.js

r38 | 98954890059 | 2008-06-24 18:07:11 -0300 (Ter, 24 Jun 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/js/rich_text_editor.js

Correcao de traducoes e remocao da variavel defaultDraftsFodler


r35 | 98954890059 | 2008-06-19 21:11:11 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Melhoria inseridas pelo Emerson:

Pesquisa por catalogos externos na Lupa(f9).


r34 | 00105772038 | 2008-06-19 19:51:58 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/templates/default/preferences.tpl

Em preferências do Email foi removida a opção duplicada:

  • Salvar rascunhos automaticamente

r33 | 98954890059 | 2008-06-19 19:23:04 -0300 (Qui, 19 Jun 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

correcao de bug que nao mostrava a cota do usuario ao abrir o expressoMail.


r32 | 98954890059 | 2008-06-19 18:17:39 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ScriptS.inc.php
M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/index.php
M /trunk/expressoMail1_2/js/DropDownContacts.js
M /trunk/expressoMail1_2/js/InfoContact.js
M /trunk/expressoMail1_2/js/TreeS.js
M /trunk/expressoMail1_2/js/TreeShow.js
M /trunk/expressoMail1_2/js/abas.js
M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/doiMenuData.js
M /trunk/expressoMail1_2/js/drag_area.js
M /trunk/expressoMail1_2/js/draw_api.js
M /trunk/expressoMail1_2/js/globals.js
M /trunk/expressoMail1_2/js/main.js
M /trunk/expressoMail1_2/js/rich_text_editor.js
M /trunk/expressoMail1_2/js/search.js
M /trunk/expressoMail1_2/js/shortcut.js
M /trunk/expressoMail1_2/preferences.php
M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang
M /trunk/expressoMail1_2/setup/setup.inc.php
M /trunk/expressoMail1_2/templates/default/index.tpl
M /trunk/expressoMail1_2/templates/default/preferences.tpl

Corcacoes da celepar do bug das imagens e tabelas


r30 | 00105772038 | 2008-06-05 18:12:17 -0300 (Qui, 05 Jun 2008) | 5 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/globals.js

  • Foram inseridas funcionalidades para:

globals.js: Extenções de imagens permitidas "allowFileExtensions"

common_functions.js: Alterada a função validateFileExtension para rejeitar arquivos que não sejam imagens no corpo do email


r28 | 98954890059 | 2008-05-28 17:37:52 -0300 (Qua, 28 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/main.js

Alterada a funcao empty_trash() para mudar de Lixeira para imapDefaultTrashFolder.


r27 | 00105772038 | 2008-05-28 17:11:41 -0300 (Qua, 28 Mai 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang

Incluida tradução para mensagem de 'alert' ao tentar excluir emails de uma pasta compartilhada


r26 | 98954890059 | 2008-05-28 13:08:26 -0300 (Qua, 28 Mai 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/js/main.js

Inserido get_lang na ACL das pastas compartilhadas. Função move_msgs()


r24 | 98954890059 | 2008-05-27 17:53:30 -0300 (Ter, 27 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/preferences.js

Aumentado o tamanho da janela javascript das preferencias do expressoMail.


r23 | 03436989789 | 2008-05-27 17:43:54 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Substituição de links no email.


r22 | 98954890059 | 2008-05-27 17:07:32 -0300 (Ter, 27 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

Corrigido um bug na visualizacao das pastas compartilhadas.


r19 | 03436989789 | 2008-05-27 15:37:01 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

Pesquisa em catalogos externos


r17 | 03436989789 | 2008-05-27 13:18:56 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Busca de catálogos externos no email.


r15 | 98954890059 | 2008-05-27 12:19:50 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Procura em catálogos externos


r6 | 98954890059 | 2008-05-21 16:14:33 -0300 (Qua, 21 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

Correção para atualizar a visualização das cotas
de pastas compartilhadas ao mudar de pasta.


r5 | 98954890059 | 2008-05-21 16:02:37 -0300 (Qua, 21 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/draw_api.js

Alterações iniciais do serpro:

-Mostrar quotas das pastas compartilhadas


r4 | 03436989789 | 2008-05-21 13:25:29 -0300 (Qua, 21 Mai 2008) | 10 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/index.php
M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/filter.js
M /trunk/expressoMail1_2/js/main.js
M /trunk/expressoMail1_2/js/preferences.js
M /trunk/expressoMail1_2/js/rich_text_editor.js
M /trunk/expressoMail1_2/preferences.php
M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang
M /trunk/expressoMail1_2/templates/default/preferences.tpl

Alterações iniciais do sepro:

  • Assinatura automática no corpo das mensagens
  • Fixar assinatura no corpo das mensagens
  • Questão dos Catálogos Externos (Ao clicar em um email o módulo abre nova mensagem)
  • Inserção de imagens em Firefox3
  • Quota nas pastas compartilhadas
  • Traduções nas pastas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/QuickCatalogSearch.js

    r271 r325  
    3535                        var cmb = document.createElement("SELECT"); 
    3636                        cmb.id = "select_QuickCatalogSearch"; 
    37                         cmb.style.width = "585px"; 
     37                        cmb.style.width = "685px"; // na comunidade valor eh 585px 
    3838                        cmb.size = "12"; 
    3939                        cmb.onkeypress = function (e) 
     
    134134                        Op.text = data[i].cn + ' (' + data[i].mail + ')'; 
    135135                        if (data[i].phone != '') 
    136                                 Op.text += ' (tel: ' + data[i].phone + ')'; 
     136                                Op.text += ' - ' + data[i].phone; 
     137                        if (data[i].ou != '') 
     138                                Op.text += ' - ' + data[i].ou; // adicionado "data[i].ou" para exibir setor (F9) 
    137139                        Op.value = '"' + data[i].cn + '" ' + '<' + data[i].mail + '>'; 
    138140                        cmb.options.add(Op); 
     141 
    139142                } 
    140143                cmb.options[0].selected = true; 
     
    150153                                                         
    151154                if(! this.arrayWin[div.id]) { 
    152                         div.style.width = "600px"; 
     155                        div.style.width = "700px"; //na comunidade valor eh 600px 
    153156                        div.style.height = "230px"; 
    154157                        var title = get_lang('The results were found in the Global Catalog')+':'; 
     
    223226                el.style.visibility = "hidden"; 
    224227                el.style.position = "absolute"; 
    225                 el.style.width = "495px"; 
     228                el.style.width = "700px"; // na comunidade valor eh 495px 
    226229                el.style.height = is_ie ? "360px" : "375px";             
    227230                el.style.left = "0px"; 
     
    234237                                           '<table border="0" cellpading="0" cellspacing="0">'+ 
    235238                                           '<tr><td>'+get_lang("Select an organization and click on button <b>Search</b>")+'&nbsp;:</td></tr>'+ 
    236                                            '<tr><td><select id="select_organization" name="select_organization"></select>&nbsp;'+ 
    237                                            '<input type="text" id="search_for" name="search_for" value="" size="17" maxlength="20"/>&nbsp;<input type="button" onclick="QuickCatalogSearch.searchCatalogList(true)" class="button" value="'+get_lang('Search')+'">&nbsp;<input type="button" onclick="QuickCatalogSearch.searchCatalogList(false)" class="button" value="'+get_lang('List All')+'"></td></tr>'+ 
     239                                        '<tr><td><select style="width:150px" id="select_catalog" name="select_catalog" onchange="javascript:QuickCatalogSearch.update_organizations();"></select>&nbsp'+ 
     240                                        '<select id="select_organization" style="width:100px" name="select_organization"></select>&nbsp;'+    
     241                                        '<input type="text" id="search_for" name="search_for" value="" size="10" maxlength="15"/>&nbsp;<input type="button" onclick="QuickCatalogSearch.searchCatalogList(true)" class="button" value="'+get_lang('Search')+'">&nbsp;<input style="display:none" type="button" onclick="QuickCatalogSearch.searchCatalogList(false)" class="button" value="'+get_lang('List All')+'"></td></tr>'+ 
    238242                                           '<tr><td><input onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" id="type" type="radio" name="type" value="l"/>'+get_lang('Public Lists')+'&nbsp;&nbsp;<input type="radio" name="type" value="u" onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" checked/>'+get_lang('Users')+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+ 
    239243                                           '<span style="visibility:hidden;background:#cc4444" id=msg_search>&nbsp;&nbsp;<font face="Verdana" size="1" color="WHITE">'+get_lang('Search in Catalog')+'...</font>&nbsp;</span></td></tr>'+ 
    240244                                           '<tr><td>'+ 
    241                                            '<span id="list_span"><select multiple style="display:none;width:400px" size="14" id="list_values"></select></span>'+ 
    242                                            '<span id="user_span"><select multiple style="width:400px" size="14" id="user_values"></select></span>'+ 
     245                                           '<span id="list_span"><select multiple style="display:none;width:450px" size="14" id="list_values"></select></span>'+ 
     246                                           '<span id="user_span"><select multiple style="width:580px" size="14" id="user_values"></select></span>'+ 
    243247                                           '</td></tr>'+ 
    244248                                           '<tr><td nowrap><center>'+get_lang('Click here to add into the fields')+':&nbsp;<input type="button" class="button" value="'+get_lang('TO')+'" onClick="javascript:QuickCatalogSearch.addContacts(\'to\')">&nbsp;'+ 
     
    291295                win.open(); 
    292296 
    293                 var handler_organizations = function(data){ 
    294                         var user_organization = Element('user_organization').value; 
     297                var handler_catalogs = function(data){ 
     298                        var user_catalog = "Catalogo Geral"; 
    295299 
    296300                        for(i = 0; i < data.length; i++) { 
    297                                 Element('select_organization').options[i] = new Option(data[i],data[i]); 
    298                                 if(user_organization.toUpperCase() == data[i].toUpperCase()) 
    299                                         Element('select_organization').options[i].selected = true; 
    300                         } 
    301                 } 
    302                 cExecute ("$this.ldap_functions.get_organizations&referral=true", handler_organizations); 
    303                  
     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; 
     305                        } 
     306                } 
     307                cExecute ("$this.ldap_functions.get_catalogs", handler_catalogs);                
     308 
     309                this.update_organizations(); 
     310         
    304311                var handler_cc_contacts= function(data){ 
    305312                        if(data && data.length > 0){ 
     
    367374        } 
    368375 
     376        emQuickCatalogSearch.prototype.update_organizations = function(){ 
     377 
     378                         
     379                while(Element('select_organization').options.length > 0) { 
     380                        Element('select_organization').remove(0); 
     381                } 
     382                 
     383                 
     384                var handler_org = function(data){ 
     385                        Element('select_organization').options[0] = new Option('todos','todos'); 
     386                        if (data != null){ 
     387                         
     388                        for(x = 0; x < data.length; x++) { 
     389                                Element('select_organization').options[x+1] = new Option(data[x],data[x]); 
     390                                } 
     391                        } 
     392                         
     393                } 
     394                 
     395                cExecute ("$this.ldap_functions.get_organizations&referral=false&catalog="+Element('select_catalog').value, handler_org); 
     396                 
     397        } 
     398 
    369399        emQuickCatalogSearch.prototype.changeOptions = function(type){   
    370400 
     
    428458        emQuickCatalogSearch.prototype.searchCatalogList = function (itemSearch){ 
    429459 
    430                 if(itemSearch && Element('search_for').value.length == 0){ 
    431                         alert(get_lang('No data to search')); 
     460                if(itemSearch && Element('search_for').value.length < 4){ 
     461                        alert(get_lang('your search argument must be longer than 4 characters.')); 
    432462                        Element('search_for').focus(); 
    433463                        return false; 
     
    435465                var organization = Element('select_organization').value;                 
    436466                var search               = itemSearch ? Element('search_for').value : ''; 
    437                 var max_result   = 2000; 
     467                var catalog              = Element('select_catalog').value; 
     468                var max_result   = 300; 
    438469 
    439470                var handler_searchResults = function(data){ 
     
    477508                         
    478509                        for(i = 0; data.users && i < data.users.length; i++) {                   
    479                                 if(is_ie) 
     510                                if(is_ie){ 
    480511                                        arr[i] = '<option value="'+'&quot;'+data.users[i].name+'&quot; &lt;'+data.users[i].email+'&gt;">'+data.users[i].name+' ('+data.users[i].email+')'+'</option>'; 
    481                                 else 
    482                                         user.options[i] = new Option(data.users[i].name+' ('+data.users[i].email+')','"'+data.users[i].name+'" <'+data.users[i].email+'>'); 
     512                                } 
     513                                else{ 
     514 
     515                                /*******************************************************************************************/ 
     516                                /* O resultado pratico do bloco de codigo a seguir eh a exibicao dos valores em tela, 
     517                                ja que vai verificar se o departamento e o email estao vazios ou nulos e a partir dai o 
     518                                resultado apresentado em tela sera exibido de maneira mais apresentavel; 
     519                                */ 
     520                                        //verifica se departamento eh null ou nao; 
     521                                        var departamento_nulo = 'false'; 
     522                                        if((data.users[i].department == null) || (data.users[i].department == '')) { 
     523                                                data.users[i].department = ''; 
     524                                                departamento_nulo = 'true'; 
     525                                        } 
     526                                        else { 
     527                                                data.users[i].department = ' - ' + data.users[i].department; 
     528                                        } 
     529 
     530                                        //verifica se email eh null ou nao; 
     531                                        if((data.users[i].email == null) || (data.users[i].email == '')) { 
     532                                                if(departamento_nulo = 'true') { 
     533                                                        data.users[i].email = ''; 
     534                                                } 
     535                                                else { 
     536                                                        data.users[i].email = ' - '; 
     537                                                } 
     538                                        } 
     539                                        else { 
     540                                                data.users[i].email = ' (' + data.users[i].email + ') '; 
     541                                        } 
     542 
     543                                        user.options[i] = new Option(data.users[i].name+data.users[i].email+data.users[i].department,'"'+data.users[i].name+'" <'+data.users[i].email+'>'); // incluido data.users[i].department para exibir setor na opcao "Pesquisar" do email; 
     544                                } 
    483545                        } 
    484546         
     
    488550 
    489551                Element('msg_search').style.visibility = 'visible'; 
    490                 cExecute ("$this.ldap_functions.catalogsearch&max_result="+max_result+"&organization="+organization+"&search_for="+search, handler_searchResults); 
     552                cExecute ("$this.ldap_functions.catalogsearch&max_result="+max_result+"&organization="+organization+"&search_for="+search+"&catalog="+catalog, handler_searchResults); 
    491553        } 
    492554 
Note: See TracChangeset for help on using the changeset viewer.