Changeset 3268 for branches/2.2/mobile


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
Files:
5 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)) { 
  • branches/2.2/mobile/index.php

    r1851 r3268  
    44        $phpgw_info = array(); 
    55        $GLOBALS['sessionid'] = isset($_GET['sessionid']) ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 
    6  
    7         $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['cellShow'] = true; 
    86 
    97        $proxies=explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); 
  • branches/2.2/mobile/templates/default

    • Property svn:ignore set to
      .cc_main.tpl.swp
  • branches/2.2/mobile/templates/default/cc_main.tpl

    r1499 r3268  
    3737 
    3838<!-- BEGIN people_header --> 
    39                                 <td width="60%" align="center">{lang_people_name}</td> 
     39                                <td width="40%" align="center">{lang_people_name}</td> 
    4040                                <td width="20%" align="center">{lang_phone}</td> 
     41                                <td width="20%" align="center" style="display: {display};">{lang_mobile}</td> 
    4142                                <td width="20%" align="center">{lang_mail}</td> 
    4243<!-- END people_header --> 
     
    5253                <td>{row_nome}</td> 
    5354                <td align="center">{row_telefone}</td> 
     55                <td align="center" style="display: {display};">{row_mobile}</td> 
    5456                <td align="center"><a href="{form_action}&input_to={row_nome}&input_to_mail={row_email}&cc_mob=1">{row_email}</a></td> 
    5557 
Note: See TracChangeset for help on using the changeset viewer.