Ignore:
Timestamp:
10/20/09 10:56:43 (15 years ago)
Author:
eduardoalex
Message:

Ticket #684 - Implementada a aba corporativa com a opção genérica no admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.ui_data.inc.php

    r1496 r1517  
    212212                        $GLOBALS['phpgw']->template->set_var('cc_msg_home', lang('Home')); 
    213213                        $GLOBALS['phpgw']->template->set_var('cc_msg_cellphone', lang('Cellphone')); 
     214                        $GLOBALS['phpgw']->template->set_var('cc_msg_corporative_cellphone', lang('Corporative Cellphone')); 
     215                        $GLOBALS['phpgw']->template->set_var('cc_msg_corporative_fax', lang('Corporative Fax')); 
     216                        $GLOBALS['phpgw']->template->set_var('cc_msg_corporative_pager', lang('Corporative Pager'));                     
    214217                        $GLOBALS['phpgw']->template->set_var('cc_msg_work', lang('Work')); 
    215218                        $GLOBALS['phpgw']->template->set_var('cc_msg_fax', lang('Fax')); 
     
    232235                        $GLOBALS['phpgw']->template->set_var('cc_msg_fill_field_name', lang('Fill the field Full Name')); 
    233236                         
     237                        if($GLOBALS['phpgw_info']['server']['personal_contact_type']=='True'){ 
     238                                $GLOBALS['phpgw']->template->set_var('cc_contact_type', 'advanced'); 
     239                        }else{ 
     240                                $GLOBALS['phpgw']->template->set_var('cc_contact_type', 'default'); 
     241                        } 
    234242                        $GLOBALS['phpgw']->template->parse('out','index'); 
    235243                         
     
    14851493                                } 
    14861494                        } 
    1487 //                      print_r($data); 
    1488  
     1495                         
     1496                        /*Corporative*/ 
     1497                        $data['personal']['cc_name_corporate'] = $entry['corporate_name']; 
     1498                        $data['personal']['cc_job_title'] = $entry['job_title']; 
     1499                        $data['personal']['cc_department'] = $entry['department']; 
     1500                        $data['personal']['cc_name_corporate'] = $entry['corporate_name']; 
     1501                        $data['personal']['cc_web_page'] = $entry['web_page']; 
     1502                         
     1503                         
    14891504                        /* Relations */ 
    14901505                         
     
    19001915                                switch($field) 
    19011916                                { 
     1917                                        case 'corporate_name': 
     1918                                        case 'job_title': 
     1919                                        case 'department': 
     1920                                        case 'web_page': 
    19021921                                        case 'alias': 
    19031922                                        case 'given_names': 
Note: See TracChangeset for help on using the changeset viewer.