Ignore:
Timestamp:
09/21/10 13:08:48 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1313 - Exibir celular no módulo Mobile - agora é opcional

Location:
branches/2.2/mobile/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc

    • Property svn:ignore set to
      .class.ui_mobilecc.inc.php.swp
  • branches/2.2/mobile/inc/class.ui_mobilecc.inc.php

    r1499 r3268  
    163163                        else { //Só pego os dados completos caso haja resultado na busca 
    164164                                if($this->page_info['actual_catalog']!="bo_group_manager") { //Se não for grupo, tenho que ordenar as connections 
    165                                         $entries = $this->bo->get_multiple_entries($ids,array("names_ordered"=>true,"uidnumber"=>true,"id_contact"=>true,"connections"=>true)); 
     165 
     166                                    $display = "none"; 
     167                                    if(isset($GLOBALS['phpgw_info']['user']['preferences']['contactcenter']['cell']) && $GLOBALS['phpgw_info']['user']['preferences']['contactcenter']['cell'] == 1) 
     168                                    { 
     169                                        $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['cellShow'] = true; 
     170                                        $display = "inline"; 
     171                                        $entries = $this->bo->get_multiple_entries($ids,array("names_ordered"=>true,"uidnumber"=>true,"id_contact"=>true,"companies"=>true,"connections"=>true)); 
     172                                    }else { 
     173                                        $entries = $this->bo->get_multiple_entries($ids,array("names_ordered"=>true,"uidnumber"=>true,"id_contact"=>true,"connections"=>true)); 
     174                                    } 
    166175                                        /** 
    167176                                         * As entradas vindas de get_multiple_entries não vem com as connections 
     
    302311                                if($this->page_info['actual_catalog']!="bo_group_manager") { 
    303312                                        $p->set_var( 
    304                                                         array('lang_people_name' => lang("Name"), 
    305                                                                 'lang_phone' => lang("Phone"), 
    306                                                                 'lang_mail' => lang("Email"))); 
     313                                                        array('lang_people_name'        => lang("Name"), 
     314                                                                'lang_phone'            => lang("Phone"), 
     315                                                                'lang_mobile'           => "Celular", //lang("Mobile"), 
     316                                                                'display'               => $display, 
     317                                                                'lang_mail'             => lang("Email"))); 
    307318                                        $p->parse('header','people_header',True); 
    308319                                } 
     
    320331                                        if(($this->page_info['actual_catalog']!="bo_group_manager") && 
    321332                                                         (strpos($this->page_info['actual_catalog'],'bo_global_ldap_catalog')===false)){ //People 
    322                                                 $var = array('row_nome'=>$entry['names_ordered']); 
     333                                                $var = array( 
     334                                                                'row_nome'      => $entry['names_ordered'], 
     335                                                                'row_mobile'    => $entry['companies']['company1']['celPhone'] 
     336                                                        ); 
    323337                                                $conn1 = array_shift($entry['connections']); 
    324338                                                if(($conn1==NULL)||($conn1['connection_is_default']!=1)) { 
     
    352366                                        } 
    353367                                        else { //Ldap 
    354                                                 $var = array('row_nome'=>$entry['names_ordered'][0]); 
     368                                                $var = array('row_nome'=>$entry['names_ordered'][0],'row_mobile'=> $entry['companies']['company1']['celPhone']); 
    355369                                                $conn1 = array_shift($entry['connections']); 
    356370                                                if(($conn1==NULL)) { 
Note: See TracChangeset for help on using the changeset viewer.