<!DOCTYPE html>
<html>
<head>
{template head}
</head>
<body>
	{template header}
		{template here}
		<!--signin-form-->
		<div class="signin-form layui-form">
			<div class="login-form">
				<form method="post" name="reg_post" id="reg_post" action="member.php?act=act_register">
					<input type="text" placeholder="请输入一个新帐号" required="" name="username" value="">
					<input type="password" placeholder="输入密码" required="" name="password" value="">
					<input type="password" placeholder="确认密码" required="" name="repassword" value="">
					<div class="float-lt" style="width:60%"><input type="text" placeholder="请输入右侧验证码" required="" name="code" style="background:none;"></div>
					<div class="float-rt" style="width:40%;padding:0.5em 0 0.3em 0;"><a href='javascript: refreshCaptcha();'><img src="code.php?rand=<?php echo rand();?>" id='captchaimg'></a></div>
					<div class="clear h_1"></div>
					<input type="hidden" name="forward" value="{$forward}" />
					<input type="submit" id="submit" name="submit" value="注册新帐号" class="layui-btn layui-btn-big layui-btn-normal">
				</form>
			</div>
		</div>
		<!--//signin-form-->
{template footer}
<script>
layui.use('form', function(){
  var form = layui.form();
});
</script>
<script>
function refreshCaptcha()
{
    var img = document.images['captchaimg'];
    img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}
</script>
</body>
</html>