<!doctype html>
<html lang="zh_CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"  />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="{?$saxue_sitename?}">
<title>{?$saxue_sitename?}手机版</title>
<link rel="stylesheet" href="{?$saxue_skin_url?}/css/touch-app.css" />
<link rel="apple-touch-startup-image" href="{?$saxue_skin_url?}/images/320x460.png" />
<link rel="apple-touch-icon" apple-touch-icon-precomposed="false" sizes="57x57" href="{?$saxue_skin_url?}/images/cover.png"/>
<script src="{?$saxue_skin_url?}/js/zepto.min.js"></script>
<script src="{?$saxue_skin_url?}/js/app.js"></script>
<script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script>
</head>
<body>
<div class="ui-container">
    <header>
        <div class="ui-header-bar">
			<a class="ui-return" href="javascript:" title="返回上一页"></a>
            <div class="ui-pagetitle">登录</div>
            <a href="/" class="ui-righthome" title="返回首页"></a>
        </div>
    </header>
	<section class="ui-articles-container">
		<form class="form cf" name="formlogin" id="formlogin">
			<input type="hidden" name="vcode" value="1">
			<input type="hidden" name="action" value="login">
			<fieldset>
				<div class="frow">
					<label class="col4 flabel">用户名：</label>
					<div class="col8 last">
						<input type="text" class="text" maxlength="30" style="width:120px" name="account">
					</div>
				</div>
				<div class="frow">
					<label class="col4 flabel">密　码：</label>
					<div class="col8 last">
					<input type="password" class="text" maxlength="20" style="width:120px" name="password">
					</div>
				</div>
				<div class="frow">
					<button type="button" class="btn btn-primary btn-large" id="clklogin" name="submit">登　录</button>
				</div>
				<div class="frow partner">
					<h3 class="partner-title">使用合作账号登录</h3>
					<ul class="partner-list">
						<li><a href="oauthlogin.php?site=qq"><i class="icon-qq"></i>QQ登录</a></li>
						<li><a href="oauthlogin.php?site=weibo"><i class="icon-weibo"></i>微博登录</a></li>
					</ul>
				</div>
				<div class="frow foot">
					<a href="register.php">没有帐号？马上注册一个</a>
				</div>
			</fieldset>
		</form>
	</section>
</div>
{?include file = "footer.html"?}
<script>
document.formlogin.account.focus();
$(function(){
	var dologin = false;
	$("#clklogin").tap(function () {
		if(dologin) return;
		dologin = true;
		$.post('login.php', $('#formlogin').serialize(), function(res){
			if(res.flag==0) {
				dologin = false;
				popTip(res.msg);
			} else {
				var reff='{?$jumpurl?}';
				if(reff=='' || reff==window.location.href){
					reff='/';
				}
				window.location.href=reff;
			}
		}, 'json')
    })
})
</script>
</body>
</html>