Changeset 6362


Ignore:
Timestamp:
05/31/12 15:11:04 (12 years ago)
Author:
douglasz
Message:

Ticket #2768 - Melhorias na inserção de destinatário.

Location:
sandbox/2.4.1-3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/admin/inc/class.uiconfig.inc.php

    r6357 r6362  
    339339                        /* Seta o valor padrão para a configuração de número máximo de marcadores */ 
    340340                        $current_config['expressoMail_limit_labels'] = (isset($current_config['expressoMail_limit_labels']) && !!$current_config['expressoMail_limit_labels'] ) ? $current_config['expressoMail_limit_labels'] : 20; 
     341                        //Pegar os todos os Atributos LDAP mapeados no arquivo user.ini 
     342                        $map = Config::get('user', 'OpenLDAP.mapping'); 
     343                        $validate = false;       
     344                        $options = "<option value=''>".lang('None')."</option>"; 
     345                        foreach($map as $value){ 
     346                                $options .= "<option value='".$value."'"; 
     347                                if($current_config['expressoMail_ldap_identifier_recipient'] == $value){ 
     348                                        $validate = true; 
     349                                        $options .= " selected='selected'"; 
     350                                } 
     351                                $options .= ">". $value . "</option>"; 
     352                        } 
     353 
     354                        if(!$validate){ 
     355                                // Limpa Atributo LDAP do banco de dados caso a atribuição não exista mais.      
     356                                $db = ''; 
     357                                $db = $db ? $db : $GLOBALS['phpgw']->db;        // this is to allow setup to set the db 
     358                                $db->query("DELETE FROM phpgw_config WHERE config_app = '".$appname."' AND config_name = 'expressoMail_ldap_identifier_recipient'"); 
     359                        } 
    341360                        /* Recupera o número mínimo de marcadores que pode ser definido */ 
    342361                        $db = ''; 
     
    422441                        $t->set_var('min_labels',$cont_labels); 
    423442                         
     443                        $t->set_var('rows_ldap_identifier',$options); 
    424444                        $t->pfp('out','body'); 
    425445 
  • sandbox/2.4.1-3/admin/setup/phpgw_pt-br.lang

    r6246 r6362  
    567567Identifier of the recipient of a message        admin   pt-br   Identificador do destinatário de uma mensagem 
    568568LDAP attribute used to replacement      admin   pt-br   Atributo LDAP utilizado para substituição 
     569None    admin   pt-br   Nenhum 
  • sandbox/2.4.1-3/expressoMail1_2/templates/default/config.tpl

    r6246 r6362  
    258258        <td>{lang_LDAP_attribute_used_to_replacement}</td> 
    259259        <td> 
     260            <select id="identifier_recipient" name="newsettings[expressoMail_ldap_identifier_recipient]"> 
     261                                {rows_ldap_identifier} 
     262            </select> 
     263        </td> 
     264    </tr>  
     265         
     266        <!-- <tr bgcolor="{row_off}"> 
     267        <td>{lang_LDAP_attribute_used_to_replacement}</td> 
     268        <td> 
    260269            <input type="text" id="identifier_recipient " value="{value_expressoMail_ldap_identifier_recipient}" name="newsettings[expressoMail_ldap_identifier_recipient]" size=10 maxlength=10 /> 
    261270        </td> 
    262     </tr> 
     271    </tr> --> 
    263272    <!--tr bgcolor="{row_on}"> 
    264273        <td>{lang_Days_interval_to_show_balloon_for_user}</td> 
Note: See TracChangeset for help on using the changeset viewer.