六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

無需數據庫循環的無級分類代碼

[摘要]<%@LANGUAGE="VBSCRIPT"%><!--數據庫表if exists (select * from dbo.sysobjects where id...
<%@LANGUAGE="VBSCRIPT"%>
<!--數據庫表
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Cat]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Cat]
GO

CREATE TABLE [dbo].[Cat] (
[Cat_Id] [int] IDENTITY (1, 1) NOT NULL ,
[Cat_Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[Cat_Parent] [int] NULL
) ON [PRIMARY]
GO
-->
<%
MM_v2boy_STRING = "Driver={Microsoft Access Driver (*.mdb)};DBQ=d:\v2boy.mdb"
Dim rsCat__MMColParam
rsCat__MMColParam = "1"
if (Request.QueryString("Cat_Parent") <> "") then rsCat__MMColParam = Request.QueryString("Cat_Parent")(1)
'response.write request.querystring & "<hr>" & rsCat__MMColParam
'response.end
%>
<%
set rsCat = Server.CreateObject("ADODB.Recordset")
rsCat.ActiveConnection = MM_v2boy_STRING
rsCat.Source = "SELECT Cat_Id, Cat_Name, Cat_Parent FROM Cat WHERE Cat_Parent = " + Replace(rsCat__MMColParam, "'", "''") + ""
rsCat.CursorType = 0
rsCat.CursorLocation = 2
rsCat.LockType = 3
rsCat.Open()
rsCat_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
rsCat_numRows = rsCat_numRows + Repeat1__numRows
%>
<html>
<head>
<title>Îĵµ×ÊÁÏ</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
dim request_all
IF request.querystring <> "" then request_all = "&" & request.querystring
%>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><a href="data.asp">Îĵµ×ÊÁÏ</a>
<%
dim i,j,h
j = Request.QueryString("Cat_Parent").Count
For i = 1 to j
'For i = j to 1 step -1
response.write "<a href=data.asp?"
for h = (j - i + 1) to j
'for h = j to (j - i + 1) step -1
Response.Write "Cat_Parent=" & Request.QueryString("Cat_Parent")(h) & "&Cat_Name=" & Request.QueryString("Cat_Name")(h)
if h <> j then
response.write("&")
end if
Next
'response.write "<br>"
response.write ">" & Request.QueryString("Cat_Name")(j-i+1) & "</a> "
Next

response.write "<br>"

While ((Repeat1__numRows <> 0) AND (NOT rsCat.EOF))
%>
<% If Not rsCat.EOF Or Not rsCat.BOF Then %>
<a href="data.asp?Cat_Parent=<%=(rsCat.Fields.Item("Cat_Id").Value)%>&Cat_Name=<%=(rsCat.Fields.Item("Cat_Name").Value)%><%=request_all%>"><%=(rsCat.Fields.Item("Cat_Name").Value)%></a>
<% End If ' end Not rsCat.EOF Or NOT rsCat.BOF %>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsCat.MoveNext()
Wend
%>
</td>
</tr>
</table>
</body>
</html>
<%
rsCat.Close()
%>





主站蜘蛛池模板: 亚洲成人xxx | 午夜色片| 四虎影院永久免费 | 欧美一区二区三区美人 | 四虎精品 | 亚洲欧美日韩成人 | 亚洲系列第一页 | 天天躁日日躁狠狠躁中文字幕 | 亚洲青青草原 | 亚洲日韩中文第一精品 | 在线亚洲精品国产成人二区 | 色哟哟色院91精品网站 | 深夜在线观看免费看视频 | 手机看片日韩欧美 | 日韩无毛 | 日本三级成人中文字幕乱码 | 日韩福利视频一区 | 亚洲欧美日韩不卡一区二区三区 | 香蕉人人超 | 婷婷国产 | 午夜影院在线免费观看 | 亚洲国产精品成人精品小说 | 亚洲视频在线一区 | 日韩欧美精品综合一区二区三区 | 一级欧美| 亚洲精品午夜在线观看 | 日韩精品亚洲一级在线观看 | 天堂福利在线 | 在线bt天堂网www在线下载 | 中日韩一线二线三线视频 | 五月天婷婷在线观看视频 | 色色网视频 | 午夜精品久久久久久久四虎 | 午夜高清在线观看免费6 | 欧美视频精品在线 | 亚洲视频免费播放 | 日本一本二本在线观看 | 午夜在线播放免费人成无 | 欧美一区二区精品系列在线观看 | 午夜毛片在线观看 | 五月婷婷激情网 |