Ignore:
Timestamp:
06/21/07 08:32:34 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r32 r33  
    178178                function add_users() 
    179179                { 
    180                         $GLOBALS['phpgw']->js->validate_file('jscode','users','expressoAdmin1_2');                       
    181                         //$GLOBALS['phpgw']->js->set_onload('get_sectors(document.forms[0].context.value);'); 
     180                        $GLOBALS['phpgw']->js->validate_file('jscode','users','expressoAdmin1_2'); 
    182181                        $GLOBALS['phpgw']->js->set_onload('get_available_groups(document.forms[0].context.value);'); 
    183182                        $GLOBALS['phpgw']->js->set_onload('get_available_maillists(document.forms[0].context.value);'); 
    184                          
     183                        if ($this->current_config['expressoAdmin_samba_support'] == 'true') 
     184                                $GLOBALS['phpgw']->js->set_onload('get_available_sambadomains(document.forms[0].context.value, \'create_user\');'); 
     185 
    185186                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    186187                        $tmp = $this->functions->read_acl($manager_lid); 
     
    220221                                        foreach ($a_sambadomains as $a_sambadomain) 
    221222                                        { 
    222                                                 $sambadomainname_options .= "<option value='" . $a_sambadomain['samba_domain_sid'] . "'>" . $a_sambadomain['samba_domain_name'] . "</option>"; 
     223                                                // So mostra os sambaDomainName do contexto do manager 
     224                                                if ($this->ldap_functions->exist_sambadomains($manager_context, $a_sambadomain['samba_domain_name'])) 
     225                                                        $sambadomainname_options .= "<option value='" . $a_sambadomain['samba_domain_sid'] . "'>" . $a_sambadomain['samba_domain_name'] . "</option>"; 
    223226                                        } 
    224227                                } 
     
    234237                                'back_url'                              => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uiaccounts.list_users'), 
    235238                                'display_samba_suport'  => $this->current_config['expressoAdmin_samba_support'] == 'true' ? '' : 'display:none', 
     239                                'disabled_access_button'=> 'disabled', 
    236240                                 
    237241                                // First ABA 
Note: See TracChangeset for help on using the changeset viewer.