</td>
</form>
</tr>
<tr>
<td colspan="3" class="td1"><table border="0" width="100%" cellspacing="6" cellpadding="0">
<tr>
<td width="100%" class="p12" height="40"><div align="center">
<%
dim aa1,aa2
aa1=trim(Request("a1"))
if aa1<>"" then
aa1="全部"
end if
aa2=request("a2")
pname2=trim(Request("keyword"))
if pname2<>"" then
d=" and name like '%"&pname2&"%' "
end if
bid=request("bid")
if bid<>"" then
c="and nbigarea="&bid&" "
end if
sid=request("sid")
if sid<>"" then
c="and nsmallarea="&sid&" "
end if
set rs=server.createobject("adodb.recordset")
if session("user")="" then
rs.open "select * from product where new=false "&c&" "&d,conn,1,1
else
rs.open "select * from product where "&c&" "&d,conn,1,1
end if
if rs.recordcount=0 then
%>
<table border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td width="436" align=center><img src="img/logo_shibai.gif" width="51" height="56"><br>
暂时没有您想要的产品报价,也许我们正在整理中,请过会再来!</td>
</tr>
</table>
<div align="left">
<% else %>
</font>
<%
rs.PageSize =20'每页记录条数
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/2
end if
next
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
end if
rs.close
set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一页下一页链接
Dim query, a, x, temp , p
p=2
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")