📄 passdeal.asp
字号:
<%@ Language=VBScript %>
<!--#include file="connect.asp"-->
<%
if session("adminok")="" then
response.redirect "login.asp"
end if
%>
<html>
<head>
<title>玉环人大</title>
<link rel="stylesheet" href="../yuhuan.css">
</head>
<%
dim sqlStr
dim rs
'打开数据库指定记录集中的指定记录,并对其进行更新操作
set rs=server.createobject("adodb.recordset")
sqlStr="select * from tblUser"
rs.open sqlStr,dataConn,1,3
if trim(rs("fldPassword"))<>request.form("oldpass") then
errCode = 1
else
errCode = 0
rs("fldPassword")=request.form("newpass")
rs.update
end if
rs.close
set rs=nothing
dataConn.close
set dataConn=nothing
%>
<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#000000">
<table border="0" width="100%" cellspacing="1" cellpadding="0" bordercolorlight="#000000"
bordercolordark="#FFFFFF" class="9v">
<tr>
<td width="100%" bgcolor="#ffcc66" align="center" class=p2 height="18">
修改密码 ----日期:<%=Formatdatetime(now(),vbshortdate)%> 时间:<%=Formatdatetime(now(),vbshorttime)%>----</td>
</tr>
<tr>
<td width="100%" align="right" class=9v bgcolor="#FFFFcc" height="18"><a href="javascript:self.close()">『关闭窗口』</a></td>
</tr>
<form name="file1" method="post" action="passDeal.asp">
<tr>
<td width="100%" align="center" class=9v bgcolor="#FFE6B0" height="18">
<%if errCode=1 then
response.write "<font color=red>原密码不正确,请核对后重新输入!</font>"
else
response.write "<font color=red>密码已经成功修改,请保管好您的密码!</font>"
end if
%></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFcc" height="100"><table width="100%" border="0" cellspacing="0" cellpadding="0" class=9v>
<tr>
<td width="55"> </td>
<td bgcolor="#FFffcc">原密码:
<input name="oldpass" type="password" class=thin id="oldpass" size="24">
<br> <br>
新密码:
<input name="newpass" type="password" class=thin id="newpass" size="24"></td>
</tr>
</table> </td>
</tr>
<tr>
<td width="100%" bgcolor="#FFE6B0" align="center" height="27">
<input type="reset" name="Reset" value="重填" class=button>
<input type="submit" name="Submit" value="确认" class=button>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -