📄 updatesys.asp
字号:
<%
'************************************************************************************************
' 文件名: updatesys.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 蔡晓燕
' 日 期 : 2002-11-10
'
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 系统结构管理,即对表T_sys进行增删改
' 版 本 :
'************************************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/commonpage.inc" -->
<!-- #include file="updatesys.inc" -->
<%
'call CheckSecurity(ID_EQUIPMENT)
'********************************************************************************************************
' 服务器端代码
'********************************************************************************************************
' 建立数据库连接
dim conn
Set conn=DBConnection
' 定义全局变量:
' pSysId: 传递到本页面的参数
Dim pSysId : pSysId = GetParam("id")
Dim sSysDesc, sRemark, sAddType
sAddType = GetParam("addtype")
if Not IsEmpty(pSysId) then
sSysDesc = DLookUp(conn, "select sys_desc from t_sys where sys_id = " & ToSQL(pSysId, "Number"))
sRemark = DLookUp(conn, "select remark from t_sys where sys_id = " & ToSQL(pSysId, "Number"))
if sSysDesc = "" then
Response.Redirect "../include/error.asp"
Response.end
end if
end if
'********************************************************************************************************
' 如果是提交,则调用函数AddSys或AddChildSys或UpdateSys或DeleteSys更新数据库
Dim sFormAction
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
sFormAction = GetParam("FormAction")
select case sFormAction
case "insert":
call AddSys()
case "insertchild":
call AddChildSys()
case "update":
call UpdateSys()
case "delete":
call DeleteSys()
end select
%>
<script language=vbscript>
'刷新左边的树形
parent.frames.menufrm.location.href="sys_tree.asp"
</script>
<%
end if
%>
<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="../include/common.css" type="text/css">
<script language="javascript" src="sys.js"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<%
'Response.Write OuterTableHeader
'Response.Write HeaderWithMenu(conn)
'Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
response.write FormTable()
' 主体到这里结束
'********************************************************************************************************
'Response.Write InnerTableTailer
'Response.Write Footer
'Response.Write OuterTableTailer
'response.end
Disconnect(conn)
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -