<%if phcount>0 then%><table cellSpacing="0" cellPadding="0" border="0" class="ph_la">
<tr><td class="ph_la1"><span class="ph_laf">What's Hot</span></td></tr>
<tr><td class="ph_la2">
<table border="0" cellpadding="3" cellspacing="0" width="90%" style="margin:0px auto;">
<%set rs=server.createobject("adodb.recordset")
if nsort_id<>"" then
sql="select top "&phcount&" hw_id,hw_name,hw_price2,hw_pic,hw_content from WrzcNet_hw where hw_kucun>0 and tjsort=1 and nsort_id="&nsort_id&" order by hw_id DESC"
elseif sort_id<>"" then
sql="select top "&phcount&" hw_id,hw_name,hw_price2,hw_pic,hw_content from WrzcNet_hw where hw_kucun>0 and tjsort=1 and sort_id="&sort_id&" order by hw_id DESC"
else
sql="select top "&phcount&" hw_id,hw_name,hw_price2,hw_pic,hw_content from WrzcNet_hw where hw_kucun>0 and tjsort=1 order by hw_id DESC"
end if
  rs.open sql,conn,1,1
  i=-1
  do while not rs.eof
  i=i+1%>
<%select case prot
case 1%>
<tr><td height="26"<%if i>0 then%> class="heng"<%end if%>><p align="center" style="line-height: 150%; margin: 3px">
<a <%if photoh=1 then%>class=photo<%end if%>  target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" title="click to <%=rs("hw_name")%>"><img border="0" src="<%pic=split(rs("hw_pic"),"*")%><%=pic(1)%>" <%=sort_wh%>></a><br>
<a href="views.asp?hw_id=<%=rs("hw_id")%>" target=_blank title="click to <%=rs("hw_name")%>"><%=rs("hw_name")%></a></p>

<p align="left" style="line-height: 150%; margin: 3px" class="anse"><%=rs("hw_content")%><br>
<span class="price"><%=fuhao%><%=FormatNum(rs("hw_price2")*hui)%><%=danwei%></span>
</p>
</td></tr>
<%case 2%>
<tr><td align="left"><p style=" margin: 3px"><IMG src="Skin/<%=WrzcNet_skin%>/dot2.gif" border=0 align="absmiddle"> <a title="click to <%=rs("hw_name")%>" href="views.asp?hw_id=<%=rs("hw_id")%>" target=_blank><%=rs("hw_name")%></a></td></tr>
<%case else%>
<tr><td<%if i>0 then%> class="heng"<%end if%> width="60"><p align="center" style="line-height: 150%; margin: 3px">
<a <%if photoh=1 then%>class=photo<%end if%>  target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>" title="click to <%=rs("hw_name")%>">
<img border="0" src="<%pic=split(rs("hw_pic"),"*")%><%=pic(1)%>" width="50"></a></td>
<td height="26"<%if i>0 then%> class="heng"<%end if%> align="left">
<p style="line-height: 150%; margin: 3px"><a title="click to <%=rs("hw_name")%>" href="views.asp?hw_id=<%=rs("hw_id")%>" target=_blank><%=rs("hw_name")%></a><br>
<span class="price"><%=fuhao%><%=FormatNum(rs("hw_price2")*hui)%><%=danwei%></span></td></tr>
<%end select%>
<%
rs.movenext
loop
rs.close
set rs=nothing%></table>
<div class="d5"></div></td></tr>
<tr><td class="ph_la3"></td></tr></table><%end if%>