📄 edit.asp
字号:
<% option explicit%>
<!-- #include virtual="Include/DataEnvi.asp" -->
<!-- #include virtual="Include/Page.asp" -->
<%
Dim ObjDB
Dim C
Dim IntID
Dim ObjRS,StrSQL
IntID = Request.QueryString("ID")
If IntID ="" Then IntID = 1
Set ObjDB = Server.CreateObject("ADODB.Connection")
OpenDB ObjDB
Set C = Server.CreateObject ("CMS2003.DBhandle")
C.Init(ObjDB)
If Request.Form.Count > 0 Then
IntID = Request.Form("ID")
Call C.Edit(IntID,"_","t_OA_Work_Document_Class")
Response.Redirect "List.asp"
End If
StrSQL="Select * From t_OA_Work_Document_Class Where ID = " & IntID
Set ObjRS = C.View(StrSQL)
ObjDB.Close
Set ObjDB = Nothing
%>
<%'==================================================================%>
<%Sub Main%>
<%'------------------------------------------------------------------%>
<form action="" method="post" onsubmit="return(CheckForm(this))" id=form1 name=form1>
<table class=Ltable cellspacing=1 cellpadding=3>
<tr class=LHtr>
<input type=hidden name=ID value="<%=IntID%>"></tr>
<tr class=Ltr>
<td width="15%">文档类别名称</td>
<td width="85%"><input type="text" size=40 class=Input Check=1 Show="文档类别名称" name="_ClassName" value="<%=ObjRS("ClassName")%>"></td>
</tr>
</table>
<table cellspacing=1 cellpadding=3>
<tr>
<td>
<input type="submit" name="Submit" class=Button value="提 交">
<input type="button" class=Button value="取 消"onclick="doList()" id=button1 name=button1></td>
<td></td>
</tr>
</table>
</form>
<%'------------------------------------------------------------------%>
<%End Sub%>
<%'==================================================================%>
<!-- #include file="Templet.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -