📄 mosthot.asp
字号:
<TABLE cellSpacing=0 cellPadding=0 width=160 border=0>
<TBODY>
<TR>
<TD width=9><IMG height=9
src="images/vipasp_cornerl.gif" width=9></TD>
<TD width=157 background=images/vipasp_top.gif></TD>
<TD width=9><IMG height=9
src="images/vipasp_cornerr.gif" width=9></TD></TR>
<TR>
<TD width=9 background=images/vipasp_l.gif></TD>
<TD vAlign=top width=157><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="center"><strong><font color="#666699">最受关注商品</font></strong></td>
</tr>
<tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 1 id,name,viewnum,pic,introduce,price1,price2 from product order by viewnum desc",conn,1,1
if rs.eof and rs.bof then
response.write "对不起,请您先到程序后台添加商品。"
response.End()
else
%>
<td width="23%"> <A HREF=product.asp?id=<%=rs("id")%> TARGET=_blank>
<IMG ALT=<%=trim(rs("name"))%> SRC=<%if trim(rs("pic"))="" then
response.write "images/emptybook.gif"
else
response.write trim(rs("pic"))
end if%> BORDER=0></A> </td>
<td width="77%" valign="top">
<% response.write "<a href=product.asp?id="&rs("id")&" target=_blank title=此商品被浏览"&rs("viewnum")&"次>"
if len(trim(rs("introduce")))>30 then
response.write left(trim(rs("introduce")),28)&"..."
else
response.write trim(rs("introduce"))
end if
response.write "</a>"
end if%>
</td>
</tr>
<tr>
<td colspan="2">市场价:<%=rs("price1")%>元<BR>
会员价:<FONT COLOR=#FF6600><%=rs("price2")%></FONT>元</td>
</tr>
<tr>
<td colspan="2" align="center">
<%response.write "<a href=# onClick=""javascript:window.open('cart.asp?id="&rs("id")&"','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;""><img src=images/skin/default/cart.gif width=50 height=19 align=absmiddle border=0></a> "
response.write "<a href=# onClick=""javascript:window.open('addto.asp?id="&rs("id")&"&action=add','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;""><img src=images/skin/default/addto.gif width=50 height=19 align=absmiddle border=0></a> "%>
<% rs.close
set rs=nothing %>
</td>
</tr>
</table> </TD>
<TD width=9 background=images/vipasp_r.gif></TD></TR>
<TR>
<TD width=9><IMG height=9
src="images/vipasp_cornerbl.gif" width=9></TD>
<TD width=157 background=images/vipasp_b.gif></TD>
<TD vAlign=bottom width=9><IMG height=9
src="images/vipasp_cornerbr.gif"
width=9></TD></TR></TBODY></TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -