<%thisclass="product"%> <%page=request.QueryString("page")%> <% BigClassID=request.QueryString("id") SmallClassID=request.QueryString("sid") if BigClassID="" then Response.Write "" Response.End() end if if not isnumeric(BigClassID) or not isnumeric(SmallClassID) then Response.Write "" Response.End() end if set bigClass=server.createobject("adodb.recordset") exec="select * from [bigClass] where BigClassID="&BigClassID&"" bigClass.open exec,conn,1,1 title=bigClass("title") keywords=bigClass("keywords") description=bigClass("description") if SmallClassID<>0 then set smallclass=server.createobject("adodb.recordset") exec="select * from [smallclass] where SmallClassID="&SmallClassID&"" smallclass.open exec,conn,1,1 title=smallclass("title") keywords=smallClass("keywords") description=smallClass("description") end if %> <%if title<>"" then %><%=title%><%else%><%if SmallClassID<>"" then %><%=smallclass("smallclassName")%>_<%=bigClass("BigClassName")%><%else%><%=bigClass("BigClassName")%><%end if%><%end if%><%if page<>"" then%>_第<%=page%>页<%end if%>_<%=xohome%> <%=keywords%><%else%><%if SmallClassID<>"" then %><%=smallclass("smallclassName")%>,<%=bigClass("BigClassName")%>,产品<%else%><%=bigClass("BigClassName")%>,产品<%end if%><%end if%>" /> <%=description%><%else%><%if SmallClassID<>"" then %><%=smallclass("smallclassName")%>,<%=bigClass("BigClassName")%>,产品展示,<%=xohome%><%else%><%=bigClass("BigClassName")%>,产品展示<%end if%><%end if%><%if page<>"" then%>,第<%=page%>页<%end if%>,<%=xohome%>" />

<%if BigClassID<>"" or SmallClassID<>"" then%><%if SmallClassID<>"" then%><%=SmallClass("SmallClassName")%>_<%end if%><%=BigClass("BigClassName")%><%else%>产品展示<%end if%>

当前位置 -> ,首页 -> 产品展示
<% set rs=server.createobject("adodb.recordset") if BigClassID="" then exec="select * from products where fb=1 order by id desc" end if if BigClassID<>"" then exec="select * from products where fb=1 and BigClassID="&BigClassID&" order by id desc" end if if BigClassID<>"" and SmallClassID<>"" then exec="select * from products where fb=1 and BigClassID="&BigClassID&" and SmallClassID="&SmallClassID&" order by id desc" end if rs.open exec,conn,1,1 if rs.eof then response.Write "暂无产品!" else rs.PageSize =""&config("productsclass")&"" iCount=rs.RecordCount iPageSize=rs.PageSize maxpage=rs.PageCount page=request("page") if Not IsNumeric(page) or page="" then page=1 else page=cint(page) end if if page<1 then page=1 elseif page>maxpage then page=maxpage end if rs.AbsolutePage=Page if page=maxpage then x=iCount-(maxpage-1)*iPageSize else x=iPageSize end if end if For i=1 To x %> <%rs.MoveNext if i mod 2=0 then response.write "" response.write "" end if next i=i+1 %>
品牌:<%if rs("pinpaiID")<>"0" then%><%set pinpai=server.createobject("adodb.recordset") exec="select * from [pinpai] where pinpaiID="&rs("pinpaiID")&"" pinpai.open exec,conn,1,1 %>" target="_blank" style="color:#666"><%=pinpai("pinpai")%><%end if%>
" target=_blank>  ">

<%'以下显示分页 call PageControl(iCount,maxpage,page,"border=0 align=center","

") rs.close set rs=nothing %>