Ignore:
Timestamp:
02/03/11 17:13:42 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1523 - Criado o layout do Expresso Mini para navegadores desktop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/login.php

    r3571 r3731  
    4444        if(trim($cd) != "") 
    4545                $tmpl->parse('message_box', (($_GET['cd'] == 1) ? 'success_message' : 'error_message') ,true); 
    46          
    47         $tmpl->set_var('css',CreateObject("mobile.mobiletemplate")->get_mobile_css()); 
    4846 
    4947        function check_logoutcode($code) { 
     
    102100                        $GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'] .$GLOBALS['phpgw_info']['flags']['currentdir'].'/login.php?cd=' . $GLOBALS['phpgw']->session->cd_reason); 
    103101                } 
    104                 else{ 
     102                else { 
     103                        if(isset($_POST['max_resolution']) && $_POST['max_resolution'] > 600) { 
     104                                $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 'mobilemail'; 
     105                                $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile','mini_desktop'); 
     106                        } else { 
     107                                $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile','mini_mobile'); 
     108                        } 
     109                         
    105110                        start_prefered_app(); 
    106111                } 
Note: See TracChangeset for help on using the changeset viewer.