📄 move_sort.asp
字号:
<!--#include file="../setup.asp"-->
<!--#include file="login_admin.asp"-->
<!--#include file="conn.asp"-->
<%
'================================================================================
'Product:K-Search Version 2.1
'本“软件产品”受《中华人民共和国著作权法》和《中华人民共和国计算机软件保护条例》
'和国际条约的保护。如未经授权而擅自复制或传播本程序(或其中任何部分),将受到严厉
'的刑事及民事制裁,并将在法律许可的范围内受到最大可能的起诉!
'Homepage:http://www.lucoo.com/
'--------------------------------------------------------------------------------
'Copyright(c) 2005 lucoo.com All Rights Reserved 绿色互联 版权所有
'================================================================================
dim rs
dim id
dim sort
dim sort_id
dim ssort_id
ssort_id=Request.QueryString("sort_id")
if isnumeric(ssort_id)=0 or ssort_id="" then
response.write "非法ID参数"
response.end
end if
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open "select id,sort,sort_id from sort where id="&ssort_id,conn,1,1
if rs.eof and rs.bof then
'
else
id=rs("id")
sort=rs("sort")
sort_id=rs("sort_id")
end if
rs.close
set rs=Nothing
dim guide
guide=" >> "&sort
if sort_id<>0 then
for i=1 to 8 step 1
set rs=conn.execute("select id,sort,sort_id from sort where id="&sort_id)
if rs.eof and rs.bof then
'
else
sort_id=rs("sort_id")
guide=" >> <a href=move_sort.asp?sort_id="&rs("id")&">"&rs("sort")&"</a>" & guide
end if
rs.close
set rs=Nothing
next
end if
%>
<title>选择分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script language="javascript">
function sort_id(a){
window.opener.forms.move_id.value=a;
alert("已经成功选择了分类!");
window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="25" align="center" bgcolor="#EAEAEA">选 择 分 类</td>
</tr>
<tr>
<td>当前目录:<a href="move_sort.asp?sort_id=0">首页</a> <%=guide%></td>
</tr>
<tr>
<td> <%
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open "select * from sort where sort_id="&ssort_id,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>没有下级分类:[<a style='cursor:hand' onClick='sort_id("&ssort_id&");'><font color='#0000FF'>选择“"&sort&"”分类</font></a>]</p>"
else
do while not rs.eof
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" height="25" bgcolor="#FFFFFF"> <%
if not rs.eof then
response.write "·"
if rs("move_id")>0 then
response.write "<a href='?sort_id="&rs("move_id")&"' target='_blank'>"&rs("sort")&"@</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("move_id")&");'><font color='#0000FF'>选择</font></a>] "
else
response.write "<a href='?sort_id="&rs("id")&"'>"&rs("sort")&"</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("id")&");'><font color='#0000FF'>选择</font></a>] "
end if
rs.movenext
end if
%></td>
<td width="33%" bgcolor="#FFFFFF"> <%
if not rs.eof then
response.write "·"
if rs("move_id")>0 then
response.write "<a href='?sort_id="&rs("move_id")&"' target='_blank'>"&rs("sort")&"@</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("move_id")&");'><font color='#0000FF'>选择</font></a>] "
else
response.write "<a href='?sort_id="&rs("id")&"'>"&rs("sort")&"</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("id")&");'><font color='#0000FF'>选择</font></a>] "
end if
rs.movenext
end if
%></td>
<td width="33%" bgcolor="#FFFFFF"> <%
if not rs.eof then
response.write "·"
if rs("move_id")>0 then
response.write "<a href='?sort_id="&rs("move_id")&"' target='_blank'>"&rs("sort")&"@</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("move_id")&");'><font color='#0000FF'>选择</font></a>] "
else
response.write "<a href='?sort_id="&rs("id")&"'>"&rs("sort")&"</a> "
response.write "[<a style='cursor:hand' onClick='sort_id("&rs("id")&");'><font color='#0000FF'>选择</font></a>] "
end if
rs.movenext
end if
%></td>
</tr>
</table>
<%
loop
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -