首页调用下载二级分类
作者:cmscn 日期:2006-01-13
<%
sub down(aa,bb,cc)
sql="select top "&aa&" jk_class.c_name,jk_sort.s_name,down.* from jk_class,jk_sort,down where jk_class.c_id=down.c_id and jk_sort.s_id=down.s_id and down.hidden=1 order by "&cc&" desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
topic=rs("name")
response.write vbcrlf&" <table border=0 width='100%'><tr><td height='"&dim_num(6)&"'><img src='skin/"&joekoe_cms.web_skin&"/small/h_down.gif' border=0 align=absMiddle> <a href=down_list.asp?c_id="&rs("c_id")&"&s_id="&rs("s_id")&" title="&left(rs("s_name"),25)&" target=_blank><font color=#ff6b18>["&left(rs("s_name"),6)&"]</font></a><a href='down_view.asp?id="&id&"' target=_blank alt='"&joekoe_cms.code_html(topic,1,0)&"'>"&joekoe_cms.code_html(topic,1,15)&"</a></td></tr></table>"
rs.movenext
loop
rs.close
end sub
%>
评论: 6 | 引用: 0 | 查看次数: 917
发表评论