📄 changepwd.asp
字号:
<%
'************************************************************************************************
' 文件名: changepwd.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 蔡晓燕
' 日 期 : 2002-08-06
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :通过本页面修改本人密码
' 版 本 :V1.0
'************************************************************************************************
option explicit
'Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="../include/emp.inc" -->
<!-- #include file="changepwd.inc" -->
<!-- #INCLUDE FILE="../Fn_Remind.asp" -->
<%
call CheckSecurity()
'*********************************************************************************************************
'获取参数:用户名
'********************************************************************************************************
dim sAccountid : sAccountid = GetUserId
dim iFlag: iFlag = 0
'response.write "accountid="&sAccountid
'response.end
if IsEmpty(sAccountid) then
Response.Redirect("../common/error.asp?error=" & ToURL("不能在地址栏中直接输入该页面地址噢!"))
Response.end
end if
'********************************************************************************************************
' 如果是提交,则调用函数Updatechangepwd()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
Updatechangepwd()
end if
%>
<html>
<head>
<title>系统管理——用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">
<script language="javascript" src="../include/common.js"></script>
<script language="VBScript">
sub btnReturn_Onclick()
'返回
history.go(-1)
end sub
sub btnSubmit_Onclick()
'修改密码
if trim(frmchangepwd.oldpwd.value) = "" then
msgbox "请输入原密码!"
frmchangepwd.oldpwd.focus()
exit sub
end if
if trim(frmchangepwd.newpwd1.value) = "" then
msgbox "请输入新密码!"
frmchangepwd.newpwd1.focus()
exit sub
end if
if trim(frmchangepwd.newpwd2.value) = "" then
msgbox "请确认新密码!"
frmchangepwd.newpwd2.focus()
exit sub
end if
if frmchangepwd.newpwd1.value <> frmchangepwd.newpwd2.value then
msgbox "新密码确认错误,请重新输入!"
frmchangepwd.newpwd1.focus()
exit sub
end if
frmchangepwd.submit()
end sub
sub btnReset_Onclick()
'清空
frmchangepwd.reset()
end sub
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>
<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
'response.write "sAccountid="&sAccountid
'response.end
'if iFlag = 0 then
Response.write Formchangepwd(sAccountid)
'else
' Response.write Formchanged
'end if
'Response.write TableLink()
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -