<?php if(!defined('IN_PATH')){exit('Access Denied.');}?>
{inc:home:header.htm}
{inc:left.htm}
<div class="panel panel-default">
	<div class="panel-heading">会员登陆</div>
	<div class="panel-body">
		<form action="{$pp[webdir]}member/index.php?u=public-login" method="post" id="loginform"  class="form-horizontal">
		<input type="hidden" name="FORM_HASH" value="{$pp[FORM_HASH]}" />
		<div class="row">
			<div class="col-sm-4 text-center">
				<span class="icon-users text-ddd" style="font-size:128px;"></span>
			</div>
			<div class="col-sm-5">
					<div class="form-group">
						<label for="recipient-name" class="col-sm-3 control-label">用户名：</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" id="username" name="username" validata-options="validType:'Require',msg:'不能为空'" />
						</div>
					</div>
					<div class="form-group">
						<label for="message-text" class="col-sm-3 control-label">密　码：</label>
						<div class="col-sm-9">
							<input type="password" class="form-control" id="password" name="password" validata-options="validType:'Require',msg:'不能为空'" />
						</div>
					</div>
					<div class="form-group">
						<label for="message-text" class="col-sm-3 control-label">验证码：</label>
						<div class="col-sm-9">
							<div class="input-group">
							<input maxlength="4" type="text" size="4" id="logincode" name="code" class="form-control" style="height:39px;" validata-options="validType:'Require',msg:'不能为空'" /> <span class="input-group-addon"><img border="0" id="verifyImg" alt="如果您无法识别验证码，请点图片更换" style="cursor:pointer;" src="{$pp[webdir]}index.php?u=public-verify-name-logincode" onclick='this.src=this.src+"&"+Math.random()'>点击更换</span>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="submit"></label>
						<div class="col-sm-9">
							<input type="submit" class="btn btn-primary" id="submit" value="提交登陆" /> <span class="text-warning" id="warning"></span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="login"></label>
						<div class="col-sm-9">
							<a href="index.php?u=public-register"><span class="icon-user"></span> 注册会员</a> 
							 <a href="index.php?u=public-getpassword"><span class="icon-question"></span> 忘记密码</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		</form>
	</div>
</div>
<script>
$(document).ready(function(){
	ppAjax.submit("#loginform", function(data){
		ppAjax.alert(data);
		if(window.ppData.err==0){
			layer.msg(window.ppData.msg, {icon: 1,time: 2000,shade: 0.6}, function(){window.location = '{$jumpurl}';});
		}else{
			layer.msg(window.ppData.msg, function(){});
		}
	});
});
</script>
{inc:footer.htm}