<%
if not categoryid = "" then
sql1 = "select * from class where category=" & categoryid
set rs1 = server.createobject("adodb.recordset")
rs1.open sql1,conn,1,1
if rs1.eof or rs1.bof then
else
do while not rs1.eof or rs1.bof
%>
&categoryid=<%=categoryid%>"><%=rs1("class")%>
<%
rs1.movenext
loop
end if
rs1.close
set rs1 = nothing
end if%>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
<%if rs("image") <> "" and rs("image") <> "#" then%>
" width="60" height="60" border="0" title="<%=rs("name")%>">
<%else%>
<%end if%>
.htm" title="<%=rs("name")%>"><%=rs("name")%> <%=rs("ver")%> <%if rs("price1") > "0" then%> 特价<%=rs("price1")%>元 <%end if%><%if rs("score") = "4" then%> <%end if%><%if rs("score")=10 and time2 < 4 then%> <%end if%><%=content%>
<%if not rs("date") < date then%> 今日最新~ <%else%> <%=REPLACE(rs("date"),"2014","14")%> <%end if%>
( <%=categoryname%> - "><%=classname%> )
<%
rs.movenext
loop
%>
<%if page < "6" then%>
[ <%=page%>
<%=page+1%>
<%=page+2%>
<%=page+3%>
<%=page+4%> ]
<%else%>
[ <%=page-4%>
<%=page-3%>
<%=page-2%>
<%=page-1%>
<%=page%>
<%=page+1%>
<%=page+2%>
<%=page+3%>
<%=page+4%> ]
<%end if%>
[第<%=page%>页/共<%=rs.pagecount%>页]
<%if page = "1" then%>
[首页] [上一页]
<%else%>
[首页] [上一页]
<%end if%>
<%if rs.pagecount-page < 1 then%>
[下一页] [尾页]
<%else%>
[下一页] [尾页]
<%end if%>