📄 boot.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">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return false">
<%dim id
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
end if
set rs_shjia=server.CreateObject("adodb.recordset")
strshjia="select * from shjia where shjiaid="&id
rs_shjia.open strshjia,conn,1,1
if rs_shjia.bof and rs_shjia.eof then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
end if
%> <!--#include file="webtop.asp"--> <table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr> <td width="180" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <!--#include file="history.asp"-->
<!--#include file="gouwucheinfo.asp"--> <!--#include file="searchinfo.asp"-->
<!--#include file="gong.asp"--> <!--#include file="news.asp"--> </td><td width="580" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="table-zuo">
<TABLE WIDTH="100%" CLASS="table-shang" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#FFFFFF" BACKGROUND="../<%=webbanner%>" HEIGHT="80">
<TR> <TD BGCOLOR="#CCCCCC" HEIGHT="2"></TD></TR><TR><TD BACKGROUND="../<%=trim(rs_shjia("logo2"))%>" WIDTH="560" HEIGHT="100"><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="100%" HEIGHT="100">
<PARAM NAME=movie VALUE="../swf/8.swf"> <PARAM NAME=quality VALUE=high><PARAM NAME="wmode" VALUE="transparent">
<EMBED SRC="../swf/8.swf" QUALITY=high PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" TYPE="application/x-shockwave-flash" WIDTH="100%" HEIGHT="100" WMODE="transparent"></EMBED>
</OBJECT></TD></TR> </TABLE><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td class="table-shangxia" bgcolor="#ffffff" height="35"><img src="../images/menu_06.gif" width="41" height="33" align="absmiddle">
<a href=index.asp?id=<%=rs_shjia("shjiaid")%>><%=rs_shjia("name")%></a> >> 特价促销</td></tr>
<td> <%set rs_shp=server.createobject("adodb.recordset")
rs_shp.open "select * from shop_books where shjiaid="&id&" and tejiabook=1 order by adddate,bookid desc",conn,1,1
if rs_shp.recordcount=0 then
%> <table width="90%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr><td align=center>暂无商品</td></tr> </table><%
else
rs_shp.PageSize =10 '每页记录条数
iCount=rs_shp.RecordCount '记录总数
iPageSize=rs_shp.PageSize
maxpage=rs_shp.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs_shp.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
For i=1 To x
%> <table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> <td width="30%" height="130" rowspan="4" align="center" class="table-xia">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TR> <TD width=100 height=100 bgColor=#ffffff align=center> <%if rs_shp("bookpic")="" then
response.write "<a href=../list.asp?id="&rs_shp("bookid")&" target=_blank><img src=../images/emptybook.gif width=90 height=90 border=0></a>"
else%> <a href=../list.asp?id=<%=rs_shp("bookid")%> target=_blank><img src="../<%=trim(rs_shp("bookpic"))%>" width=100 border=0 height=100></a>
<%end if%> </TD></TR> </TABLE></td><td class="table-xia" valign="top" STYLE='PADDING-TOP: 10px'>
<img src="../images/ring01.gif" width="9" height="9"> <a href=../list.asp?id=<%=rs_shp("bookid")%> target=_blank><font color="#ff3300"><%=trim(rs_shp("bookname"))%></font></a><br>
<font color="#666666"> <%if len(trim(rs_shp("bookcontent")))>52 then
response.write left(trim(rs_shp("bookcontent")),50)&"..."
else
response.write trim(rs_shp("bookcontent"))
end if%> </font></td><td width="20%" align="center" class="table-xia">
市场价:<s><%=trim(rs_shp("shichangjia"))%></s> 元<br> 会员价:<font color=red><%=trim(rs_shp("huiyuanjia"))%></font>
元<br> <a href="../gouwu.asp?id=<%=rs_shp("bookid")%>&action=add"><img src="../images/goumai.gif" width="65" height="20" border=0></a><br>
<a href="../shoucang.asp?id=<%=rs_shp("bookid")%>&action=add"><img src="../images/shoucang1.gif" width="65" height="20" border=0></a>
</td></tr> </table><%rs_shp.movenext
next
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
end if
rs_shp.close
set rs_shp=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一页下一页链接
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
query = Split(Request.ServerVariables("QUERY_STRING"), "&")
For Each x In query
a = Split(x, "=")
If StrComp(a(0), "page", vbTextCompare) <> 0 Then
temp = temp & a(0) & "=" & a(1) & "&"
End If
Next
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#f1f1f1>" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=center height=35>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write ("首 页 " & vbCrLf)
Response.Write ("上一页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首页</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上一页</A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write ("下一页 " & vbCrLf)
Response.Write ("尾 页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下一页</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾 页</A> " & vbCrLf)
end if
Response.Write(" 页次:" & page & "/" & pageCount & "页" & vbCrLf)
Response.Write(" 共有" & iCount & "种商品" & vbCrLf)
Response.Write(" 转到" & "<INPUT CLASS=wenbenkuang TYEP=TEXT NAME=page SIZE=2 Maxlength=5 VALUE=" & page & ">" & "页" & vbCrLf & "<INPUT CLASS=go-wenbenkuang type=submit value=GO>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%> </td></tr> </table></td></tr> </table><table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr> <td> <!--#include file="service.asp"--> <!--#include file="copyright.asp"-->
</td></tr> </table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -