<%
dim start0,end0
end0=Timer
start0=request.cookies("second_start")
if request.cookies("second_start")="" then
response.cookies("login")="no"
elseif end0-start0>900 then
response.cookies("login")="no"
end if
%>
<%
const intpagesize=30
dim rst,strpath,strconn,straccess,straccess1,rst1
Dim intcur,inttotal,i,j
Dim rscount
if session("intcur")="" then
intcur=1
else
intcur=session("intcur")
end if
strpath=server.mappath("ttsj.mdb")
strconn="Driver={Microsoft Access Driver (*.mdb)};DBQ=" & strpath
set rst=server.createobject("adodb.recordset")
set rst1=server.createobject("adodb.recordset")
straccess="select * from jbxx where sfhf='0' order by id desc"
rst.CursorLocation=2
rst.CursorType=3
rst.CacheSize=intpagesize
rst.open straccess,strconn
rst.PageSize=intpagesize
if Not rst.EOF then
rst.AbsolutePage=intcur
end if
inttotal=rst.pagecount
rst.PageSize=intpagesize
session("intcur1")=intcur
session("inttotal")=inttotal
rscount=rst.recordcount
%>
<script language=vbscript>
<!--
function find
dim frmtmp
set frmtmp=document.inputform1
if frmtmp.ss1.value="select1" then
msgbox "请选择搜索方式!",32,"警告!"
elseif frmtmp.ss2.value="select2" then
msgbox "请选择搜索关键字!",32,"警告!"
elseif trim(frmtmp.ss3.value)="" then
msgbox "搜索内容不能为空!",32,"警告!"
frmtmp.ss3.focus()
else
frmtmp.submit
end if
end function
-->
</script>