📄 index.asp
字号:
<table cellspacing=0 cellpadding=0 width=170 height="20">
<tr>
<td width=5> </td>
<td width=28>
<div align="center">
<img src="icon4.gif" width="12" height="13"></div>
</td>
<td class=hg12 valign=bottom width="123"> <font color="#008000"><b>特价商品</b></font></td>
<td width=12> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="370" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bj_7.gif">
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table cellspacing=0 cellpadding=0 width="360" border=0>
<tbody>
<tr>
<td valign=top width="49%">
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 4 bookid,bookcontent,dazhe,shichangjia,huiyuanjia,bookname,bookpic from shop_books where dazhe<=0.6 order by adddate desc",conn,1,1
if rs.eof and rs.bof then
response.write "<br>目前没有特价商品"
else%>
<br>
<%end if%>
</td>
<td valign=top width="51%">
<%if rs.eof and rs.bof then
response.write "<br>目前没有特价商品"
else
if rs.recordcount>=2 then
rs.movenext
else
rs.movefirst
end if
%>
<br>
<%end if%>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="370" border="0" cellspacing="0" cellpadding="0" align="center" height="24">
<tr>
<td background="images/bj_8.gif" height="20">
<p align="center">
<a
href=book.asp?id=<%=rs("bookid")%> target=_blank><img
height=96 alt=商品样品 hspace=5 src="<%if trim(rs("bookpic"))="" then
response.write "images/emptybook.gif"
else
response.write trim(rs("bookpic"))
end if%>"
width=65 vspace=3 border=0></a></td>
<td valign="bottom"><a href=book.asp?id=<%=rs("bookid")%> target=_blank><font color=#FF6600><%=trim(rs("bookname"))%><p></font></a>
市场价:<%=formatnumber(rs("shichangjia"),2)%><br>会员价:<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)%>
</font>
</p>
<table align="center" cellpadding=0 cellspacing=0 id="table6">
<tbody>
<tr>
<td align=middle width=55 height=22>
<input onClick="javascript:window.open('shopping.asp?id=<%=rs("bookid")%> ','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" type="image" border="0" name="submit28" src="gm.gif" width="46" height="19">
</td>
<td width=57 height=22>
<input onClick="javascript:window.open('shoucang.asp?id=<%=rs("bookid")%>&action=add ','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" type="image" border="0" name="submit227" src="shc.gif" width="46" height="19">
<%rs.movenext%>
</td>
</tr>
</tbody>
</table>
<p> </td>
<td background="images/bj_8.gif" height="20">
<p align="center">
<a
href=book.asp?id=<%=rs("bookid")%> target=_blank><img
height=96 alt=商品样品 hspace=5 src="<%if trim(rs("bookpic"))="" then
response.write "images/emptybook.gif"
else
response.write trim(rs("bookpic"))
end if%>"
width=65 vspace=3 border=0></a></td>
<td valign="bottom"><a
href=book.asp?id=<%=rs("bookid")%> target=_blank><font color=#FF6600>
<%=trim(rs("bookname"))%><p></font></a>
市场价:<%=formatnumber(rs("shichangjia"),2)%><br>会员价:<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)%>
</font>
</p>
<table align="center" cellpadding=0 cellspacing=0 id="table5">
<tbody>
<tr>
<td align=middle width=55 height=22>
<input onClick="javascript:window.open('shopping.asp?id=<%=rs("bookid")%> ','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" type="image" border="0" name="submit29" src="gm.gif" width="46" height="19">
</td>
<td width=57 height=22>
<input onClick="javascript:window.open('shoucang.asp?id=<%=rs("bookid")%>&action=add ','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" type="image" border="0" name="submit228" src="shc.gif" width="46" height="19">
<%rs.movenext%>
</td>
</tr>
</tbody>
</table>
<p> </td>
</tr>
</table>
<embed width="360" height="60" src="<%=tx2%>" align="absmiddle"></div>
</td>
<td width="1" valign="top" background="bj_x.gif"></td>
<td width="182" valign="top">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bj_3.gif" height="28">
<table cellspacing=0 cellpadding=0 width=170 height="20">
<tr>
<td width=5> </td>
<td width=28>
<div align="center">
<img src="index7.gif" width="14" height="10"></div>
</td>
<td class=hg12 valign=bottom width="123"> <font color="#008000"><b>最新动态</b></font></td>
<td width=12> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/bj_4.gif">
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"> </td>
<td width="94%"><marquee direction="up" width="100%" height="106" scrollamount="2" id=info onMouseOver=info.stop() onMouseOut=info.start() ><%=gonggao%></marquee></td>
</tr>
</table>
</td>
</tr>
<tr>
</tr>
</table>
<table width="178" border="0" cellspacing="0" cellpadding="0" height="68">
<tr>
<td background="images/tp_bj.gif" height="68">
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="right">
<embed width="170" height="60" src="<%=tx3%>" align="absmiddle"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 6 bookid,bookname,huiyuanjia from shop_books where bestbook=1 order by adddate desc",conn,1,1
dim icount
icount=rs.recordcount
if rs.eof and rs.bof then
response.write "<center> </center>"
else%>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bj_0.gif" height="28">
<table cellspacing=0 cellpadding=0 width=170 height="20">
<tr>
<td width=5> </td>
<td width=28>
<div align="center">
<img src="index7.gif" width="14" height="10"></div>
</td>
<td class=hg12 valign=bottom width="123"> <b><font color="#008000">精品推荐</font></b></td>
<td width=12> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/bj_1.gif">
<table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
<tr>
<td>
<%
i=0
do while not rs.eof
response.write "·<a href=book.asp?id="&rs("bookid")&" target=_blank>"
if len(trim(rs("bookname")))>18 then
response.write left(trim(rs("bookname")),18)&"..."
else
response.write trim(rs("bookname"))
end if
response.write "</a> <font color=#FF6600>"&formatnumber(rs("huiyuanjia"),2)&"元</font><br>"
i=i+1
if i>=6 then exit do
rs.movenext
loop
%>
</td>
</tr>
<tr>
<td height="1"></td>
</tr>
<tr>
<td height="1" ></td>
</tr>
</table>
</td>
</tr>
<tr>
</tr>
</table>
<%end if
rs.close
set rs=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -