<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{if $form_act == "forget_pwd"}
<title>忘记密码</title>
{else}
<title>重置密码</title>
{/if}
<link rel="shortcut icon" href="{$conf.weburl}/images/favicon.ico" type="image/x-icon" />
<link href="styles/login_style.css" rel="stylesheet" type="text/css" />
{insert_scripts files="../js/jquery.min.js,validator.js,../js/utils.js"}
<!--[if lte IE 6]> 
<script src="js/DD_belatedPNG.js" type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png');DD_belatedPNG.fix('img');
</script>
<![endif]-->
<script type="text/javascript">
{literal}
function formSubmit(e){   
    var charCode=(navigator.appName=="Netscape")?e.which:e.keyCode;   
    if(charCode==13){   
        if (validate()){
			document.getElementById('theForm').submit();  
		}
    }   
}
{/literal}
</script>
</head>
<body>
<div style="height:48px; margin:0px auto;"></div>
<div class="Clear"></div>
<div class="main">
<div class="BG_left"></div>
<div class="login png">
<div class="login_Name1"></div>
	{if $form_act == "forget_pwd"}
	<form action="get_password.php" method="post" name="theForm" onsubmit="return validate()" class="M">
	<ul>
		<li class="form">
		{literal}
		 <input name="user_name" type="text" id="user_name" class="blank" onmouseover="this.className='blank1'" onmouseout="this.className='blank'" onKeyDown="formSubmit(event);" value="用户名" onClick="if(this.value=='用户名'){this.value=''}" onblur="if(this.value==''){this.value='用户名'}" />
		 {/literal}
		</li>
		<li class="form">
		{literal}
		  <input name="email" type="text"  class="blank" onmouseover="this.className='blank1'" onmouseout="this.className='blank'" onKeyDown="formSubmit(event);" value="Email" onFocus="if(this.value=='Email'){this.value=''}" onblur="if(this.value==''){this.value='Email'}" />
		  {/literal}
		  <p class="error"></p>
		</li>
		<li class="help"><a href="privilege.php?act=login" class="forgot">返回登录</a></li>
		<li class="button get_pwd">
		<input type="hidden" name="act" value="get_pwd" />
		<a href="javascript:document.forms['theForm'].submit();" class="submit" onclick="return validate();"></a>
		</li>  		
	</ul>
	</form>
	<script language="JavaScript">
	$('#user_name').focus();
	{literal}
		function validate(){
			var validator = new Validator('theForm');
			validator.required('user_name', '用户名不能为空.');
			validator.required('email',     '邮箱不能为空.');
			validator.isEmail("email", '邮箱格式错误.');
			return validator.passed();
		}
	{/literal}
	</script>		
	
	{else}
		<form action="get_password.php" method="post" name="theForm" onsubmit="return validate()" class="M">
	<ul>
		<li class="form">
		  <input  type="password" name="password" id="password"  onmouseover="this.className='key1'"  onmouseout="this.className='key'" class="key" onkeydown="formSubmit(event);" />
		</li>
		<li class="form">
		  <input  type="password" name="confirm_pwd"  onmouseover="this.className='key1'"  onmouseout="this.className='key'" class="key" onkeydown="formSubmit(event);" />
		</li>
		<li class="help"><a href="privilege.php?act=login" class="forgot">返回登录</a></li>
		<li class="button get_pwd">
			<input type="hidden" name="act" value="reset_pwd" />
			<input type="hidden" name="user_id" value="{$user_id}" />
			<input type="hidden" name="code" value="{$code}" />
		<a href="javascript:document.forms['theForm'].submit();" class="submit" onclick="return validate();"></a>			</li>        
	</ul>
	</form>
		<script language="JavaScript">
			$('#password').focus();
			{literal}
				function validate(){
					var validator = new Validator('theForm');
					validator.required('password', '请输入新密码.');
					validator.required('confirm_pwd', '请输入确认密码.');
					validator.eqaul("password", "confirm_pwd", '两次密码输入不一致');
					return validator.passed();
				}
			{/literal}
			</script>
	 {/if}
</div>
<div class="BG_right"></div>
</div>
<div class="Clear"></div>
<div class="footer">
<span>版权所有  2010-2015  {$company_profile.name} All rights reserved.</span>
<a href="../" target="_blank" title="打开网站前台首页" class="footer_a"></a>
</div>
</body>
</html>