Ignore:
Timestamp:
04/25/11 16:02:34 (13 years ago)
Author:
niltonneto
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/templates/default/login.tpl

    r4031 r4130  
    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.