📄 indexa.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="images/css.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!';return true" style="background-attachment: fixed">
<%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
%>
<tr>
<td >
<tr>
<td >
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="560">
<td width=498 rowspan="2">
<div align="left">
<img border="0" src="xs.jpg" width="174" height="19"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/bj_1.gif">
<table width="560" border="0" cellspacing="3" cellpadding="2">
<tr>
<td width="286" align="left">
<font color="#008000">
<%dim i
i=0
set rs=server.CreateObject("adodb.recordset")
rs.open "select top 6 newsname,adddate,newsid from shop_news order by adddate desc",conn,1,1
if rs.eof and rs.bof then
response.write "目前还没有新闻!"
else
do while not rs.eof
i=i+1
response.write "·<a href=# onClick=""javascript:window.open('news.asp?id="&rs("newsid")&"','','width=432,height=288,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日发布>"&trim(rs("newsname"))&"</a><br>"
if i>=5 then exit do
rs.movenext
loop
end if
rs.close
set rs=nothing%>
</font>
</td>
<td width="270" align="left">
<p align="center">
<embed width="250" height="90" src="../33.swf" align="left"></td>
</tr>
</table></td>
</tr>
</table>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 10 bookid,bookname,liulancount from shop_books order by liulancount desc",conn,1,1%>
</p>
</td>
<td width="1" valign="top" background="images/bj_x.gif"></td>
<td width="381" valign="top">
<div align="center">
<table width="560" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29">
<img border="0" src="cp.jpg" width="174" height="19"><a target="_blank" href="myuser.asp"><img border="0" src="images/user_login.gif" width="54" height="18"></a>
<a target="_blank" href="reg.asp">
<img border="0" src="images/user_submit.gif" width="54" height="18"></a></td>
</tr>
</table>
</div>
<div align="center">
<table width="560" border="0" cellspacing="0" cellpadding="0" 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
%>
<div align="center">
<table cellspacing=0 cellpadding=0 border=0 width="500">
<%
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">
<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><p style="MARGIN-TOP: -112px"> </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>
<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">
<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><p style="MARGIN-TOP: -112px"> </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>
<%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="20" 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="20" 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>
</div>
<%end if%>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -