?? tejia.asp
字號(hào):
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="Ubb.asp"-->
<html>
<head>
<title><%=webname%>--特價(jià)商品</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="webtop.asp" -->
<table width="770" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="EDECEC">
<tr>
<td width="180" valign="top" bgcolor="#FFFFFF">
<!--#include file="info_user.asp"-->
<!--#include file="info_brand.asp" -->
<!--#include file="info_hot.asp" -->
</td>
<td width="588" align="left" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/yemian/tejia.gif" width="590" height="34"></td>
</tr>
</table>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#EDECEC">
<tr>
<td width="588" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<div align="center">
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from sh_chanpin where tejiabook=1 order by adddate desc",conn,1,1
if rs.recordcount=0 then
%>
<table width="493" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td width="483" align=center>暫無(wú)推薦</td>
</tr>
</table>
<%
else
rs.PageSize =12 '每頁(yè)記錄條數(shù)
iCount=rs.RecordCount '記錄總數(shù)
iPageSize=rs.PageSize
maxpage=rs.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.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
For i=1 To x
%>
<!--#include file="info_prime2.asp" -->
<%rs.movenext
next
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
end if
rs.close
set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一頁(yè)下一頁(yè)鏈接
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 " & Table_style & ">" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=right>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write ("首頁(yè) " & vbCrLf)
Response.Write ("上頁(yè) " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首頁(yè)</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上頁(yè)</A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write ("下頁(yè) " & vbCrLf)
Response.Write ("尾頁(yè) " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下頁(yè)</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾頁(yè)</A> " & vbCrLf)
end if
Response.Write(" 頁(yè)次:" & page & "/" & pageCount & "頁(yè)" & vbCrLf)
Response.Write(" 共有" & iCount & "種商品" & vbCrLf)
Response.Write(" 轉(zhuǎn)到" & "<INPUT TYEP=TEXT NAME=page SIZE=1 Maxlength=5 VALUE=" & page & ">" & "頁(yè)" & vbCrLf & "<INPUT type=submit style=""font-size: 9pt"" value=GO class=b2>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</table>
<!--#include file="webfoot.asp"-->
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -