<!--#include file="conn.asp"-->
<%hw_id=request("hw_id")
chkid(hw_id)
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select hw_views from WrzcNethtml_hw where hw_id="&hw_id&""
rs.open sql,conn,1,3
if not rs.eof then
rs("hw_views")=rs("hw_views")+1
rs.update
end if
rs.close
set rs=nothing
if session("recent")="" then
session("recent")=hw_id
elseif session("recent")<>"" then
  recentid=split(session("recent"),"/")
  for i=0 to ubound(recentid) 
  if hw_id=recentid(i) then
  jiaru=1
  end if
  next
if jiaru<>1 then
session("recent")=hw_id&"/"&session("recent")
end if
end if%>
document.write('<table cellSpacing="0" cellPadding="0" border="0" class="ph_la">');
document.write('<tr><td class="ph_la1"><span class="ph_laf">Your Recent History</span></td></tr>');
document.write('<tr><td class="ph_la2">');
document.write('<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 WrzcNethtml_hw where hw_id="&hwid&"",conn,1,1
if not rs2.eof then%>
<%select case prot
case 1%>
document.write('<tr><td><table border="0" width="100%" cellspacing="0" cellpadding="3"<%if i>0 then%> class="heng"<%end if%>>');
document.write('<tr><td align="center"><a <%if photoh=1 then%>class=photo<%end if%> target="_blank" href="../product/Pro<%=rs2("hw_id")%>.Html">');
document.write('<img border="0" src="../<%pic=split(rs2("hw_pic"),"*")%><%=pic(1)%>" style="border: 1px solid #F2F2F2" <%=sort_wh%>></a></td></tr>');
document.write('<tr><td align="center"><p style="line-height: 150%"><b><a target="_blank" href="../product/Pro<%=rs2("hw_id")%>.Html"><%=replace(rs2("hw_name"),"'","")%></a></b><br>');
document.write('<span class="price"><script>document.write(cheng(<%=rs2("hw_price2")%>))</script></span></p></td></tr>');
document.write('</table></td></tr>');
<%case 2%>
document.write('<tr><td><p style=" margin: 3px"><IMG src="../Skin/<%=WrzcNethtml_skin%>/dot2.gif" border=0 align="absmiddle"> <a href="../product/Pro<%=rs2("hw_id")%>.Html" target=_blank><%=replace(rs2("hw_name"),"'","")%></a></td></tr>');
<%case else%>
document.write('<tr><td <%if i>0 then%> class="heng"<%end if%> width="60"><p align="center" style="line-height: 150%; margin: 3px">');
document.write('<a <%if photoh=1 then%>class=photo<%end if%>  target="_blank" href="../product/Pro<%=rs2("hw_id")%>.Html">');
document.write('<img border="0" src="../<%pic=split(rs2("hw_pic"),"*")%><%=pic(1)%>" width="50"></a></td>');
document.write('<td height="26" <%if i>0 then%> class="heng"<%end if%> align=left>');
document.write('<p style="line-height: 150% ; margin: 3px;"><a href="../product/Pro<%=rs2("hw_id")%>.Html" target=_blank><%=replace(rs2("hw_name"),"'","")%></a><br>');
document.write('<span class="price"><script>document.write(cheng(<%=rs2("hw_price2")%>))</script></span></td></tr>');
<%end select
end if
rs2.close
set rs2=nothing
end if
next%>
document.write('</table><div class="d5"></div></td></tr><tr><td class="ph_la3"></td></tr></table>');
