📄 index.asp
字号:
<td height="2"></td>
</tr>
<tr>
<td height="20">
<div align="center"> </div>
</td>
</tr>
<%i=0
do while not rs.eof%>
<tr>
<td>
<%response.write "<a href=book.asp?id="&rs("bookid")&" target=_blank title=此商品已成功销售"&rs("chengjiaocount")&"次>"
if len(trim(rs("bookname")))>12 then
response.write left(trim(rs("bookname")),11)&"..."
else
response.write trim(rs("bookname"))
end if
response.write "</a>"
%>
</td>
</tr>
<tr>
<td height="1" background="images/ppb.gif"></td>
</tr>
<%i=i+1
if i>=10 then exit do
rs.movenext
loop
rs.close
set rs=nothing%>
<tr>
<td height="1" background="images/ppb.gif"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="1" valign="top" background="images/bj_x.gif"></td>
<td width="381" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="29" bgcolor="#F0F0F0">
<table cellspacing=0 cellpadding=0 width=170 height="20">
<tr>
<td width=5> </td>
<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 14 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)/2)
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 width="50%">
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td valign=top width="41%" style="PADDING-LEFT: 6px"><br>
<img height=102 hspace=5
src="images/bg_book.gif" width=71 vspace=5 border=0>
<p style="MARGIN-TOP: -112px"><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>
<font color="#CC0000"><%=trim(rs("bookname"))%></font></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>
<td valign=top width="50%">
<%if rs.eof then%> <%else%>
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td valign=top width="41%" style="PADDING-LEFT: 6px"><br>
<img height=102 hspace=5
src="images/bg_book.gif" width=71 vspace=5 border=0>
<p style="MARGIN-TOP: -112px"><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>
<font color="#CC0000"><%=trim(rs("bookname"))%></font></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>
<%end if%>
</td>
</tr>
<%next%>
<%if rs.recordcount>6 then
rs.absoluteposition=7
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>
<div align="center"><a href="<%=tx1url%>" target=_blank><img src="<%=tx1%>" width="360" height="65" border="0"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#F0F0F0" 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>
<tbody>
<tr>
<td valign=top width="50%">
<%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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -