📄 edit.asp
字号:
<% option explicit%>
<!-- #include virtual="Include/DataEnvi.asp" -->
<!-- #include virtual="Include/Page.asp" -->
<!-- #include virtual="Include/SelectValue.asp" -->
<%
Dim ObjDB
Dim C
Dim IntID,StrSelectRole
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_Public_BBS_Board")
Response.Redirect "List.asp"
End If
StrSQL="Select * From t_OA_Public_BBS_Board Where ID = " & IntID
Set ObjRS = C.View(StrSQL)
StrSelectRole = SelectValue(ObjDB,"Select AccountID,TrueName from t_OA_SYS_Account_Character")
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=LHtr>
<td width="15%">ID</td>
<td width="85%"><%=IntID%></td>
</tr>
<tr class=Ltr>
<td>版面名称</td>
<td><input type="text" class=Input Check=1 Show="版面名称" name="_BoardName" value="<%=ObjRS("BoardName")%>"></td>
</tr>
<tr class=Ltr>
<td>斑竹名称</td>
<td><Select type=text class=Input Check=1 Show="斑竹名称" name="_AccountID"><%=StrSelectRole%>"></Select></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 + -