|
<%
gsid=session("id")
sql="select * from info where gsid="&gsid&" order by dateandtime desc"
'response.write sql
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write ""
response.end
else
msg_per_page=10 '定义每页显示记录条数
rs.pagesize=msg_per_page '定义分页记录集每页显示记录数
if not (rs.eof and rs.bof) then
totalrec=RS.RecordCount'总记录条数
if rs.recordcount mod msg_per_page=0 then'计算总页数,recordcount:数据的总记录数
n=rs.recordcount\msg_per_page'n:总页数
else
n=rs.recordcount\msg_per_page+1
end if
currentpage=request("page")'currentpage:当前页
If currentpage <> "" then
currentpage = cint(currentpage)
if currentpage < 1 then
currentpage = 1
end if
if err.number <> 0 then '错误处理
err.clear
currentpage=1
end if
else
currentpage=1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
currentPage=1
end if
rs.absolutepage=currentpage'absolutepage:设置指针指向某页开头
rowcount=rs.pagesize'pagesize:设置每一页的数据记录数
end if
%>
<%
sql1="select count(info_id) from info where gsid="&gsid&""
set totle=conn.execute(sql1)
totle=totle(0)
sql2="select count(info_id) from info where gsid="&gsid&" and flag=1"
set totle2=conn.execute(sql2)
totle2=totle2(0)
response.write"您总共发布了"
response.write" "&totle&" 条供求信息,"
response.write"已审核 "&totle2&" 条,"
response.write"尚未通过审核 "&(totle-totle2)&" 条。"
totle.close
set totle=nothing
totle2.close
set totle2=nothing
%> |
<%end if%>
特别提醒:
1、为保证信息的真实性,您发布的供求信息并不会立即在网上发布:
· 如果您是多乐会员,您的信息将在二小时内审核;
·
如果您是普通会员,您的信息将在二十四小时内审核!
2、发布信息后,为保证客户及时与您联系,请确保您的联系信息(特别是电话、电子邮箱地址)准确无误。
3、请勿一天内重复提交相同内容的信息,否则将不被审核通过。
| |
|