% Page=request("page") pagecount=page pageurl="sublist.asp" if request.querystring("page")="" then ipagecurrent=1 else ipagecurrent=cint(request.querystring("page")) end if sqlprod="select * from casemain where gb='ch' and online=true " if request("keywords")<>"" then sqlprod= sqlprod + " and prodid like '%"&trim(request("keywords"))&"%' or model like '%"&trim(request("keywords"))&"%' or ProdDisc like '%"&trim(request("keywords"))&"%' " end if if request("type")<>"" then sqlprod= sqlprod + " and gbcode like '%"&trim(request("type"))&"%' or larcode like '%"&trim(request("type"))&"%' or midcode like '%"&trim(request("type"))&"%' " end if if request("Parentid")<>"" then sqlprod=sqlprod + "and gbseq='"&request("Parentid")&"' " end if if request("gbcode")<>"" then sqlprod = sqlprod + "and gbcode = '"&request("gbcode")&"'" end if if request("Larseq")<>"" then sqlprod = sqlprod + "and Larseq = '"&request("Larseq")&"'" end if if request("remark")="1" then sqlprod = sqlprod + "and remark = '1'" end if sqlprod = sqlprod + "order by xuhao asc" Set rsprod=Server.CreateObject("ADODB.RecordSet") MaxPage=12 rsprod.pagesize = MaxPage rsprod.cachesize = MaxPage rsprod.open sqlprod,conn,1,1 'if rsprod.recordcount=1 then 'zid=rsprod("id") 'num=rsprod("prodnum") 'response.Redirect ("product.asp?ProdNum="&num&"&zid="&zid&"") 'end if if rsprod.bof and rsprod.eof then response.write "
| 对不起,暂时没此类设备! |