📄 topproduct.asp
字号:
<%
sqlstr="select top 6 * from ys_product where ifhot=1 and version='"¤t_ver&"'"
myrs.open sqlstr,conn
if not myrs.eof then
%><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="280" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="588" align="center" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="2">
<%for i=1 to 2%>
<tr align="center" valign="top">
<%for j=1 to 3%>
<td height="60"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center" valign="top">
<td><a href="../product/product_detail.asp?pid=<%=myrs("ID")%>"><img src="../productimg/s/<%=myrs("smallphoto")%>" width="60" height="60" border="0"></a></td>
</tr>
<tr align="center" valign="top">
<td height="20" valign="middle"><%=myrs("productname")%></td>
</tr>
</table></td>
<%
myrs.movenext
if myrs.eof then
cols=4-j
response.Write "<td colspan="&cols&"> </td>"
exit for
end if
next%>
</tr>
<%
if myrs.eof then exit for
next%>
</table></td>
</tr>
</table>
<%else%>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -