<table cellSpacing="0" cellPadding="0" border="0" class="ph_la">
<tr><td class="ph_la1"><span class="ph_laf">Your Recent History</span></td></tr>
<tr><td class="ph_la2">
<table border="0" cellpadding="0" width="90%" cellspacing="0" style="margin:0px auto;">
<%recent=split(session("recent"),"/")
viewscount=int(ubound(recent))
if viewscount>5 then viewscount=5
for i=0 to viewscount
hwid=trim(recent(i))
if hwid<>"" then
Set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open "select hw_id,hw_name,hw_price2,hw_pic from WrzcNet_hw where hw_id="&hwid&"",conn,1,1
if not rs2.eof then%>

<%
select case prot
case 1
%>
<tr><td>
<table border="0" width="100%" cellspacing="0" cellpadding="3"<%if i>0 then%> class="heng"<%end if%>>
  <tr><td align="center"><a <%if photoh=1 then%>class=photo<%end if%> target="_blank" href="views.asp?hw_id=<%=rs2("hw_id")%>">
	<img border="0" src="<%pic=split(rs2("hw_pic"),"*")%><%=pic(1)%>" onerror="this.src='img/noimage.jpg'" style="border: 1px solid #F2F2F2" <%=sort_wh%>></a></td></tr>
  <tr>
	<td align="center"><p style="line-height: 150%"><b><a target="_blank" href="views.asp?hw_id=<%=rs2("hw_id")%>"><%=rs2("hw_name")%></a></b><br>
	Price:<span class="price"><%=fuhao%><%=FormatNum(rs2("hw_price2")*hui)%><%=danwei%></span></p></td></tr>
  </table>
</td></tr>
<%case 2%>
<tr><td><p style=" margin: 3px"><IMG src="Skin/<%=WrzcNet_skin%>/dot2.gif" border=0 align="absmiddle"> <a href="views.asp?hw_id=<%=rs2("hw_id")%>" target=_blank><%=rs2("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=<%=rs2("hw_id")%>">
<img border="0" src="<%pic=split(rs2("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 href="views.asp?hw_id=<%=rs2("hw_id")%>" target=_blank><%=rs2("hw_name")%></a><br>
<span class="price"><%=fuhao%><%=FormatNum(rs2("hw_price2")*hui)%><%=danwei%></span></td></tr>
<%end select%>

<%end if
rs2.close
set rs2=nothing
end if
next
%>
</table>
<div class="d5"></div></td></tr>
<tr><td class="ph_la3"></td></tr></table>

<%if pinpai_id<>0 then%><div class="d5"></div>
<table cellSpacing="0" cellPadding="0" border="0" class="ph_la">
<tr><td class="ph_la1"><span class="ph_laf"><%=pinpai_name%></span></td></tr>
<tr><td class="ph_la2">

<table border="0" cellpadding="0" width="90%" cellspacing="0" style="margin:0px auto;">
<%Set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open "select top 5 hw_id,hw_name,hw_price2,hw_pic from WrzcNet_hw where hw_kucun>0 and pinpai_id="&pinpai_id&" and hw_id<>"&hw_id&" order by tjindex desc,tjsort desc,hw_id desc",conn,1,1
i=-1
do while not rs2.eof
i=i+1%>
<%
select case prot
case 1
%>
<tr><td>
<table border="0" width="100%" cellspacing="0" cellpadding="3"<%if i>0 then%> class="heng"<%end if%>>
  <tr><td align="center"><a <%if photoh=1 then%>class=photo<%end if%> target="_blank" href="views.asp?hw_id=<%=rs2("hw_id")%>">
	<img border="0" src="<%pic=split(rs2("hw_pic"),"*")%><%=pic(1)%>" onerror="this.src='img/noimage.jpg'" style="border: 1px solid #F2F2F2" <%=sort_wh%>></a></td></tr>
  <tr>
	<td align="center"><p style="line-height: 150%"><b><a target="_blank" href="views.asp?hw_id=<%=rs2("hw_id")%>"><%=rs2("hw_name")%></a></b><br>
	Price:<span class="price"><%=fuhao%><%=FormatNum(rs2("hw_price2")*hui)%><%=danwei%></span></p></td></tr>
  </table>
</td></tr>
<%case 2%>
<tr><td><p style=" margin: 3px"><IMG src="Skin/<%=WrzcNet_skin%>/dot2.gif" border=0 align="absmiddle"> <a href="views.asp?hw_id=<%=rs2("hw_id")%>" target=_blank><%=rs2("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=<%=rs2("hw_id")%>">
<img border="0" src="<%pic=split(rs2("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 href="views.asp?hw_id=<%=rs2("hw_id")%>" target=_blank><%=rs2("hw_name")%></a><br>
<span class="price"><%=fuhao%><%=FormatNum(rs2("hw_price2")*hui)%><%=danwei%></span></td></tr>
<%end select%>

<%rs2.movenext
loop
rs2.close
set rs2=nothing%>
</table>
<p style="line-height: 150%; margin: 5px 15px; " align="right"><a href="pinpai.asp?pinpai_id=<%=pinpai_id%>">More>></a></p>
</td></tr>
<tr><td class="ph_la3"></td></tr></table><%end if%>