📄 index4.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function demo(Page,scrl){
if (false)window.close();
if (!window.win || win.closed)
{
win=open(Page,"gouwu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=450,height=350,scrollbars="+scrl+",resizable=1");
}
else{
win.close();
win=open(Page,"gouwu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=450,height=350,scrollbars="+scrl+",resizable=1");
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<%dim dada,dadaurl,xiao1,xiao2,xiao3,xiao1url,xiao2url,xiao3url,tx1,tx1url,tx2,tx2url,tx3,tx3url
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,1
dada=trim(rs("458"))
dadaurl=trim(rs("458url"))
xiao1=trim(rs("2541"))
xiao1url=trim(rs("2541url"))
xiao2=trim(rs("2542"))
xiao2url=trim(rs("2542url"))
xiao3=trim(rs("2543"))
xiao3url=trim(rs("2543url"))
tx1=trim(rs("1441"))
tx1url=trim(rs("1441url"))
tx2=trim(rs("1442"))
tx2url=trim(rs("1442url"))
tx3=trim(rs("1443"))
tx3url=trim(rs("1443url"))
rs.close
set rs=nothing
%>
<%dim gg1,gg2,gg3,gg4,gg1url,gg2url,gg3url,gg4url
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,1
gg1=trim(rs("1601"))
gg1url=trim(rs("1601url"))
gg2=trim(rs("1602"))
gg2url=trim(rs("1602url"))
gg3=trim(rs("1603"))
gg3url=trim(rs("1603url"))
gg4=trim(rs("1604"))
gg4url=trim(rs("1604url"))
rs.close
set rs=nothing
%>
<!--#include file="webtop.asp"-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" class="table-zuoyou">
<tr bordercolor="#FFFFFF">
<td valign="top" bgcolor="#FFFFFF" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35">
<div align="center">
<table width="100%" class="table-xia" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23" bgcolor="f1f1f1"> <b><font color="#993300">推荐特价>>></font></b></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr> </tr>
<%set rs=server.createobject("adodb.recordset")
rs.open "select Top 4 * from shop_books where tejiabook=1 and bestbook=1 order by bookid,bookname desc",conn,1,1
if rs.recordcount=0 then
response.write "<tr><td> 暂无推荐特价</td></tr>"
else
%>
<tr>
<%
while not rs.eof%>
<td align=center><a href=list.asp?id=<%=rs("bookid")%>>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=list.asp?id="&rs("bookid")&"><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
</a>
<table width="150" border="0" cellspacing="0" cellpadding="0" height="150">
<tr>
<td background="images/xt.gif">
<div align="center"><a href=list.asp?id=<%=rs("bookid")%>><img src="<%=trim(rs("zhuang"))%>" width=115 border=0 height="115" alt="<%=trim(rs("bookname"))%>"></a></div>
</td>
</tr>
</table>
<%end if%>
</td>
<%
rs.movenext
wend
%>
</tr>
<%
end if
rs.close
set rs=nothing
%>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr> </tr>
</table>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" bordercolor="#ffffff" width="576" align="center">
<table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23">
<!--#include file="xinxi.asp"-->
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="table-shang">
<tr>
<td width="50%" valign="top">
<table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23" bgcolor="f1f1f1"> <font color="#FF0000">新品上架</font></td>
</tr>
</table>
<table width="100%%" border="0" cellspacing="0" cellpadding="3">
<%set rs=server.createobject("adodb.recordset")
rs.open "select Top 6 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
if rs.recordcount=0 then
response.write "<tr><td> 暂无新品</td></tr>"
else
while not rs.eof
%>
<tr>
<td height="11"> <a href=list.asp?id=<%=rs("bookid")%>>
<%if len(trim(rs("bookname")))>20 then
response.write left(trim(rs("bookname")),20)&"...."
else
response.write trim(rs("bookname"))
end if%>
</a></td>
</tr>
<%
rs.movenext
wend
end if
rs.close
%>
</table>
</td>
<td width="50%" valign="top">
<!--#include file="gonggaoinfo.asp"-->
</td>
</tr>
</table>
<table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23" bgcolor="f1f1f1"> 精品热卖 </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select Top 12 * from shop_books where bestbook=1 order by bookid,bookname 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="95%">
<%
dim i_1,i_count
i_1=int((rs.recordcount+1)/2)
if i_1>5 then
i_1=5
end if
'response.write i_1
for i_count=1 to i_1%>
<tr>
<td valign=top width="300">
<table cellspacing=0 cellpadding=0 width="100%" class="table-xia">
<tr>
<td valign=top width="50%" style="PADDING-LEFT: 6px"><br>
<%if rs("bookpic")="" then
response.write "<div align=center><a href=list.asp?id="&rs("bookid")&"><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
else%>
<div align="center">
<table width="99" border="0" cellspacing="0" cellpadding="0" height="99">
<tr>
<td background="images/xt_bj.gif">
<div align="center"><a href=list.asp?id=<%=rs("bookid")%>><img src="<%=trim(rs("bookpic"))%>" width=75 border=0 height="75"></a></div>
</td>
</tr>
</table>
<%end if%>
</div>
</td>
<td valign=top width="50%"><a class=a4
href=list.asp?id=<%=rs("bookid")%>><font color=#FF6600><br>
<%=trim(rs("bookname"))%></font></a><br>
市场价:<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价:<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
VIP 价:<font color=#FF0000><%=formatnumber(rs("Vipjia"),2)&"元"%></font><br>
<font color="#999999"> </font>
<table cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr>
<td><a href="gouwu.asp?id=<%=rs("bookid")%>&action=add"><img src="images/goumai.gif" width="50" height="19" border=0></a> <a href="shoucang.asp?id=<%=rs("bookid")%>&action=add"><img src="images/shoucang1.gif" width="50" height="19" border=0></a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr align="right">
<td valign=top colspan="2" style="PADDING-LEFT: 6px"><font color="#999999">
</font>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font color="#999999">
<%if len(trim(rs("bookcontent")))>50 then
response.write left(trim(rs("bookcontent")),50)&"...."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -