- Timestamp:
- 08/22/11 10:47:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.ldap_functions.inc.php
r4950 r4973 331 331 332 332 $phoneUser = $contacts_result['phone']; 333 334 if($ _SESSION['phpgw_info']['user']['preferences']['expressoMail']['voip_enabled'] && $phoneUser){335 $phoneUser = '<a title="'.$this->functions->getLang("Call to Comercial Number").'" href="#" onclick="InfoContact.connectVoip(\''.$phoneUser.'\',\'com\')">'.$phoneUser.'</a>';336 if($contacts_result['mobile']){337 $phoneUser .= ' / <a title="'.$this->functions->getLang("Call to Mobile Number").'" href="#" onclick="InfoContact.connectVoip(\''.$contacts_result['mobile'].'\',\'mob\')">'.$contacts_result['mobile'].'</a>';338 }339 }340 //verifica de existe o celular do funcionario ($contacts_result["mobile"]), se nao, $phoneUser fica vazia;341 342 $mobileUser = $contacts_result["mobile"];343 if($mobileUser && !$voipMobile) {344 $phoneUser .= " / $mobileUser";345 } 346 347 348 349 350 351 352 353 333 $mobileUser = $contacts_result["mobile"]; 334 if($mobileUser){ 335 $phoneUser .= " / $mobileUser"; 336 } 337 338 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['voip_enabled']) { 339 $phoneUser = $contacts_result['phone']; 340 if($phoneUser) 341 $phoneUser = '<a title="'.$this->functions->getLang("Call to Comercial Number").'" href="#" onclick="InfoContact.connectVoip(\''.$phoneUser.'\',\'com\')">'.$phoneUser.'</a>'; 342 if($mobileUser) 343 $phoneUser .= ' / <a title="'.$this->functions->getLang("Call to Mobile Number").'" href="#" onclick="InfoContact.connectVoip(\''.$mobileUser.'\',\'mob\')">'.$mobileUser.'</a>'; 344 } 345 346 $empNumber = $contacts_result["employeenumber"]; 347 if($empNumber) { 348 $empNumber = "$empNumber - "; 349 } 350 $ou = $contacts_result["ou"]; 351 if($ou) { 352 $ou = "<br/>$ou" ; 353 } 354 354 355 355 // Begin: nickname, firstname and lastname for QuickAdd.
Note: See TracChangeset
for help on using the changeset viewer.