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/templates/default/login.tpl

    r3714 r3731  
    77                <meta content="text/html;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; charset=utf-8;" http-equiv="Content-Type" name="viewport" />  
    88                <meta name="format-detection" content="telephone=no" /> 
    9                 {css} 
     9                <link href="templates/css/mobile.css" type="text/css" rel="StyleSheet" /> 
     10 
     11                <script type="text/javascript"> 
     12 
     13                        function validate_login() { 
     14                                document.getElementById("max_resolution").value = ((screen.width >= screen.height) ? screen.width : screen.height); 
     15                                 
     16                                return true; 
     17                        } 
     18 
     19                </script> 
    1020        </head> 
    1121         
     
    1525                </div> 
    1626 
    17                 {message_box} 
     27                {message_box}            
    1828                 
    19                  
    20                 <form name="form_login" method="post" action="./login.php"> 
     29                <form name="form_login" method="post" action="./login.php" id="login_form" onSubmit="return validate_login()"> 
     30                        <input type="hidden" name="max_resolution" id="max_resolution" value=""> 
    2131                        <input type="hidden" name="passwd_type" value="text"> 
    2232                        <input type="hidden" name="account type" value="u"> 
     
    2434                                <div class="login"> 
    2535                                        <strong>{lang_username}:</strong><br/> 
    26                                         <input name="login"/><br/> 
    27                                         <script>document.form_login.login.focus();</script> 
     36                                        <input name="login" id="login"/><br/> 
    2837                                        <strong>{lang_password}:</strong><br/> 
    2938                                        <input name="passwd" type="password" autocomplete=off/><br/> 
    30                                         <button name="submitit" class="btn-contexto" style="margin-top:5px">{lang_login}</button> 
    31                                 </div>                           
     39                                        <button name="submitit" class="btn-contexto" style="margin-top:5px" type="submit">{lang_login}</button> 
     40                                </div> 
    3241                        </dt> 
    3342                </form> 
    34          
     43 
    3544                <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licen&ccedil;a de Software</div> 
    3645        </body> 
    3746</html> 
     47 
     48<script type="text/javascript"> 
     49        document.getElementById('login').focus(); 
     50</script> 
     51 
    3852<!-- END page --> 
    3953<!-- BEGIN success_message --> 
Note: See TracChangeset for help on using the changeset viewer.