28,391
社区成员
发帖
与我相关
我的任务
分享
<%
Function position_pro(cateid)
str = ""
set position = server.CreateObject("adodb.recordset")
position.open "select * from category where categoryid="&cateid,conn,1,1
if not (position.eof and position.bof) then
if position("ParentID") <>0 then
str=str&" >> <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
else
str=str&" <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
end if
end if
position_pro = str
position.close
set position= nothing
end Function
%>
<%
Function position_pro(cateid)
set position = server.CreateObject("adodb.recordset")
position.open "select * from category where categoryid="&cateid,conn,1,1
if not (position.eof and position.bof) then
position_pro = position("ParentID").value
else
position_pro = null
end if
position.close
set position= nothing
end Function
%>
function position_pro(cateid)
dim str
set position=server.CreateObject("adodb.recordset")
position.open "select * from category where categoryid="&cateid,conn,1,3
if not position.eof then
if position("ParentID") <>0 then
str=str&" >> <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
else
str=str&" <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
end if
position_pro position("ParentID")
end if
response.Write str
position_pro = 返回值
end function
Function position_pro(cateid)
dim str
set position=server.CreateObject("adodb.recordset")
position.open "select * from category where categoryid="&cateid,conn,1,3
if not position.eof then
if position("ParentID") <>0 then
str=str&" >> <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
else
str=str&" <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
end if
position_pro position("ParentID")
end if
position_pro=str
end Function
<%
Function position_pro(cateid)
str = ""
set position = server.CreateObject("adodb.recordset")
position.open "select * from category where categoryid="&cateid,conn,1,1
if not (position.eof and position.bof) then
if position("ParentID") <>0 then
str=str&" >> <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
else
str=str&" <a href='cat.asp?catid="&position("categoryid")&"'>"&position("category")&" </a>"
end if
position_pro = str & position_pro(position("ParentID").Value)
else
position_pro = ""
end if
position.close
set position= nothing
end Function
%>