Ignore:
Timestamp:
09/05/11 19:10:51 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2260 - Sincronismo do branch2.2(versão 2.2.8) para 2.4 ajustes

File:
1 edited

Legend:

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

    r5037 r5043  
    2222                                document.getElementById("max_resolution").value = ((screen.width >= screen.height) ? screen.width : screen.height); 
    2323 
    24                                 verifyBrowser( form ); 
    25                                  
    2624                                return true; 
    2725                        } 
    2826 
    29                         function verifyBrowser(form) 
     27                        function messageHidden(Element) 
    3028                        { 
    31                                 if('{os_browser}' != false){ 
    32                                         if(window.confirm("Você está acessando de um {os_browser}. Deseja salvar usuário e senha neste dispositivo?")) { 
    33                                                 form.save_login.value = 'yes'; 
    34                                         } 
    35                                 } 
     29                                var _div = document.getElementById(Element); 
     30                                 
     31                                setTimeout(function() 
     32                                { 
     33                                        _div.style.display = "none"; 
     34                                         
     35                                }, 10000 ); 
    3636                        } 
    3737 
    3838                </script> 
    3939        </head> 
    40  
    41         <body> 
    42                 <div class="topo"> 
    43                 <h1>{website_title} - {lang_login}</h1> 
     40        <body style="background:url(templates/default/images/back_pagina.jpg) repeat-x #fff;"> 
     41                <div id="divSuperior"> 
     42                        <div style="height: 20px; font-size:small;"> 
     43                                {message_box} 
     44                        </div> 
     45                        <div > 
     46                                <form name="form_login" method="post" action="./login.php" id="login_form" autocomplete=off onSubmit="return validate_login(this);"> 
     47                                        <input type="hidden" name="max_resolution" id="max_resolution" value=""> 
     48                                        <input type="hidden" name="passwd_type" value="text"> 
     49                                        <input type="hidden" name="account type" value="u"> 
     50                                        <!-- input type="hidden" name="save_login" value="no" --> 
     51                                        <label>{lang_username}:</label><br/> 
     52                                        <input id="login" name="login"/><br/> 
     53                                        <label>{lang_password}:</label><br/> 
     54                                        <input id="passwd" name="passwd" type="password" autocomplete=off/><br/> 
     55                                        <input type="checkbox" name="save_login"/> 
     56                                        <label style="color:#909090;">Mantenha-me conectado</label> 
     57                                        <div style="margin-top:20px;"> 
     58                                                <button id="formButton" name="submitit" style="margin-top:5px" type="submit">{lang_login}</button> 
     59                                        </div> 
     60                                </form> 
     61                        </div> 
     62                        <div class="rodape" style="float:left; margin-top: 10px;"> 
     63                                <a href="{url_expresso}login.php?dont_redirect_if_moble=1">Versão Clássica</a> 
     64                        </div> 
    4465                </div> 
    45  
    46                 {message_box} 
     66                  
     67                <div id="divInferior"> 
     68                        &nbsp; 
     69                </div> 
    4770                 
    48                 <form name="form_login" method="post" action="./login.php" id="login_form" autocomplete=off onSubmit="return validate_login(this);"> 
    49                         <input type="hidden" name="max_resolution" id="max_resolution" value=""> 
    50                         <input type="hidden" name="passwd_type" value="text"> 
    51                         <input type="hidden" name="account type" value="u"> 
    52                         <input type="hidden" name="save_login" value="no"> 
    53                         <dt id="lista_miolo"> 
    54                                 <div class="login"> 
    55                                         <strong>{lang_username}:</strong><br/> 
    56                                         <input name="login" id="login"/><br/> 
    57                                         <strong>{lang_password}:</strong><br/> 
    58                                         <input name="passwd" type="password" autocomplete=off/><br/> 
    59                                         <button name="submitit" class="btn-contexto" style="margin-top:5px" type="submit">{lang_login}</button> 
    60                                 </div> 
    61                         </dt> 
    62                          
    63                 </form> 
    64  
    65                 <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licen&ccedil;a de Software</div> 
    66                 <div class="rodape center"><a href="/login.php?dont_redirect_if_moble=1">Versão Clássica</a></div> 
    6771        </body> 
    6872</html> 
    69  
    7073<script type="text/javascript"> 
    7174        document.getElementById('login').focus(); 
    7275</script> 
     76<!-- END page --> 
    7377 
    74 <!-- END page --> 
    7578<!-- BEGIN success_message --> 
    76 <div class="bg-neutro"> 
    77         <div class="aviso-positivo"> 
    78                 <strong>{message}</strong> 
    79         </div> 
     79<div id="success_message"> 
     80        <label style="color:red;">{message}</label> 
     81        <script>messageHidden("success_message");</script> 
    8082</div> 
    8183<!-- END success_message --> 
     84 
    8285<!-- BEGIN error_message --> 
    83 <div class="bg-neutro"> 
    84         <div class="aviso-negativo"> 
    85                 <strong>{message}</strong> 
    86         </div> 
     86<div id="error_message"> 
     87        <label style="color:red;">{message}</label> 
     88        <script>messageHidden("error_message");</script> 
    8789</div> 
    8890<!-- END error_message --> 
Note: See TracChangeset for help on using the changeset viewer.