⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1.asp

📁 wapgo网址导航整站源码,WAP源码,更多登陆http://xywap.cn
💻 ASP
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<%option explicit%>
<%Dim id,classid,showorder,rs,rsstr,i%>
<!--#include file="conn.asp"-->

<%
if session("admin")="" then
response.redirect "admin.asp"
end if

id=request("id")
classid=request("fenlei")&""
if classid="" then classid=request("classid")&""
showorder=request("showorder")&""
if showorder="" or not isnumeric(showorder) or showorder="0" then
	Response.write "请选择一个有效的数字,<a href=""javascript:history.back();"">点这里返回</a>"
	Response.end
end if
showorder=clng(showorder)

'response.write showorder
set rs=Server.CreateObject("ADODB.Recordset")

'rsstr="select * from [urls] where wid=" &id
rsstr="select showorder from [urls] where wid<>"&id&" and classid="&classid&" order by showorder asc"
rs.open rsstr,conn,1,2
if not rs.eof then
	i=1
	do while not rs.eof
		if i=showorder then i=i+1
		'Response.write i&",,,"&rs("site")&",,,<br>"
		rs("showorder")=i
		rs.update
		i=i+1
		rs.movenext
	loop
end if
conn.execute "update urls set showorder="&showorder&" where wid="&id
rs.close
set rs=nothing
conn.close
set conn=nothing
'Response.end
response.redirect "urlx.asp?classid="&classid
Response.end
'if classid<>"" then rs("classid")=classid
'if showorder<>"" then rs("showorder")=showorder
'rs.update

response.end
%>
<html>
<head>
<title>修改成功</title>
<meta http-equiv="refresh" content='2; URL=urlx.asp?classid=<%=rs("classid")%>'>
<%
rs.close
set rs=Nothing
conn.close
set conn=nothing
%>
</head>
<body>
<p align="center">
<b>网址修改成功!</b>
</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -