%
const MaxPerPage=17
dim totalPut
dim CurrentPage
dim TotalPages
dim i
if Chkrequest(request("page")) then
currentPage=request("page")
else
currentPage=1
end if
dim sql
dim rs
dim gsid,qymc
gsid=session("id")
sql="select * from work where gsid="&gsid&" order by info_ID desc"
set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write ""
response.end
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
showpage totalput,MaxPerPage,"edit.asp"
content
else
if (currentPage-1)*MaxPerPage 发布日期 操作 <%=rs("dateandtime")%>
商务助手首页
发布商业信息
发布供求信息
管理供求信息
发布产品信息
管理产品信息
公司介绍
查看商业往来
我收到的留言
我发出的留言
发新留言
我订阅的信息
我的商业伙伴
我的会员资料
修改注册信息
修改密码
修改个人简介
我的自助网站
网站模板选择
">上传营业执照
">客户反馈管理
发布招聘信息
管理招聘信息
浏览我的网站
帮助
<%end sub%>
<%sub content%>
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "
<%do while not rs.eof%>
<%
i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
rs.close
set rs=nothing
%>
")"><%=rs("showname")%>