Changeset 5133 for trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php
- Timestamp:
- 11/03/11 13:24:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php
r4280 r5133 39 39 } 40 40 $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 41 $GLOBALS['phpgw']->js->validate_file('jscode','finder','expressoAdmin1_2'); 41 42 $GLOBALS['phpgw']->js->validate_file('jscode','expressoadmin','expressoAdmin1_2'); 42 43 $GLOBALS['phpgw']->js->validate_file('jscode','maillists','expressoAdmin1_2'); … … 166 167 function add_maillists() 167 168 { 168 if($this->current_config['users_auto_search'] == "true"){169 169 $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 170 } 170 171 171 $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 172 172 $manager_acl = $this->functions->read_acl($manager_lid); … … 206 206 'combo_manager_org' => $combo_manager_org, 207 207 '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'] 211 209 ); 212 210 $p->set_var($var); … … 263 261 if ($array_users_type[$mail] == 'u') 264 262 { 265 $users .= "<option value=" . $mail . ">" . $cn . " [" . $array_users_uid[$mail] . "]</option>";263 $users .= "<option value=" . $mail . ">" . utf8_decode($cn) . " (" . $array_users_uid[$mail] . ")</option>"; 266 264 } 267 265 elseif ($array_users_type[$mail] == 'l') 268 266 { 269 $lists .= "<option value=" . $mail . ">" . $cn . " [" . $array_users_uid[$mail] . "]</option>";267 $lists .= "<option value=" . $mail . ">" . utf8_decode($cn) . " (" . $array_users_uid[$mail] . ")</option>"; 270 268 } 271 269 else 272 270 { 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>"; 274 272 } 275 273 } … … 307 305 'phpgwAccountVisible_checked' => $maillist_info['phpgwAccountVisible'] == '-1' ? 'CHECKED' : '', 308 306 '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'] 312 308 ); 313 309 $p->set_var($var); … … 345 341 346 342 // 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'])) ); 348 346 349 347 // Usuarios de senders. … … 376 374 'accountRestrictive_checked' => $maillist_info['accountRestrictive'] == 'mailListRestriction' ? 'CHECKED' : '', 377 375 '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 381 377 ); 382 378 $p->set_var($var);
Note: See TracChangeset
for help on using the changeset viewer.