Ignore:
Timestamp:
12/29/10 09:49:47 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1475 - Barra em arquivo de template único

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.ui_home.inc.php

    r3600 r3641  
    2222                function index($params) { 
    2323                        $this->template->set_file(array('home_index' => 'home_index.tpl')); 
     24                        $this->template->set_file(array('home_search_bar' => 'search_bar.tpl')); 
     25                                         
    2426                        $this->template->set_block('home_index','page');         
    2527                        $this->template->set_block('home_index','folder_block'); 
    26                         $this->template->set_block('home_index','commitment_block'); 
     28                        $this->template->set_block('home_index','commitment_block');     
     29                        $this->template->set_block('home_search_bar','search_bar'); 
    2730                         
    2831                        //langs 
     
    3942                        $this->template->set_var('lang_selected', lang("selected")); 
    4043                         
     44                        $this->template->set_var('search',$this->template->fp('out','search_bar')); 
     45                         
    4146                        $accountId = $GLOBALS['phpgw_info']['user']['account_id']; 
    4247                         
     
    131136                        $ui_mobilemail = CreateObject("mobile.ui_mobilemail");//Necessário para lista de emails, que é uma função estática 
    132137 
    133                         $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
     138                        $p = $this->template; 
    134139                        $p->set_file( 
    135140                                Array( 
    136                                         'search' => 'home_search.tpl' 
     141                                        'search' => 'home_search.tpl', 
     142                                        'home_search_bar' => 'search_bar.tpl' 
    137143                                ) 
    138144                        ); 
     
    140146                        //Langs gerais da página 
    141147                        $p->set_block('search','home_search'); 
     148                        $p->set_block('home_search_bar','search_bar'); 
     149                         
    142150                        $p->set_var('search_param',$params['name']); 
    143151                        $p->set_var('lang_back',lang('back')); 
     
    164172                                                        isset($params["request_from"])? 
    165173                                                        $params["request_from"]:"none"); 
     174                         
     175                        $p->set_var('search',$p->fp('out','search_bar')); 
    166176                         
    167177                        //Contatos                       
Note: See TracChangeset for help on using the changeset viewer.