📄 moduletypesql.asp
字号:
<% ModuleCode="M0116" %>
<!--#include file="../../Include/connect.asp"-->
<!--#include file="../../Include/Security.asp"-->
<%
dim act,TypeCode,TypeName
act = Request("act")
TypeCode = Request.Form("TypeCode")
TypeName = Request.Form("TypeName")
TypePic = Request.Form("TypePic")
TypePic2 = Request.Form("TypePic2")
DispSeq = Request.Form("DispSeq")
OPTable="T_DNS_ModuleType"
OPIP=Request.ServerVariables("REMOTE_ADDR")
OPModule="模块类别维护"
OPPK=TypeCode
OPType=act
Select Case act
Case "添加"
strSQL="Select * from T_DNS_ModuleType where TypeCode='" & TypeCode & "'"
Set Rs= Server.CreateObject("ADODB.Recordset")
Rs.open strSQL,Cn,1,1
If Not Rs.Eof Then
Response.Redirect "../../Include/ErrBox.asp?Msg=错误! 该类型代号已经存在!"
Response.End
end if
Rs.Close
strSQL="Insert into T_DNS_ModuleType (TypeCode,TypeName,TypePic,TypePic2,DispSeq) values ('" & +_
TypeCode & "','" & TypeName & "','" & TypePic & "','" & TypePic2 & "'," & DispSeq &")"
Cn.Execute(strSQL)
Case "修改"
strSQL="Update T_DNS_ModuleType Set TypeName='" & TypeName & "',TypePic='" & TypePic & "',TypePic2='" & TypePic2 & "',DispSeq=" & DispSeq &" Where TypeCode='" & TypeCode & "'"
Cn.Execute(strSQL)
Case "删除"
strSQL="Delete T_DNS_ModuleType Where TypeCode='" & TypeCode & "'"
Cn.Execute(strSQL)
End Select
Cn.Execute("SP_UserOP "&session("UserID")&",'"&OPTable&"','"&OPModule&"','"&OPPK&"','"&OPType&"','"&OPIP&"'" )
Response.Redirect "ModuleType.asp"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -