New: jQuery mobile is best and more compatible with different smartphone
This commit is contained in:
parent
924451f5f8
commit
ae88569c5a
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,27 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta content="yes" name="apple-mobile-web-app-capable" />
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
|
||||
<link href="css/style.css" rel="stylesheet" media="screen" type="text/css" />
|
||||
<script src="javascript/functions.js" type="text/javascript"></script>
|
||||
<title>Title of your page</title>
|
||||
<meta content="keyword1,keyword2,keyword3" name="keywords" />
|
||||
<meta content="Description of your page" name="description" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="topbar">
|
||||
</div>
|
||||
<div id="content">
|
||||
</div>
|
||||
<div id="footer">
|
||||
<!-- Support iWebKit by sending us traffic; please keep this footer on your page, consider it a thank you for our work :-) -->
|
||||
<a class="noeffect" href="http://iwebkit.net">Powered by iWebKit</a></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -1,29 +0,0 @@
|
||||
var iWebkit;
|
||||
|
||||
if (!iWebkit) {
|
||||
|
||||
iWebkit = window.onload = function () {
|
||||
function fullscreen() {
|
||||
var a = document.getElementsByTagName("a");
|
||||
for (var i = 0; i < a.length;i++) {
|
||||
if (a[i].className.match("noeffect")) {
|
||||
}
|
||||
else {
|
||||
a[i].onclick = function () {
|
||||
window.location = this.getAttribute("href");
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function hideURLbar() {
|
||||
window.scrollTo(0, 0.9);
|
||||
}
|
||||
iWebkit.init = function () {
|
||||
fullscreen();
|
||||
hideURLbar();
|
||||
};
|
||||
iWebkit.init();
|
||||
};
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
var iWebkit;if(!iWebkit){iWebkit=window.onload=function(){function fullscreen(){var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match("noeffect")){}else{a[i].onclick=function(){window.location=this.getAttribute("href");return false}}}}function hideURLbar(){window.scrollTo(0,0.9)}iWebkit.init=function(){fullscreen();hideURLbar()};iWebkit.init()}}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,44 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2009-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/phones/smartphone/theme/default/default.css.php
|
||||
* \brief Fichier de style CSS du theme Smartphone default
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // We need to use translation files to know direction
|
||||
if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
|
||||
|
||||
require_once("../../../../../master.inc.php");
|
||||
|
||||
// Define css type
|
||||
header('Content-type: text/css');
|
||||
// Important: Avoid page request by browser and dynamic build at
|
||||
// each Dolibarr page access.
|
||||
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
|
||||
else header('Cache-Control: no-cache');
|
||||
|
||||
?>
|
||||
|
||||
.ui-mobile #dol-homeheader { text-align: center }
|
||||
@ -32,20 +32,10 @@ header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<link rel="apple-touch-icon" href="<?php echo DOL_URL_ROOT.'/theme/phones/smartphone/theme/'.$this->theme.'/thumbs/homescreen.png'; ?>" />
|
||||
|
||||
<link rel="stylesheet" href="<?php echo DOL_URL_ROOT.'/includes/jquery/mobile/jquery.mobile-1.0a1.min.css'; ?>" />
|
||||
<!--
|
||||
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
|
||||
-->
|
||||
<link rel="stylesheet" href="<?php echo DOL_URL_ROOT.'/theme/phones/smartphone/theme/default/mobiledefault.css.php'; ?>" />
|
||||
|
||||
<link rel="stylesheet" href="<?php echo DOL_URL_ROOT.'/theme/phones/smartphone/theme/default/default.css.php'; ?>" />
|
||||
<script src="<?php echo DOL_URL_ROOT.'/includes/jquery/js/jquery-1.4.3.min.js'; ?>"></script>
|
||||
<script src="<?php echo DOL_URL_ROOT.'/includes/jquery/mobile/jquery.mobile-1.0a1.min.js'; ?>"></script>
|
||||
<!--
|
||||
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
|
||||
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -24,11 +24,14 @@ $smartphone->smartheader();
|
||||
|
||||
<div data-role="page" id="dol-home" data-theme="b">
|
||||
|
||||
<div data-role="content">
|
||||
|
||||
<div data-role="header" data-nobackbtn="true" data-theme="b">
|
||||
<div id="dol-homeheader">
|
||||
<h1><img src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/thumbs/dolibarr.png'; ?>"></h1>
|
||||
<img src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/thumbs/dolibarr.png'; ?>">
|
||||
<a href="index.html" data-icon="gear" class="ui-btn-right"><?php echo $langs->trans('Tools'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
|
||||
<form id="login" name="login" method="post" action="<?php echo $php_self; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
||||
@ -65,14 +68,14 @@ $smartphone->smartheader();
|
||||
<?php if ($forgetpasslink) { ?>
|
||||
<li>
|
||||
<img alt="tools" class="ui-li-icon" src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/thumbs/tools.png'; ?>" />
|
||||
<a href="<?php echo './user/passwordforgotten.php'; ?>"><?php echo $langs->trans('PasswordForgotten'); ?></a>
|
||||
<a href="<?php echo 'user/passwordforgotten.php'; ?>"><?php echo $langs->trans('PasswordForgotten'); ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($helpcenterlink) { ?>
|
||||
<li>
|
||||
<img alt="support" class="ui-li-icon" src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/thumbs/support.png'; ?>" />
|
||||
<a href="<?php echo './support/index.php'; ?>"><?php echo $langs->trans('NeedHelpCenter'); ?></a>
|
||||
<a href="<?php echo 'support/index.php'; ?>"><?php echo $langs->trans('NeedHelpCenter'); ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
@ -22,76 +22,54 @@ $smartphone->smartheader();
|
||||
|
||||
<!-- BEGIN SMARTPHONE TEMPLATE -->
|
||||
|
||||
<div id="topbar">
|
||||
<div id="title"><?php echo $langs->trans('Password'); ?></div>
|
||||
<div id="leftnav">
|
||||
<a href="<?php echo $dol_url_root; ?>/">
|
||||
<img alt="home" src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/img/home.png'; ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="page" id="dol-home" data-theme="b">
|
||||
|
||||
<div id="content">
|
||||
<form id="login" name="login" method="post" action="<?php echo $php_self; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
||||
<input type="hidden" name="action" value="buildnewpassword">
|
||||
|
||||
<div align="center">
|
||||
<div data-role="header" data-theme="b">
|
||||
<div id="dol-homeheader">
|
||||
<img src="<?php echo $dol_url_root.'/theme/phones/smartphone/theme/'.$smartphone->theme.'/thumbs/dolibarr.png'; ?>">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<span class="graytitle"><?php echo $langs->trans('Identification'); ?></span>
|
||||
<ul class="pageitem">
|
||||
<li class="bigfield">
|
||||
<input placeholder="<?php echo $langs->trans('Login'); ?>" type="text" <?php echo $disabled; ?> id="username" name="username" value="<?php echo $login; ?>" />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?php if ($select_entity) { ?>
|
||||
<span class="graytitle"><?php echo $langs->trans('Entity'); ?></span>
|
||||
<ul class="pageitem">
|
||||
<li class="select">
|
||||
<?php echo $select_entity; ?>
|
||||
<span class="arrow"></span>
|
||||
</li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($captcha) { ?>
|
||||
<span class="graytitle"><?php echo $langs->trans('SecurityCode'); ?></span>
|
||||
<ul class="pageitem">
|
||||
<li class="smallfield">
|
||||
<input placeholder="<?php echo $langs->trans('SecurityCode'); ?>" type="text" id="securitycode" name="code" />
|
||||
<img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="128" height="36" />
|
||||
</li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="pageitem">
|
||||
<li class="button">
|
||||
<input name="input Button" <?php echo $disabled; ?> type="submit" value="<?php echo $langs->trans('SendByMail'); ?>" />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="pageitem">
|
||||
<li class="textbox">
|
||||
<span class="header"><?php echo $langs->trans('Infos'); ?></span>
|
||||
<?php if ($mode == 'dolibarr' || ! $disabled) {
|
||||
<div data-role="content">
|
||||
|
||||
<form id="login" name="login" method="post" action="<?php echo $php_self; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
||||
<input type="hidden" name="loginfunction" value="buildnewpassword" />
|
||||
|
||||
<div data-role="fieldcontain">
|
||||
<label for="username"><?php echo $langs->trans('Login'); ?></label>
|
||||
<input type="text" name="username" id="username" value="<?php echo $login; ?>" />
|
||||
|
||||
<?php if ($select_entity) { ?>
|
||||
<label for="entity" class="select"><?php echo $langs->trans('Entity'); ?></label>
|
||||
<?php echo $select_entity; ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($captcha) { ?>
|
||||
<label for="securitycode"><?php echo $langs->trans('SecurityCode'); ?></label>
|
||||
<input type="text" id="securitycode" name="securitycode" />
|
||||
<div align="center"><img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="128" height="36" /></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<input type="submit" data-theme="b" value="<?php echo $langs->trans('SendByMail'); ?>" />
|
||||
|
||||
<span class="header"><?php echo $langs->trans('Infos'); ?></span>
|
||||
<?php if ($mode == 'dolibarr' || ! $disabled) {
|
||||
echo $langs->trans('SendNewPasswordDesc');
|
||||
}else{
|
||||
echo $langs->trans('AuthenticationDoesNotAllowSendNewPassword', $mode);
|
||||
} ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</form>
|
||||
|
||||
<?php if ($message) { ?>
|
||||
</div><!-- /content -->
|
||||
|
||||
</div><!-- /page -->
|
||||
|
||||
<?php if ($dol_loginmesg) { ?>
|
||||
<script type="text/javascript" language="javascript">
|
||||
alert('<?php echo $message; ?>');
|
||||
alert('<?php echo $dol_loginmesg; ?>');
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user