📄 op_worker_pass.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../login/check_power.asp"-->
<%
if check_power("修改密码")=0 then
response.redirect("/login/check_false.asp")
else%><%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = "dsn=hotel;"
Recordset1.Source = "SELECT pass FROM db_worker where login='"&request.form("login")&"' and pass='"&request.form("oldpass")&"'"
'Recordset1.Source = "SELECT * FROM db_worker"
Recordset1.CursorType = 3
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open
Recordset1_numRows = 0
%><%
modify=0
if Recordset1.recordcount<>0 then
recordset1("pass").value=request.form("newpass")
recordset1.update
recordset1.close
modify=1
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function goparameters_show(){
location.assign("/parameters/parameters_show.asp");
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<center>
<%if modify=0 then%>
<p>密码修改失败,请检查原密码是否正确!</p>
<%else%>
<p>密码已经修改,请用新密码登录!</p>
<%end if%>
<form name="form1" method="post" action="">
<input type="button" name="Button" value="返 回" onclick="goparameters_show()">
</form>
</center>
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -