asp代码改成只显示一个分类的内容
这是一个图片展示页面程序是显示里面的所有分类的内容,我想把他改成只显示一个分类的图片应该改那个代码或者添加什么代码,,需要好人的帮忙<%setrs3=server.Cre...
这是一个图片展示页面 程序是 显示里面的所有分类的内容 , 我想把他改成 只显示一个分类的图片 应该改那个代码或者添加什么代码,, 需要好人的帮忙<%
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source ="select top " & top_img & " * from "& db_wygkcn_Article_Table &" where picnews=1 and Checked=1 and picname<>'null' order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source ="select top " & top_img & " * from "& db_wygkcn_Article_Table &" where picnews=1 and Checked=1 and newslevel=0 and picname<>'null' order by EC_ArticleID DESC"
end if 展开
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source ="select top " & top_img & " * from "& db_wygkcn_Article_Table &" where picnews=1 and Checked=1 and picname<>'null' order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source ="select top " & top_img & " * from "& db_wygkcn_Article_Table &" where picnews=1 and Checked=1 and newslevel=0 and picname<>'null' order by EC_ArticleID DESC"
end if 展开
2个回答
2011-09-22
展开全部
修改前
小分类
<div id='KB<%=rs_pro("BigClassID")%>Child' class='dchild' style="display:none;">
<%sql1="select * from SmallClass where BigClassName="&rs_pro("BigClassID")&""
set rs_pro1=conn.execute (sql1) %>
<%do while not rs_pro1.eof%>
<div><a href="productclass.asp?BigClassName=<%=rs_pro("BigClassID")%>&SmallClassName=<%=rs_pro1("SmallClassID")%>"><%=rs_pro1("e_SmallClassName")%></a></div>
----------------------------------------------
修改后
小分类
<div id='KB<%=rs_pro("BigClassID")%>Child' class='dchild' style="display:;">
<%sql1="select * from SmallClass where BigClassName="&rs_pro("BigClassID")&""
set rs_pro1=conn.execute (sql1) %>
<%do while not rs_pro1.eof%>
<div><a href="productclass.asp?BigClassName=<%=rs_pro("BigClassID")%>&SmallClassName=<%=rs_pro1("SmallClassID")%>"><%=rs_pro1("e_SmallClassName")%></a></div>
小分类
<div id='KB<%=rs_pro("BigClassID")%>Child' class='dchild' style="display:none;">
<%sql1="select * from SmallClass where BigClassName="&rs_pro("BigClassID")&""
set rs_pro1=conn.execute (sql1) %>
<%do while not rs_pro1.eof%>
<div><a href="productclass.asp?BigClassName=<%=rs_pro("BigClassID")%>&SmallClassName=<%=rs_pro1("SmallClassID")%>"><%=rs_pro1("e_SmallClassName")%></a></div>
----------------------------------------------
修改后
小分类
<div id='KB<%=rs_pro("BigClassID")%>Child' class='dchild' style="display:;">
<%sql1="select * from SmallClass where BigClassName="&rs_pro("BigClassID")&""
set rs_pro1=conn.execute (sql1) %>
<%do while not rs_pro1.eof%>
<div><a href="productclass.asp?BigClassName=<%=rs_pro("BigClassID")%>&SmallClassName=<%=rs_pro1("SmallClassID")%>"><%=rs_pro1("e_SmallClassName")%></a></div>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询