<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>会员登陆 - {?$saxue_sitename?}</title>
<meta name="keywords" content="{?$meta_keywords?}" />
<meta name="description" content="{?$meta_description?}" />
<link rel="stylesheet" href="{?$saxue_skin_url?}/css/gen.css" />
<link rel="stylesheet" href="{?$saxue_skin_url?}/css/login.css" />
<script type="text/javascript" src="{?$saxue_skin_server?}/lib/jquery.min.js"></script>
<script type="text/javascript" src="{?$saxue_skin_server?}/lib/jquery.form.js"></script>
</head>
<body class="userbg">
{?include file = "topbar.html"?}
<div class="header mt15">
	<h1 class="fl"><a href="{?$saxue_url?}"><img src="{?$saxue_skin_url?}/images/logo.png" alt="{?$saxue_sitename?}"/></a></h1>
	<div class="fl mr10"><span class="logotxt">会员登陆</span></div>
</div>
<div class="line"></div>
<div class="login_wrap">
	<div class="login_content">
    	<form method="post" name="loginForm" id="loginForm">
			<input type="hidden" name="action" value="login">
			<h3 class="login-hd">登录</h3>
            <ul class="login-bd">
            	<li class="login-error" id="errmsg" style="display:none;">帐户名或登录密码不正确</li>
                <li>      
                    <label class="login-label">帐&nbsp;&nbsp;&nbsp;号：</label>
                	<input type="text" class="txt" name="account" id="account" size="20" maxlength="30" placeholder="用户名 / 邮箱 / 手机" />
                </li>
                <li>
                	<label class="login-label">密&nbsp;&nbsp;&nbsp;码：</label>
                    <input type="password" name="password" id="password" class="txt" size="20" maxlength="30"/>
                </li>
				{?if $config.logincheckcode == 1?}
                <li>
                	<label class="login-label">验证码：</label>
                    <input type="text" name="checkcode" id="checkcode" class="txt checkcode" size="20" maxlength="4"/>&nbsp;
					<img src="/api/checkcode.php" style="cursor:pointer;" onclick="this.src='/api/checkcode.php?rand='+Math.random();" align="absmiddle">
                </li>
				{?/if?}
                <li class="login-auto">
                	<span class="fl"><a href="register.php">新用户注册</a></span>
                	<span class="fr bugie6"><a href="forget.php">忘记密码？</a></span>
                </li>
            	<li class="login-auto"><input type="submit" value="登录" class="btn_login" title="登录" /></li>
				<li class="login-entry login-spc">
					<a href="javascript:;" title="使用QQ帐号登录" class="account_qq j-login-qq">用QQ帐号登陆</a>
					<a href="javascript:;" title="使用微博帐号登录" class="account_sinaweibo j-login-weibo">用微博帐号登陆</a>
				</li>
            </ul>
		</form> 
	</div>	
</div>
<script>
document.loginForm.account.focus();
$(function(){
	$("#loginForm").ajaxForm({
        dataType: "json",
        success : function(data){
			if(data.flag == 0){
				$("#errmsg").html(data.msg);
				$("#errmsg").show();
				setTimeout(function(){$("#errmsg").hide()},2000);
			}else{
				var reff='{?$jumpurl?}';
				if(reff=='' || reff==window.location.href){
					reff='/';
				}
				window.location.href=reff;
			}
        }
    });
})
</script>
{?include file = "member/footer.html"?}
</body></html>