%
set conn=server.CreateObject("adodb.connection")
conn.Open connstr
if Request("ID")<>"" then
id = Request("ID")
else
id=0
end if
Sql = "SELECT * FROM jbzt_wz WHERE jbztwz_id="&id
set RS=conn.Execute(Sql)
%>
"
else
RS.PageSize = PageSize
Total=INT(RS.recordcount / PageSize * -1)*-1
PageNo=Request("pageno")
if PageNo="" Then PageNo = 1
if PageNo < 1 Then
PageNo = 1
end if
RS.AbsolutePage = PageNo
position=RS.PageSize*PageNo
pagebegin=position-RS.PageSize+1
if position < RS.RecordCount then
pagend=position
else
pagend= RS.RecordCount
end if
i = 1
Do while not (RS is nothing)
RowCount = RS.PageSize
J = 1
Do While Not RS.EOF and rowcount > 0
%>