 |
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from prodkind order by shuzhi asc",conn,1,3
do while not rs.eof%>
| "><%=rs("eprodname")%> |
<%
set objrs=server.CreateObject("adodb.recordset")
objrs.open "Select * From prodskind Where bigkind="&rs("bigkind")&" order by xuhao asc",conn,1,3
if not(objrs.bof and objrs.eof) then
do while not objrs.eof
%>
| &smallkind=<%=objrs("smallkind")%>"><%=objrs("eprodsname")%> |
<%objrs.movenext
loop
end if
objrs.close
set objrs=nothing
rs.movenext
loop
rs.close
set rs=nothing%>
|
MP:0086-13396860579
TEL:0086-391-8613196
FAX:0086-391-8613196 |
|
|
|
 |
<%
set objrs=server.CreateObject("adodb.recordset")
if request("bigkind")<>"" and request("smallkind")<>"" then
sql="select * from products where bigkind="&request("bigkind")&" and smallkind="&request("smallkind")&" and (prodid like '%"&trim(request("key"))&"%' or cpzhi like '%"&trim(request("key"))&"%' or prodname1 like '%"&trim(request("key"))&"%') and tuiji=0 order by prodpage asc,xuhao asc"
elseif request("bigkind")<>"" and request("smallkind")="" then
sql="select * from products where bigkind="&request("bigkind")&" and (prodid like '%"&trim(request("key"))&"%' or cpzhi like '%"&trim(request("key"))&"%' or prodname1 like '%"&trim(request("key"))&"%') and tuiji=0 order by prodpage asc,xuhao asc"
elseif request("bigkind")="" and request("smallkind")="" then
sql="select * from products where (prodid like '%"&trim(request("key"))&"%' or prodname1 like '%"&trim(request("key"))&"%') and tuiji=0 order by prodpage asc,xuhao asc"
end if
objrs.open sql,conn,1,3
if objrs.bof and objrs.eof then
response.write"
Sorry,I not find products picture.
| "
else
PageSize=9
objrs.PageSize = PageSize
totalfilm=objrs.recordcount
pgnum=objrs.Pagecount
if page="" or clng(page)<1 then page=1 end if
if clng(page) > pgnum then page=pgnum end if
if pgnum>0 then objrs.AbsolutePage=page end if%>
<%x=0
do while not objrs.eof
for j=1 to 3
if not objrs.eof then%>
|
<%set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from prodskind where smallkind="&request("smallkind")&"",conn,1,3
response.write""&rs2("prodsname")&""
rs2.close
set rs2=nothing%>
|
| |
<%
for i=1 to 3
if not objrs.eof then
%>
| |
<%x=x+1
objrs.movenext
if objrs.eof then exit do
end if
next
end if
next
if x>=objrs.pagesize then exit do
loop
end if
%>
| |
<%if objrs.pagecount>1 then%>
|
|
<%end if
objrs.close
set objrs=nothing
conn.close
set conn=nothing%>
|
| |
|
 |
|
|