📄 user.asp
字号:
<%
'************************************************************************************************
' 文件名: user.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 蔡晓燕
' 日 期 : 2002-08-02
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :通过本页面更改用户信息,包括用户角色、重置密码
' 版 本 :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="user.inc" -->
<!-- #INCLUDE FILE="../Fn_Remind.asp" -->
<%
call CheckSecurity()
'*********************************************************************************************************
'获取参数:用户名
' 获得查询参数,以便于user.asp处理完用户信息更新以后用返回按钮再回到list_user.asp:角色类型;用户状态;当前页码;
'********************************************************************************************************
dim sAccountid : sAccountid = GetParam("accountid")
dim iRoleid1 : iRoleid1 = GetParam("roleid1")
dim iStatus : iStatus = GetParam("status")
dim iPage : iPage = GetParam("page")
if IsEmpty(sAccountid) then
Response.Redirect("../common/error.asp?error=" & ToURL("不能在地址栏中直接输入该页面地址噢!"))
Response.end
end if
' response.write "iRoleid1="&iRoleid1&"<br>"
' response.write "iRoleid1="&GetParam("roleid1")&"<br>"
' response.write "iStatus="&iStatus&"<br>"
'********************************************************************************************************
' 如果是提交,则调用函数UpdateUser()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
UpdateUser()
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 btnResetpwd_Onclick()
'密码重置
frmuser.formaction.value="resetpwd"
frmuser.submit()
end sub
sub btnUpdate_Onclick()
'更新角色
frmuser.formaction.value="updaterole"
frmuser.submit()
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
Response.write FormUser(sAccountid)
'Response.write TableLink()
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -