?? index_tuijian.asp
字號:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD height=24>
<TABLE class=sub_basic
style="PADDING-BOTTOM: 0px; PADDING-TOP: 10px"
cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD width="48%" style="font-size: 10pt; font-weight: bold;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" ><IMG height=17
src="images/sub_chu_icon.gif" width=19
align=absMiddle><font style="color: #FFA700"><b>推薦商品</b></font></TD>
<TD width="52%" align=right><div align="center">·<a href="fenleiview.asp?lx=hot" target="_blank">最熱產品</a>·<a href="fenleiview.asp?lx=tejia" target="_blank">特價產品</a>·<a href="fenleiview.asp" target="_blank">全部產品</a></div></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD bgColor=#d6d6d6><IMG height=2
src="images/sub_chu_sun.gif" width=530></TD>
</TR>
<TR>
<TD height=10></TD>
</TR>
</TBODY>
</TABLE>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><%set rs=server.CreateObject("adodb.recordset")
rs.open "select Top 10 * from BJX_goods where bestbook=1 order by bookid desc",conn,1,1
if rs.eof and rs.bof then
response.write "<center><br><font color=red size=2>對不起,暫無新品!</font></font>"
'response.End
else
%>
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<%
i_1=int((rs.recordcount+1)/5)
if i_1>2 then
i_1=2
end if
'response.write i_1
for i_count=1 to i_1%>
<tr>
<td valign=top>
<table cellspacing=0 cellpadding=0 width="100%" >
<tr valign="middle">
<td><div align="center">
</div></td>
</tr>
<tr>
<td height="113" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR>
<TD width=90 height=90 bgColor=#ffffff align=center>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
<a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=75 height=75 border=0 align=absmiddle></a>
<%end if%>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td align="center"><%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" ><font color=#FF6600>"
if len(trim(rs("bookname")))>14 then
response.write left(trim(rs("bookname")),12)&".."
else
response.write trim(rs("bookname"))
end if
response.write "</font></a>"
%>
<br>
市場價:<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
會員價:<font color=#FF3300><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<%rs.movenext%></td>
</tr>
</table></td>
<td valign="top">
<%if rs.eof then%>
<%else%>
<table cellspacing=0 cellpadding=0 width="100%" >
<tr valign="middle">
<td><div align="center">
</div></td>
</tr>
<td height="113" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR>
<TD width=90 height=90 bgColor=#ffffff align=center>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
<a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=75 height=75 border=0 align=absmiddle></a>
<%end if%>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr><tr>
<td align="center"><%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" ><font color=#FF6600>"
if len(trim(rs("bookname")))>14 then
response.write left(trim(rs("bookname")),12)&".."
else
response.write trim(rs("bookname"))
end if
response.write "</font></a>"
%> <br>
市場價:<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
會員價:<font color=#FF3300><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<%rs.movenext%></td>
</tr>
</table>
<%end if%></td>
<td valign="top">
<%if rs.eof then%>
<%else%>
<table cellspacing=0 cellpadding=0 width="100%" >
<tr valign="middle">
<td><div align="center"> </div></td>
</tr>
<td height="113" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR>
<TD width=90 height=90 bgColor=#ffffff align=center>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
<a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=75 height=75 border=0 align=absmiddle></a>
<%end if%>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr><tr>
<td align="center"><%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" ><font color=#FF6600>"
if len(trim(rs("bookname")))>14 then
response.write left(trim(rs("bookname")),12)&".."
else
response.write trim(rs("bookname"))
end if
response.write "</font></a>"
%> <br>
市場價:<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
會員價:<font color=#FF3300><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<%rs.movenext%></td>
</tr>
</table>
<%end if%></td>
<td valign="top">
<%if rs.eof then%>
<%else%>
<table cellspacing=0 cellpadding=0 width="100%" >
<tr valign="middle">
<td><div align="center"> </div></td>
</tr>
<td height="113" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR>
<TD width=90 height=90 bgColor=#ffffff align=center>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
<a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=75 height=75 border=0 align=absmiddle></a>
<%end if%>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr><tr>
<td align="center"><%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" ><font color=#FF6600>"
if len(trim(rs("bookname")))>14 then
response.write left(trim(rs("bookname")),12)&".."
else
response.write trim(rs("bookname"))
end if
response.write "</font></a>"
%> <br>
市場價:<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
會員價:<font color=#FF3300><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<%rs.movenext%></td>
</tr>
</table>
<%end if%></td>
</tr>
<%next%>
<%
rs.close
set rs=nothing%>
</table>
<%end if%>
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -