editorderid.asp
来自「同学录的设计」· ASP 代码 · 共 37 行
ASP
37 行
<!--#include file=../../INC/txlconst.asp-->
<!--#include file=../../INC/txlfun.asp-->
<style>
table {WORD-BREAK: break-all;}
</style>
<%
Dim const_txl_HomeUrl
const_txl_HomeUrl = "../../"
%>
<!--#include file=../checkadmin.asp-->
<%
opendatabase
txl_SiteHead const_txlname&"- 管理员"
BBSSET
closedatabase
SiteBottom
Response.End()
Function BBSSET
'on error resume next
dim url,boardid,action,sql
url=Request.ServerVariables("HTTP_REFERER")
boardid=Trim(Request.QueryString("boardid"))
action=Trim(Request.QueryString("action"))
if action="up" then
sql="update boards set orderid=orderid-1 where boardid="&boardid
elseif action="down" then
sql="update boards set orderid=orderid+1 where boardid="&boardid
end if
conn.execute sql
response.Redirect(url)
end function
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?