Changeset 4120 for branches/2.2/mobile
- Timestamp:
- 04/20/11 17:49:20 (13 years ago)
- Location:
- branches/2.2/mobile
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/index.php
r3969 r4120 50 50 } 51 51 52 52 53 53 $GLOBALS['phpgw_info']['flags'] = array( 54 54 'noheader' => True, … … 60 60 include('../header.inc.php'); 61 61 include('./mobile_header.inc.php'); 62 62 63 63 if($mobileapp == 'home') 64 64 { 65 65 start_prefered_app(); 66 66 } 67 67 68 68 $GLOBALS[$class] = CreateObject(sprintf('%s.%s','mobile',$class)); 69 69 $public_functions = $GLOBALS[$class]->public_functions; 70 70 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); 74 74 unset($mobileapp); 75 75 unset($class); … … 108 108 { 109 109 $GLOBALS['phpgw']->log->commit(); 110 } 110 } 111 111 start_prefered_app(); 112 112 } -
branches/2.2/mobile/templates/default/home_index.tpl
r3990 r4120 1 1 <!-- 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" /> 3 12 <script type="text/javascript"> 4 13 … … 66 75 </dl> 67 76 </form> 68 77 </body> 78 </html> 69 79 <!-- END page --> 70 80 <!-- BEGIN folder_block --> -
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.