Changeset 4380 for trunk/contactcenter
- Timestamp:
- 05/12/11 16:19:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.ui_data.inc.php
r4377 r4380 3583 3583 if(!count($contacts)) 3584 3584 echo null; 3585 3585 3586 3586 switch($typeExport) { 3587 3587 … … 3819 3819 3820 3820 case 'expresso': 3821 3822 3823 3824 3821 $streamBuffer = 'Nome,Apelido,E-mail Principal,E-mail Alternativo,Celular,' 3822 . 'Telefone Comercial,Endereço Comercial,Complemento End. Comercial,CEP Comercial,Cidade End. Comercial,Estado End. Comercial,País End. Comercial,' 3823 . 'Telefone Residencial,Endereço Residencial,Complemento End. Residencial,CEP Residencial,Cidade End. Residencial,Estado End. Residencial,País End. Residencial,' 3824 . 'Aniversário,Sexo,Assinatura GPG,Notas,Página Web,Empresa,Cargo,Departamento,Fax Comercial,Pager Comercial,Celular Comercial,Fax,Pager,Endereço Comercial 2,Endereço Residencial 2' 3825 3825 . "\r\n"; 3826 3826 3827 foreach($contacts as $index => $object){ 3828 $streamBuffer .= "\"".$object[ 'names_ordered'] . "\"," 3829 . "\"".$object[ 'alias' ] . "\"," 3830 . "\"".$object[ 'main-mail' ] . "\"," 3831 . "\"".$object[ 'alternative-mail' ] . "\"," 3832 . "\"".$object[ 'mobile' ] . "\"," 3833 . "\"".$object[ 'business-phone' ] . "\"," 3834 . "\"".$object[ 'business-address' ] . "\"," 3835 . "\"".$object[ 'business-complement' ] . "\"," 3836 . "\"".$object[ 'business-postal_code' ] . "\"," 3837 . "\"".$object[ 'business-city_name' ] . "\"," 3838 . "\"".$object[ 'business-state_name' ] . "\"," 3839 . "\"".$object[ 'business-id_country' ] . "\"," 3840 . "\"".$object[ 'home-phone' ] . "\"," 3841 . "\"".$object[ 'home-address' ] . "\"," 3842 . "\"".$object[ 'home-complement' ] . "\"," 3843 . "\"".$object[ 'home-postal_code' ] . "\"," 3844 . "\"".$object[ 'home-city_name' ] . "\"," 3845 . "\"".$object[ 'home-state_name' ] . "\"," 3846 . "\"".$object[ 'home-id_country' ] . "\"," 3847 . "\"".$object[ 'birthdate' ] . "\"," 3848 . "\"".$object[ 'sex' ] . "\"," 3849 . "\"".$object[ 'pgp_key' ] . "\"," 3850 . "\"".str_replace("\r\n\x0a","\t",$object[ 'notes' ]) . "\"," 3851 . "\"".$object[ 'web_page' ] . "\"," 3852 . "\"".$object[ 'corporate_name' ] . "\"," 3853 . "\"".$object[ 'job_title' ] . "\"," 3854 . "\"".$object[ 'department' ] . "\"," 3855 . "\"".$object[ 'business-fax' ] . "\"," 3856 . "\"".$object[ 'business-pager' ] . "\"," 3857 . "\"".$object[ 'business-mobile' ] . "\"," 3858 . "\"".$object[ 'home-fax' ] . "\"," 3859 . "\"".$object[ 'home-pager' ] . "\"," 3860 . "\"".$object[ 'business-address-2' ] . "\"," 3861 . "\"".$object[ 'home-address-2' ] . "\"\r\n"; 3862 } 3827 foreach($contacts as $index => $object) 3828 { 3829 if( array_key_exists("phone", $object) ) 3830 $phone = $object['phone']; 3831 else 3832 $phone = $object['business-phone']; 3833 3834 $streamBuffer .= "\"".$object[ 'names_ordered'] . "\"," 3835 . "\"".$object[ 'alias' ] . "\"," 3836 . "\"".$object[ 'main-mail' ] . "\"," 3837 . "\"".$object[ 'alternative-mail' ] . "\"," 3838 . "\"".$object[ 'mobile' ] . "\"," 3839 . "\"".$phone . "\"," 3840 . "\"".$object[ 'business-address' ] . "\"," 3841 . "\"".$object[ 'business-complement' ] . "\"," 3842 . "\"".$object[ 'business-postal_code' ] . "\"," 3843 . "\"".$object[ 'business-city_name' ] . "\"," 3844 . "\"".$object[ 'business-state_name' ] . "\"," 3845 . "\"".$object[ 'business-id_country' ] . "\"," 3846 . "\"".$object[ 'home-phone' ] . "\"," 3847 . "\"".$object[ 'home-address' ] . "\"," 3848 . "\"".$object[ 'home-complement' ] . "\"," 3849 . "\"".$object[ 'home-postal_code' ] . "\"," 3850 . "\"".$object[ 'home-city_name' ] . "\"," 3851 . "\"".$object[ 'home-state_name' ] . "\"," 3852 . "\"".$object[ 'home-id_country' ] . "\"," 3853 . "\"".$object[ 'birthdate' ] . "\"," 3854 . "\"".$object[ 'sex' ] . "\"," 3855 . "\"".$object[ 'pgp_key' ] . "\"," 3856 . "\"".str_replace("\r\n\x0a","\t",$object[ 'notes' ]) . "\"," 3857 . "\"".$object[ 'web_page' ] . "\"," 3858 . "\"".$object[ 'corporate_name' ] . "\"," 3859 . "\"".$object[ 'job_title' ] . "\"," 3860 . "\"".$object[ 'department' ] . "\"," 3861 . "\"".$object[ 'business-fax' ] . "\"," 3862 . "\"".$object[ 'business-pager' ] . "\"," 3863 . "\"".$object[ 'business-mobile' ] . "\"," 3864 . "\"".$object[ 'home-fax' ] . "\"," 3865 . "\"".$object[ 'home-pager' ] . "\"," 3866 . "\"".$object[ 'business-address-2' ] . "\"," 3867 . "\"".$object[ 'home-address-2' ] . "\"\r\n"; 3868 3869 } 3863 3870 break; 3864 3871 … … 4071 4078 case 'Telefone principal': 4072 4079 case 'Telefone comercial': 4080 case 'Telefone Comercial': 4073 4081 $phone_pos = $index; 4074 4082 break;
Note: See TracChangeset
for help on using the changeset viewer.