%
sql2="select name,ch,qymc,phone,fax,email from corporation where id="&session("id")&""
set rs2=conn.execute(sql2)
if session("flag")<>1 then
if not rs2.eof or isnull(rs2("qymc")) then
response.redirect "upgrade.asp"
response.end
end if
end if
rs2.close
set rs2 = nothing
%>
<%
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
MaxPerPage=9
if Chkrequest(request("page")) then
currentPage=request("page")
else
currentPage=1
end if
dim rs
dim sql
set rs=server.createobject("adodb.recordset")
sql="select * from mod"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "
对不起,没有任何信息!
"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"webmod.asp"
else
if (currentPage-1)*MaxPerPage
|

<%
conn.close
set conn=nothing
%> |