📄 index1.asp
字号:
<td width=28>
<div align="center"><img src="images/icon2.gif" width="12" height="13"></div>
</td>
<td class=hg12 valign=bottom width="123"> <b>最新商品</b></td>
<td width=12> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="370" border="0" cellspacing="0" cellpadding="0" align="center" background="images/bj_7.gif">
<tr>
<td>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 13 mch,pp,pingpai,jj,bookname,bookid,bookchuban,bookpic,shichangjia,huiyuanjia,dazhe,bookzz from shop_books order by adddate 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="360">
<%
dim i_1,i_count
i_1=int((rs.recordcount+1)/1)
if i_1>3 then
i_1=3
end if
'response.write i_1
for i_count=1 to i_1%>
<tr>
<td valign=top colspan="2">
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td valign=top width="41%" style="PADDING-LEFT: 6px">
<div align="center"><br>
<img height=102 hspace=5
src="images/bg_book.gif" width=71 vspace=5 border=0> </div>
<p style="MARGIN-TOP: -112px" 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 trim(rs("bookpic"))
else
response.write "images/emptybook.gif"
end if%> width=65 vspace=3
border=0></a>
</td>
<td valign=top width="59%"><a class=a4
href=book.asp?id=<%=rs("bookid")%> target=_blank><font color=#FF6600><br>
<%=trim(rs("bookname"))%></font></a><br>
<%=trim(rs("pp"))%><%=trim(rs("pingpai"))%><br>
<%=trim(rs("jj"))%><%=trim(rs("bookchuban"))%><br>
市场价:<%=formatnumber(rs("shichangjia"),2)&"元"%><br>
会员价:<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<table align="center" cellpadding=0 cellspacing=0>
<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="submit23" src="images/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="submit222" src="images/shc.gif" width="46" height="19">
<%rs.movenext%>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
<%next%>
<%if rs.recordcount>3 then
rs.absoluteposition=4
i=0
do while not rs.eof%>
<tr>
<td style="PADDING-LEFT: 6px" height="28" width="48%">
<img src="images/new-fram_05.gif" width="12" height="13">
<a href=book.asp?id=<%=rs("bookid")%> target=_blank>
<%if len(trim(rs("bookname")))>16 then
response.write left(trim(rs("bookname")),13)&"..."
else
response.write trim(rs("bookname"))
end if%>
</a>
<%response.write "<font color=#FF6600>"&rs("dazhe")*100&"%</font>"%>
</td>
<%rs.movenext%>
<td style="PADDING-LEFT: 6px" height="28" width="50%">
<%if rs.eof then%>
<%else%>
<img src="images/new-fram_05.gif" width="12" height="13">
<a href=book.asp?id=<%=rs("bookid")%> target=_blank>
<%if len(trim(rs("bookname")))>16 then
response.write left(trim(rs("bookname")),13)&"..."
else
response.write trim(rs("bookname"))
end if%>
</a>
<%response.write "<font color=#FF6600>"&rs("dazhe")*100&"%</font>"%>
<%rs.movenext%>
<%end if%>
</td>
</tr>
<%if i>=4 then exit do
loop
end if
rs.close
set rs=nothing%>
</table>
<%end if%>
</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"> </td>
</tr>
</table>
<div align="center"><a href="<%=tx1url%>" target=_blank><img src="<%=tx1%>" width="360" height="65" border="0"></a>
<table width="370" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/bj_6.gif" height="29">
<table cellspacing=0 cellpadding=0 width=170 height="20">
<tr>
<td width=5> </td>
<td width=28>
<div align="center"><img src="images/icon4.gif" width="12" height="13"></div>
</td>
<td class=hg12 valign=bottom width="123"> <b>最新商品</b></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 align="center">
<tbody>
<tr>
<td valign=top>
<%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>
<table cellspacing=0 cellpadding=2 width="100%" border=0>
<tbody>
<tr>
<td width="53%">
<div align="center"><br>
<img height=102 hspace=5 src="images/bg_book.gif"
width=71 vspace=5 border=0> </div>
<p style="MARGIN-TOP: -112px" 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>
<p style="MARGIN-TOP: -50px" align=right>
</p>
</td>
<td width="47%"><a href=book.asp?id=<%=rs("bookid")%> target=_blank><font color=#FF6600><%=trim(rs("bookname"))%></font></a>
<br>
<%if trim(rs("bookcontent"))<>"" then
if len(trim(rs("bookcontent")))> 58 then
response.write left(trim(rs("bookcontent")),56)&"..."
else
response.write trim(rs("bookcontent"))
end if
end if%>
<br>
市场价:<%=formatnumber(rs("shichangjia"),2)%>
会员价:<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)%>
</font>
<table align="center" cellpadding=0 cellspacing=0>
<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="images/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="images/shc.gif" width="46" height="19">
<%rs.movenext%>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<%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"> </td>
</tr>
</table>
<br>
<a href="<%=tx2url%>" target=_blank><img src="<%=tx2%>" width="370" height="65" border="0"></a></div>
</td>
<td width="1" valign="top" background="images/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="images/index7.gif" width="14" height="10"></div>
</td>
<td class=hg12 valign=bottom width="123"> <b>最新动态</b></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>
<td background="images/bj_5.gif" height="19"> </td>
</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"><a href="<%=tx3url%>" target=_blank><img src="<%=tx3%>" width="166" height="55" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 10 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="images/index7.gif" width="14" height="10"></div>
</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -