Changeset 4120 for branches/2.2/mobile/templates/default/login.tpl
- Timestamp:
- 04/20/11 17:49:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/templates/default/login.tpl
r4031 r4120 8 8 <meta name="format-detection" content="telephone=no" /> 9 9 <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" /> 11 16 <script type="text/javascript"> 12 17 13 function validate_login() { 18 function validate_login(form) 19 { 14 20 document.getElementById("max_resolution").value = ((screen.width >= screen.height) ? screen.width : screen.height); 21 22 verifyBrowser( form ); 15 23 16 24 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 } 17 34 } 18 35 … … 27 44 {message_box} 28 45 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);"> 30 47 <input type="hidden" name="max_resolution" id="max_resolution" value=""> 31 48 <input type="hidden" name="passwd_type" value="text"> 32 49 <input type="hidden" name="account type" value="u"> 50 <input type="hidden" name="save_login" value="no"> 33 51 <dt id="lista_miolo"> 34 52 <div class="login"> … … 40 58 </div> 41 59 </dt> 60 42 61 </form> 43 62
Note: See TracChangeset
for help on using the changeset viewer.