<!--#include file="../inc/MD5.asp"-->
<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎您</title>
<link href = "css.css" rel=stylesheet type = text/css>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<style type="text/css"> 
<!-- 
td {  font-size: 9pt} 
a {  color: #000000; text-decoration: none} 
a:hover {  text-decoration: underline} 
.tx {  height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF} 
.bt {  font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand} 
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF} 
--> 
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<br>
<br>
<br>
<div align="center"><br>
  <%
dim ErrMsg 
dim pwd
	password=trim(Request("Password"))
	PwdConfirm=trim(request("PwdConfirm"))
	if password="" or PwdConfirm ="" then
		ErrMsg=ErrMsg & "<br><b><li><font color=#ff0000>新密码不能为空！</font></li></b><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
	response.Write Errmsg
	elseif PwdConfirm<>Password then
		ErrMsg=ErrMsg & "<br><li><b><font color=#ff0000>两次输入密码必须相同！</font></b></li><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
		response.Write Errmsg
		else
		pwd=md5(password)
		set rs=server.createobject("adodb.recordset")
        ErrMsg=ErrMsg & "<br><li><b><font color=#ff0000>密码修改成功！</font></b></li><a href=""javascript:history.go(-1)""><font size=2>我要返回</font></a>"
		response.Write Errmsg
sql="select * from password"
rs.open sql,conn,3,3
rs("pwd")=pwd
rs.update
rs.close
set rs=nothing
	end if
%>
  <br>
  <br>
</div>
</body>
</html>
