Changeset 2604 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 04/20/10 11:59:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.uiaccounts.inc.php
r2549 r2604 47 47 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 48 48 } 49 $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 49 $GLOBALS['phpgw']->js->validate_file('jscode','globals','expressoAdmin1_2'); 50 $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2'); 50 51 $GLOBALS['phpgw']->js->validate_file('jscode','expressoadmin','expressoAdmin1_2'); 51 52 $GLOBALS['phpgw']->js->validate_file('jscode','tabs','expressoAdmin1_2'); … … 231 232 function add_users() 232 233 { 233 $GLOBALS['phpgw']->js->validate_file('jscode','users','expressoAdmin1_2');234 235 $GLOBALS['phpgw']->js->set_onload('get_available_groups(document.forms[0].context.value);');236 $GLOBALS['phpgw']->js->set_onload('get_available_maillists(document.forms[0].context.value);');237 $GLOBALS['phpgw']->js->set_onload('get_associated_domain(document.forms[0].context.value);');238 if ($this->current_config['expressoAdmin_samba_support'] == 'true')239 $GLOBALS['phpgw']->js->set_onload('get_available_sambadomains(document.forms[0].context.value, \'create_user\');');240 241 234 $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 242 235 $acl = $this->functions->read_acl($manager_lid); … … 257 250 258 251 // Seta template 259 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript');252 //$GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 260 253 $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 261 254 $t->set_file(array("body" => "accounts_form.tpl")); … … 355 348 $t->set_var($this->functions->make_dinamic_lang($t, 'main')); 356 349 $t->pfp('out','main'); 350 351 $script = '<script>'; 352 $script .= 'get_available_groups(document.forms[0].context.value);'; 353 $script .= 'get_available_maillists(document.forms[0].context.value);'; 354 $script .= 'get_associated_domain(document.forms[0].context.value);'; 355 if ($this->current_config['expressoAdmin_samba_support'] == 'true') 356 $script .= 'get_available_sambadomains(document.forms[0].context.value, \'create_user\');'; 357 $script .= '</script>'; 358 359 echo $script; 360 357 361 } 358 362 … … 465 469 } 466 470 // JavaScript 467 $GLOBALS['phpgw']->js->validate_file("jscode","users","expressoAdmin1_2");468 471 $GLOBALS['phpgw']->js->set_onload("get_available_groups(document.forms[0].context.value);"); 469 472 $GLOBALS['phpgw']->js->set_onload("get_available_maillists(document.forms[0].context.value);");
Note: See TracChangeset
for help on using the changeset viewer.