<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><!--{$cfg.page.title}--> -  修改密码</title>
<!--{$cssFiles}-->
<!--{$jsFiles}-->
<script type="text/javascript">
FormValid.showError = function(errMsg,errName,formName) {
	if (formName=='dataForm') {
		for (key in FormValid.allName) {
			document.getElementById('errMsg_'+FormValid.allName[key]).innerHTML = '';
			document.getElementById('errMsg_'+FormValid.allName[key]).style.display = 'none';
			
		}
		for (key in errMsg) {
			document.getElementById('errMsg_'+errName[key]).innerHTML = errMsg[key];
			document.getElementById('errMsg_'+errName[key]).style.display = '';
			
		}
	}
}
var r = null;
function ckname (inp) {
	$.ajax({type:"GET", url:"ajax.php?action=checkPwd&r="+Math.random()+'&password='+inp.value, dataType:"text",async:false,success:function (msg){
		r = msg;
	}}); 
	if (r=='0') {
		return false;
	} else {
		return true;
	}
}
</script>
</head>
<body>
<!-- 头部 --><!--{include file="memberHeader.tpl"}--><!-- 头部 -->
<div class="main">
	<div class="page">
<div class="memberLeftNav">
			<div class="title"></div>
			<ul class="navList">
				<li class="item">
				 <p>房源管理</p>
					<ul>
					<li>
<a href="houseSale.php">发布出售</a><br />
<a href="houseRent.php">发布出租</a><br />
<a href="manageSale.php">出售管理</a><br />
<a href="manageRent.php">出租管理</a></li>
				  </ul>
                  	
				</li><br />

                <li class="item">
					<p>店铺管理</p>
					<ul>
						<li>
                        <a href="shopProfile.php">店铺资料</a><br />
                         <a href="shopSaleRec.php">店铺推荐</a><br />
                          <a href="shopStyle.php">店铺风格</a><br />

						</li>
				  </ul>
                  	
				</li>
                <br />

                  <li class="item">
					<p>人脉管理</p>
					<ul>
						<li>
                        <a href="snsFriends.php">我的好友</a><br />
                         <a href="snsLinkIn.php">谁来看过我</a><br />
                          <a href="snsInviteIn.php">好友邀请</a><br />

						</li>
				  </ul>
                  	
				</li>
                <br />

                  <li class="item">
					<p>站内信</p>
					<ul>
						<li>
                        <a href="msgWrite.php">撰写信件</a><br />
                         <a href="msgInbox.php">收件箱</a><br />
                          <a href="msgSend.php">已发信件</a><br />
                           <a href="msgGarbage.php">垃圾箱</a><br />

						</li>
				  </ul>
                  	
				</li>
                <br />

                       <li class="item">
					<p>资料管理</p>
					<ul>
						<li>
                        <a href="brokerProfile.php">修改资料</a><br />
                         <a href="brokerIdentity.php">实名认证</a><br />
                          <a href="brokerPhoto.php">修改头像</a><br />
                           <a href="pwdEdit.php">修改密码</a><br />
                             <a href="brokerAptitude.php">执业认证</a><br />

						</li>
				  </ul>
                  	
				</li>
			</ul>
			<div class="endLeft"></div>
		</div>
		<div class="memberBox">
			<div class="memberBoxTab">
				<ul>
				  <li><a href="brokerProfile.php"><span>修改资料</span></a></li>
				  <li><a href="brokerIdentity.php"><span>实名认证</span></a></li>
				  <li><a href="brokerPhoto.php"><span>修改头像</span></a></li>
				  <li><a href="pwdEdit.php" class="linkOn"><span>修改密码</span></a></li>
				  <li><a href="brokerAptitude.php"><span>执业认证</span></a></li>
				</ul>
			</div>
			<form name="dataForm" method="POST" action="?action=save">
			<table class="memberBoxTable" cellpadding="0" cellspacing="5" border="0">
				<thead>
					<tr>
						<td colspan="4"><span class="concentTitle">修改密码</span></td>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="row1"><span class="must">*</span>旧的密码：</td>
						<td colspan="3"><input id="password" class="input" name="password" type="password" size="25" valid="required|custom" custom="ckname" errmsg="旧密码不能为空|旧密码不正确！" />&nbsp; <span class="tip" id="errMsg_password"></span></td>
					</tr>
					<tr>
						<td class="row1"><span class="must">*</span>新的密码：</td>
						<td colspan="3"><input id="newpass" class="input" name="newpass" type="password" size="25" valid="required|limit"  min="6" errmsg="新密码不能为空|密码不少于6位!" />&nbsp; <span class="tip" id="errMsg_newpass"></span></td>
					</tr>
					<tr>
						<td class="row1"><span class="must">*</span>密码确认：</td>
						<td colspan="3"><input id="newpass2" class="input" name="newpass2" type="password" size="25" valid="eqaul" eqaulName="newpass" errmsg="两次输入的新密码不同!" />&nbsp;<span class="tip" id="errMsg_newpass2"></span></td>
					</tr>
					<tr><td colspan="4" class="br"></td></tr>
				</tbody>
			</table>
			<div class="submitBtn"><input type="button" value="确认修改" onclick="javascript:if(validator(document.dataForm)){document.dataForm.submit();}"  /></div>
			</form>
		</div>
	</div>
	<!-- 底部 --><!--{include file="footer.tpl"}--><!-- 底部 -->
</div>
<script type="text/javascript">
initValid(document.dataForm);
</script>
</body>
</html>