www.gusucode.com > 运动用品商城网站系统源代码程序 > IncAsp/View_inl.asp
<table cellSpacing="0" cellPadding="0" border="0" class="ph_la"> <tr><td class="ph_la1"><span class="ph_laf">最近浏览产品</span></td></tr> <tr><td class="ph_la2"> <table border="0" cellpadding="0" width="90%" cellspacing="0"> <%recent=split(session("recent"),"/") viewscount=int(ubound(recent)) if viewscount>5 then viewscount=5 for i=0 to viewscount hwid=trim(recent(i)) Set rs2=Server.CreateObject("ADODB.Recordset") rs2.open "select hw_id,hw_name,hw_price1,hw_price2,hw_price3,hw_pic from venshop_hw where hw_id="&hwid&"",conn,1,1%> <% select case prot case 1 %> <tr><td align="center"> <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> <span class="price">原价<%=fuhao%><%=rs2("hw_price1")%><%=danwei%><br> 普通会员<%=fuhao%><%=rs2("hw_price2")%><%=danwei%><br>VIP会员<%=fuhao%><%=rs2("hw_price3")%><%=danwei%></span></p></td></tr> </table> </td></tr> <%case 2%> <tr><td><p style=" margin: 3px"><IMG src="Skin/<%=venshop_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%>> <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%><%=rs2("hw_price1")%><%=danwei%><br> 普通会员<%=fuhao%><%=rs2("hw_price2")%><%=danwei%><br>VIP会员<%=fuhao%><%=rs2("hw_price3")%><%=danwei%></span></td></tr> <%end select%> <%rs2.close set rs2=nothing 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">相同品牌产品</span></td></tr> <tr><td class="ph_la2"> <table border="0" cellpadding="0" width="90%" cellspacing="0"> <%Set rs2=Server.CreateObject("ADODB.Recordset") rs2.open "select top 5 hw_id,hw_name,hw_price1,hw_price2,hw_price3,hw_pic from venshop_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 align="center"> <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> <span class="price">原价<%=fuhao%><%=rs2("hw_price1")%><%=danwei%><br> 普通会员<%=fuhao%><%=rs2("hw_price2")%><%=danwei%><br>VIP会员<%=fuhao%><%=rs2("hw_price3")%><%=danwei%></span></p></td></tr> </table> </td></tr> <%case 2%> <tr><td><p style=" margin: 3px"><IMG src="Skin/<%=venshop_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%>> <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%><%=rs2("hw_price1")%><%=danwei%><br> 普通会员<%=fuhao%><%=rs2("hw_price2")%><%=danwei%><br>VIP会员<%=fuhao%><%=rs2("hw_price3")%><%=danwei%></span></td></tr> <%end select%> <%rs2.movenext loop rs2.close set rs2=nothing%> <tr><td height="20" align="right"><p style="margin-right: 5px"><a href="pinpai.asp?pinpai_id=<%=pinpai_id%>">更多...</a></td></tr> </table><div class="d5"></div></td></tr> <tr><td class="ph_la3"></td></tr></table><%end if%>