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

Ticket #1475 - Barra em arquivo de template único

Location:
branches/2.2/mobile/inc
Files:
4 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                       
  • branches/2.2/mobile/inc/class.ui_mobilecalendar.inc.php

    r3599 r3641  
    2626                 
    2727                function index($params) { 
    28                         $this->template->set_file(array('calendar' => 'calendar.tpl')); 
     28                        $this->template->set_file( 
     29                                                                        array( 
     30                                                                                'calendar' => 'calendar.tpl', 
     31                                                                                'home_search_bar' => 'search_bar.tpl' 
     32                                                                        ) 
     33                                                                ); 
    2934                        $this->template->set_block("calendar","page"); 
    3035                        $this->template->set_block('calendar','event_block'); 
     
    3338                        $this->template->set_block('calendar','type_option_block'); 
    3439                        $this->template->set_block('calendar','bar_block'); 
     40                        $this->template->set_block('home_search_bar','search_bar'); 
    3541                        $this->template->set_var('lang_back',lang("back")); 
    3642                        $this->template->set_var('lang_calendar',lang("Calendar")); 
    3743                        $this->template->set_var('lang_search',lang("search")); 
     44                         
     45                        $this->template->set_var('search',$this->template->fp('out','search_bar')); 
    3846                         
    3947                        if(!function_exists("get_events")){ 
  • branches/2.2/mobile/inc/class.ui_mobilecc.inc.php

    r3634 r3641  
    123123                        $this->template->set_file( 
    124124                                Array( 
    125                                         'contacts_list' => 'cc_main.tpl' 
     125                                        'contacts_list' => 'cc_main.tpl', 
     126                                        'home_search_bar' => 'search_bar.tpl' 
    126127                                ) 
    127128                        ); 
     
    129130                        $this->template->set_block("contacts_list","main_body"); 
    130131                        $this->template->set_block("contacts_list","pagging_block"); 
     132                        $this->template->set_block('home_search_bar','search_bar'); 
    131133 
    132134                        //Langs gerais da página 
     
    142144                                                                                $this->page_info["request_from"]==null? 
    143145                                                                                "none":$this->page_info["request_from"]); 
     146                         
     147                        $this->template->set_var('search',$this->template->fp('out','search_bar')); 
    144148                         
    145149                        //Combo de catálogos 
  • branches/2.2/mobile/inc/class.ui_mobilemail.inc.php

    r3609 r3641  
    422422                        $p->set_file( 
    423423                                Array( 
    424                                         'mail_t' => 'mobilemail.tpl' 
     424                                        'mail_t' => 'mobilemail.tpl', 
     425                                        'home_search_bar' => 'search_bar.tpl' 
    425426                                ) 
    426427                        ); 
     428 
     429                        $p->set_block('home_search_bar','search_bar'); 
     430 
    427431                        $p->set_var("page",$this->current_page+1); 
    428432                        $p->set_var("lang_new_message",lang("new message")); 
     
    433437                        $p->set_var("lang_back",lang("back")); 
    434438                        $p->set_var("lang_new_message",lang("new message")); 
    435                         $p->set_var("lang_search_message",lang("search")); 
     439                        $p->set_var('lang_search',lang('search')); 
    436440                        $p->set_var("lang_more",lang("more")); 
    437441                        $p->set_var("lang_messages",lang("messages")); 
     442                        $p->set_var('search',$p->fp('out','search_bar')); 
    438443                         
    439444                        $max_per_page =  
Note: See TracChangeset for help on using the changeset viewer.