Changeset 4120 for branches/2.2/mobile


Ignore:
Timestamp:
04/20/11 17:49:20 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1788 - Imagem corrigida para ser adicionado na tela de início dos dispositivos

Location:
branches/2.2/mobile
Files:
1 added
1 deleted
3 edited

Legend:

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

    r3969 r4120  
    5050        } 
    5151 
    52  
     52         
    5353        $GLOBALS['phpgw_info']['flags'] = array( 
    5454                'noheader'   => True, 
     
    6060        include('../header.inc.php'); 
    6161        include('./mobile_header.inc.php'); 
    62  
     62         
    6363        if($mobileapp == 'home') 
    6464        { 
    6565                start_prefered_app(); 
    6666        } 
    67  
     67         
    6868        $GLOBALS[$class] = CreateObject(sprintf('%s.%s','mobile',$class)); 
    6969        $public_functions = $GLOBALS[$class]->public_functions; 
    7070        if((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) 
    71         { 
    72                 $GLOBALS['phpgw_info']['mobiletemplate'] = CreateObject("mobile.mobiletemplate"); 
    73                 $GLOBALS['phpgw_info']['mobiletemplate'] -> print_page($class,$method); 
     71        {                                                
     72                $GLOBALS['phpgw_info']['mobiletemplate'] = CreateObject("mobile.mobiletemplate");                                        
     73                $GLOBALS['phpgw_info']['mobiletemplate'] -> print_page($class,$method);          
    7474                unset($mobileapp); 
    7575                unset($class); 
     
    108108                { 
    109109                        $GLOBALS['phpgw']->log->commit(); 
    110                 } 
     110                }                
    111111                start_prefered_app(); 
    112112        } 
  • branches/2.2/mobile/templates/default/home_index.tpl

    r3990 r4120  
    11<!-- BEGIN page --> 
    2  
     2<html> 
     3<head> 
     4<meta http-equiv="Content-Language" content="pt-BR" /> 
     5<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
     6<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> 
     7<link rel="apple-touch-icon-precomposed" href="./templates/default/images/favicon.png"/> 
     8<meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
     9<link rel="apple-touch-icon" href="./templates/default/images/favicon.png" /> 
     10<link rel="icon" href="./templates/default/images/favicon.png" type="image/x-ico" /> 
     11<meta name="apple-touch-fullscreen" content="YES" /> 
    312<script type="text/javascript"> 
    413 
     
    6675        </dl> 
    6776</form> 
    68  
     77</body> 
     78</html> 
    6979<!-- END page --> 
    7080<!-- BEGIN folder_block --> 
  • branches/2.2/mobile/templates/default/login.tpl

    r4031 r4120  
    88                <meta name="format-detection" content="telephone=no" /> 
    99                <link href="templates/css/mobile.css" type="text/css" rel="StyleSheet" /> 
    10  
     10                <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> 
     11                <link rel="apple-touch-icon" href="./templates/default/images/favicon.png" /> 
     12                <link rel="apple-touch-icon-precomposed" href="./templates/default/images/favicon.png"/> 
     13                <meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
     14                <link rel="icon" href="./templates/default/images/favicon.png" type="image/x-ico" /> 
     15                <meta name="apple-touch-fullscreen" content="YES" />  
    1116                <script type="text/javascript"> 
    1217 
    13                         function validate_login() { 
     18                        function validate_login(form) 
     19                        { 
    1420                                document.getElementById("max_resolution").value = ((screen.width >= screen.height) ? screen.width : screen.height); 
     21 
     22                                verifyBrowser( form ); 
    1523                                 
    1624                                return true; 
     25                        } 
     26 
     27                        function verifyBrowser(form) 
     28                        { 
     29                                if('{os_browser}' != false){ 
     30                                        if(window.confirm("Você está acessando de um {os_browser}. Deseja salvar usuário e senha neste dispositivo?")) { 
     31                                                form.save_login.value = 'yes'; 
     32                                        } 
     33                                } 
    1734                        } 
    1835 
     
    2744                {message_box}            
    2845                 
    29                 <form name="form_login" method="post" action="./login.php" id="login_form" onSubmit="return validate_login()"> 
     46                <form name="form_login" method="post" action="./login.php" id="login_form" autocomplete=off onSubmit="return validate_login(this);"> 
    3047                        <input type="hidden" name="max_resolution" id="max_resolution" value=""> 
    3148                        <input type="hidden" name="passwd_type" value="text"> 
    3249                        <input type="hidden" name="account type" value="u"> 
     50                        <input type="hidden" name="save_login" value="no"> 
    3351                        <dt id="lista_miolo"> 
    3452                                <div class="login"> 
     
    4058                                </div> 
    4159                        </dt> 
     60                         
    4261                </form> 
    4362 
Note: See TracChangeset for help on using the changeset viewer.