Ignore:
Timestamp:
02/01/11 14:29:20 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1523 - Alterando estrutura do mobile para disponibilizar a versão desktop

File:
1 edited

Legend:

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

    r3706 r3727  
    99                var $public_functions = array( 
    1010                        'index' => true, 
    11                         'search' => true 
     11                        'search' => true, 
     12                        'change_template' => true 
    1213                ); 
    1314                 
     
    1819                        $this->db       = CreateObject('phpgwapi.db'); 
    1920                        $this->bocalendar = CreateObject('calendar.bocalendar'); 
     21                } 
     22                 
     23                function change_template($params) { 
     24                         
     25                        $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile',$params['template']); 
     26                        header("location: index.php"); 
    2027                } 
    2128                 
     
    98105                        $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 
    99106                        $GLOBALS['phpgw_info']['mobiletemplate']->set_success_msg($params["success_message"]); 
    100                         $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 
     107                        if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini") 
     108                                $GLOBALS['phpgw_info']['mobiletemplate']->set_home($this->template->fp('out', 'page')); 
     109                        else 
     110                                $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 
     111 
    101112                } 
    102113                 
Note: See TracChangeset for help on using the changeset viewer.