Ignore:
Timestamp:
11/03/11 13:24:14 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, do modulo ExpressoAdmin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php

    r4280 r5133  
    3939                        } 
    4040                        $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 
     41                        $GLOBALS['phpgw']->js->validate_file('jscode','finder','expressoAdmin1_2'); 
    4142                        $GLOBALS['phpgw']->js->validate_file('jscode','expressoadmin','expressoAdmin1_2'); 
    4243                        $GLOBALS['phpgw']->js->validate_file('jscode','maillists','expressoAdmin1_2'); 
     
    166167                function add_maillists() 
    167168                { 
    168                         if($this->current_config['users_auto_search'] == "true"){ 
    169169                                $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    170                         } 
     170 
    171171                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    172172                        $manager_acl = $this->functions->read_acl($manager_lid); 
     
    206206                                'combo_manager_org'                     => $combo_manager_org, 
    207207                                'combo_all_orgs'                        => $combo_all_orgs, 
    208                                 'defaultDomain'                         => $this->current_config['expressoAdmin_defaultDomain'], 
    209                                 'autosearch'                            => ($this->current_config['users_auto_search'] == "") ? 0:$this->current_config['users_auto_search'], 
    210                                 'minNum'                                        => ($this->current_config['min_num_characters'] == "") ? 0:$this->current_config['min_num_characters'] 
     208                                'defaultDomain'                         => $this->current_config['expressoAdmin_defaultDomain'] 
    211209                        ); 
    212210                        $p->set_var($var); 
     
    263261                                        if ($array_users_type[$mail] == 'u') 
    264262                                        { 
    265                                                 $users .= "<option value=" . $mail . ">" . $cn .  " [" . $array_users_uid[$mail] . "]</option>"; 
     263                                                $users .= "<option value=" . $mail . ">" . utf8_decode($cn) .  " (" . $array_users_uid[$mail] . ")</option>"; 
    266264                                        } 
    267265                                        elseif ($array_users_type[$mail] == 'l') 
    268266                                        { 
    269                                                 $lists .= "<option value=" . $mail . ">" . $cn .  " [" . $array_users_uid[$mail] . "]</option>"; 
     267                                                $lists .= "<option value=" . $mail . ">" . utf8_decode($cn) .  " (" . $array_users_uid[$mail] . ")</option>"; 
    270268                                        } 
    271269                                        else 
    272270                                        { 
    273                                                 $mail_not_found .= "<option value=" . $mail . ">" . $cn .  " [" . $array_users_uid[$mail] . "]</option>"; 
     271                                                $mail_not_found .= "<option value=" . $mail . ">" . utf8_decode($cn) .  " (" . $array_users_uid[$mail] . ")</option>"; 
    274272                                        } 
    275273                                } 
     
    307305                                'phpgwAccountVisible_checked'   => $maillist_info['phpgwAccountVisible'] == '-1' ? 'CHECKED' : '', 
    308306                                'ea_select_usersInMaillist'             => $ea_select_usersInMaillist, 
    309                                 'defaultDomain'                                 => $this->current_config['expressoAdmin_defaultDomain'], 
    310                                 'autosearch'                            => $this->current_config['users_auto_search'], 
    311                                 'minNum'                                        => ($this->current_config['min_num_characters'] == "") ? 0:$this->current_config['min_num_characters'] 
     307                                'defaultDomain'                                 => $this->current_config['expressoAdmin_defaultDomain'] 
    312308                        ); 
    313309                        $p->set_var($var); 
     
    345341 
    346342                        // Pega combo das organizações e seleciona a org da lista.                       
    347                         $sectors = $this->functions->get_organizations($GLOBALS['phpgw_info']['server']['ldap_context']); 
     343                        // $org = $this->functions->get_organizations($manager_context, trim(strtolower($maillist_info['context']))); 
     344                        foreach ($manager_contexts as $index=>$context) 
     345                                $sectors .= $this->functions->get_organizations($context, trim(strtolower($maillist_info['context'])) ); 
    348346 
    349347                        // Usuarios de senders. 
     
    376374                                'accountRestrictive_checked'    => $maillist_info['accountRestrictive'] == 'mailListRestriction' ? 'CHECKED' : '', 
    377375                                'participantCanSendMail_checked'=> $maillist_info['participantCanSendMail'] == 'TRUE' ? 'CHECKED' : '', 
    378                                 'ea_select_users_SCL_Maillist'  => $ea_select_users_SCL_Maillist, 
    379                                 'autosearch'                            => $this->current_config['users_auto_search'], 
    380                                 'minNum'                                        => ($this->current_config['min_num_characters'] == "") ? 0:$this->current_config['min_num_characters'] 
     376                                'ea_select_users_SCL_Maillist'  => $ea_select_users_SCL_Maillist 
    381377                        ); 
    382378                        $p->set_var($var); 
Note: See TracChangeset for help on using the changeset viewer.