<%if showp<>"" then%>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="sortl"><tr>
	<td width="60" align="center" id="sortr"><b>Sort:</b></td>
	<td>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=xu"  class="xian<%if order="xu" or order="" then%>1<%end if%>">Default</a>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=hot"  class="xian<%if order="hot" then%>1<%end if%>">Hot Sellers</a>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=hw_price1"  class="xian<%if order="hw_price1" then%>1<%end if%>">Price↑</a>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=hw_price2"  class="xian<%if order="hw_price2" then%>1<%end if%>">Price↓</a>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=view" class="xian<%if order="view" then%>1<%end if%>">Hits</a>
		<a href="<%=showp%>&lookt=<%=lookt%>&order=time" class="xian<%if order="time" then%>1<%end if%>">Date</a>
	</td>
	<td align="right"><b>View:</b></td>
	<td width="40" align="center"><a href="<%=showp%>&lookt=image&order=<%=order%>&page=<%=page%>"><img border="0" src="Skin/<%=WrzcNet_skin%>/vm1<%if lookt="image" then%>1<%end if%>.gif"></a></td>
	<td width="40" align="center"><a href="<%=showp%>&lookt=shu&order=<%=order%>&page=<%=page%>"><img border="0" src="Skin/<%=WrzcNet_skin%>/vm2<%if lookt="shu" then%>1<%end if%>.gif"></a></td>
</tr></table>
<%end if%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%
if lookt="image" then
i=0
do while not rs.eof and (i<rs.pagesize)
i=i+1
hw_name=rs("hw_name")
if request("hw_name")<>"" then hw_name=replace(hw_name,request("hw_name"),"<font color=red>"&request("hw_name")&"</font>")
%>
<tr><td align="left">
	<table width="100%" border="0" cellpadding="0" cellspacing="5"><form action="basket.asp?hw_id=<%=rs("hw_id")%>" method=post>
	<tr><td align="center" width="150">
		<a <%if photoh=1 then%>class=photo<%end if%> target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" title="<%=hw_name%>">
		<img border="0" src="<%pic=split(rs("hw_pic"),"*")%><%=pic(1)%>" onerror="this.src='img/noimage.jpg'" <%=sort_wh%> style="border: 1px solid #C0C0C0"></a></td>
	<td><p style="line-height: 150%; margin-top:3px; margin-bottom:3px" class="anse">
		<a class="title" target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" title="<%=hw_name%>"><IMG src="Skin/<%=WrzcNet_skin%>/dot3.gif" border=0 align="absmiddle"> <%=hw_name%></a><br>
		<%=rs("hw_content")%></p>
		List Price<strike><%=fuhao%><%=FormatNum(rs("hw_price1")*hui)%><%=danwei%></strike>&nbsp;&nbsp; 
		<span style="font-size:10pt; color:#FD6700;font-weight: bold">Price:<i><%=fuhao%><%=FormatNum(rs("hw_price2")*hui)%><%=danwei%></i></span>&nbsp;&nbsp; 
		Save:<%=fuhao%><%=FormatNum((rs("hw_price1")-rs("hw_price2"))*hui)%><%=danwei%>
		<p align="right" style="margin: 5px">
		<input type=image src="Skin/<%=WrzcNet_skin%>/buy.gif" name="I1" alt="Buy <%=hw_name%>">
		<a href="com.asp?action=add&hw_id=<%=rs("hw_id")%>"  title="Compare <%=hw_name%>"><img border="0" src="Skin/<%=WrzcNet_skin%>/duibi.gif"></a>
		<a href="fav.asp?action=add&hw_id=<%=rs("hw_id")%>"  title="<%=hw_name%>"><img border="0" src="Skin/<%=WrzcNet_skin%>/shoucang.gif"></a>
	</td></tr><tr><td height="2" background="img/dot_menu.gif" colspan="2"></td></tr></form></table>
</td></tr>
<%rs.movenext
loop%>
<%else%>

<%
i=0
do while not rs.eof and (i<rs.pagesize)
i=i+1
hw_name=rs("hw_name")
if request("hw_name")<>"" then hw_name=replace(hw_name,request("hw_name"),"<font color=red>"&request("hw_name")&"</font>")
%>
<%if (i mod lookhang)=1 then%><tr><%end if%>
	<td width="20%" align="left" style="padding:3px 0px;" valign=top>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"><form action="basket.asp?hw_id=<%=rs("hw_id")%>" method=post>
		<tr><td align="center" style="padding:3px 0px;"><a <%if photoh=1 then%> class="photo"<%end if%> target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" title="<%=hw_name%>"><img border="0" src="<%pic=split(rs("hw_pic"),"*")%><%=pic(1)%>" onerror="this.src='img/noimage.jpg'" <%=sort_wh%> style="border: 1px solid #C0C0C0"></a></td></tr>
		<tr><td><div class="ititletd"><a target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" class="title" title="<%=hw_name%>"><%=hw_name%></a></div></td></tr>
		<tr><td height="20px" align="center"><span class="price"><%=fuhao%><%=FormatNum(rs("hw_price2")*hui)%><%=danwei%></span></td></tr>
			</form></table></td>
<%if (i mod lookhang)=0 then%></tr><%end if%>
<%rs.movenext
loop
if i<lookhang then
	for st=i+1 to lookhang
	response.write "<td></td>"
	next
	response.write "</tr>"
end if
%>
<%end if%></table>
<%showp=showp&"&order="&order&"&lookt="&lookt%>