两个栏目是在一个表里面 前台调用的一个栏目。
<%indexget.newslist12 16,
4,5,"·","szgr_content.asp",""%> 4就是一个代表一个栏目 我想调用4和15这个该怎么写呢?
下面就是 newslist12
"function newslist12(nlen,classid,nnum,npic,nurl,ntype)
if ntype="" then
sql = "Select top "&nnum&" * from art where cat_id="&classid&" order by istop desc, isbest desc, customorder asc, art_id desc"
else
sql = "Select top "&nnum&" * from art where cat_id="&classid&" and mytype="&ntype&" order by istop desc, isbest desc, customorder asc, art_id desc"
end if
set rs = conn.execute(sql)
if not rs.eof then
do while not rs.eof
aa=cint(date()-rs("art_date"))
if aa<10 then
%>
<li style="list-style-type:none;"><a style="float:left;" href="<%=nurl%>?id=<%=rs("art_id")%>" title="<%=rs("art_title")%>"><%=npic%><%newstitlelen rs("art_title"),nlen-3%></a><br>
<%
else
%>
<li style="list-style-type:none;"><a style="float:left;" href="<%=nurl%>?id=<%=rs("art_id")%>" title="<%=rs("art_title")%>"><%=npic%><%newstitlelen rs("art_title"),nlen%></a><br>
<%
end if
rs.movenext
loop
else
response.write("没有内容")
end if
rs.close
end function"