日期:2014-05-17 浏览次数:20784 次
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/conngongsi.asp" -->
<%response.Charset="utf-8"%>
<% keyword=request.QueryString("keyword") '获取keyword参数和建立记录集
If (CStr(Request("MM_insert")) = "form1") Then
if keyword=""then
response.write " <script language='javascript'>"
response.write "alert( '请输入内容后在查询! ');"
response.write "history.go(-1);"
response.write "</script> "
response.end
end if
end if
sql="select * from book where book_biaoti like '%"&keyword&"%' ORDER BY ID DESC"
set rs1=server.CreateObject("adodb.recordset")
rs1.open sql,MM_conngongsi_STRING,1,3
%>
<%
rs1.pagesize=5 '分页代码
if request.QueryString("page")<>"" then
epage=cint(request.QueryString("page"))
if epage<1 then epage=1
if epage>rs1.pagecount then epage=rs1.pagecount
else
epage=1
end if
rs1.absolutepage=epage
%>
<% If (CStr(Request("yeshu")) = "form2") Then
if request.QueryString("dpage")="" then '从表单dpage项获取要访问的页面
response.write " <script language='javascript'>"
response.write "alert( '请输入要到达的页数! ');"
response.write "history.go(-1);"
response.write "</script> "
response.end
else
dwg=request.QueryString("dpage")
response.redirect "lyb.asp?keyword="&keyword&"&page="&dwg&""
end if
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/