书签 分享 收藏 举报 版权申诉 / 23

类型asp论坛制作教程 BBS ASP源码.docx

  • 文档编号:29792069
  • 上传时间:2023-07-27
  • 格式:DOCX
  • 页数:23
  • 大小:24.73KB

     作者:

auname=<%=showbbs("name")%>"><%=showbbs("name")%> 

     <%ifshowbbs("countwb")=0then%>

      回复<<%=showbbs("countwb")%>>

--回复条数-->

     <%else%>

      

id=<%=showbbs("id")%>">

      回复<<%=showbbs("countwb")%>>

      

--回复条数-->

     <%endif%> 

  

     <%wt=showbbs("wtime")'如果为撰写当天的时间,红色显示。

     ifyear(now())=year(wt)andmonth(now())=month(wt)andday(now())=day(wt)then%>

      撰写/修改时间:

<%=wt%> 

     <%else%>

      撰写/修改时间:

<%=wt%> 

     <%endif%>

  

     

id=<%=showbbs("id")%>">修改

     

id=<%=showbbs("id")%>">删除

dashed#999999">

<%showbbs.movenext

ifshowbbs.EOFthenexitfor

Next%>


<%'以下为页码显示。

ifPage<>1then%>

Page=1&CurrentPageN=1">(首页)

<%else%>

(当前为首页)

<%endif%>

<%ifPageCount>PageNandCurrentPageN>=2then%>

Page=<%=(CurrentPageN-2)*PageN+1%>&CurrentPageN=<%=CurrentPageN-1%>">(上<%=PageN%>页)

<%endif%>

<%fori=(CurrentPageN-1)*PageN+1to(CurrentPageN-1)*PageN+PageN%>

<%ifi=Pagethen%>

     -<%=i%>-

<%elseifi

     

page=<%=i%>&CurrentPageN=<%=CurrentPageN%>"> <%=i%> 

<%endif%>

<%Next%>

<%ifPageCount>PageNandCurrentPageN

Page=<%=CurrentPageN*PageN+1%>&CurrentPageN=<%=CurrentPageN+1%>">(下<%=PageN%>页)

<%endif%>

<%ifPageCount>PageNandPage<>PageCountthen%>

Page=<%=PageCount%>&CurrentPageN=<%=int(PageCount/PageN)+1%>">(最后一页)

<%endif%>

<%ifPageCount=Pagethen%>(当前为最后页)<%endif%>

(共<%=PageCount%>页)

<%showbbs.Close

setshowbbs=nothing

endif

endsub%>

--------------------------------------------------->

<%subsaysth()

'下方的快捷发表表单

name=request.QueryString("name")%>

      style="border-collapse:

collapse;" 

      width=600align=center>

发表文章:


大名:

>

密码:

12px">

点此注册

标题:


内容:



<%endsub%>

------------------------------------------------------------->

讨论区首页

     

        

       <%headtext()%>

        

     

     

        

       <%maintalk()%><%saysth()%>

        

     

  

     

        

        

        

     

--#includefile="footer.htm"-->

6、show.asp 

源代码:

--#includefile="conn.asp"-->

--#includefile="header.htm"-->

<%id=request.querystring("id")

setshow=conn.execute("select*frombbswhereid="&id&"")'全局%>

<%submaintalk

'主文章%>


<%=show("title")%>

作者:

auname=<%=show("name")%>"><%=show("name")%> 

撰写/修改时间:

<%=show("wtime")%> 

id=<%=show("id")%>">修改

id=<%=show("id")%>">删除

内容:

<%=show("body")%>


<%endsub%>

<%subwbtalk()

'回复文章%>

<%sql="select*frombbbswherehostid='"&id&"'orderbybtimeasc"

setshowwback=conn.execute(sql)

floori=0

dowhilenotshowwback.eof'没有像主页那样分页,原理相同。

floori=floori+1%>

<%=floori%>楼:

<%=showwback("btitle")%>

回复人:

auname=<%=showwba

举报
举报
版权申诉
版权申诉
word格式文档无特别注明外均可编辑修改;预览文档经过压缩,下载后原文更清晰! 立即下载
配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
asp论坛制作教程 BBS ASP源码 asp 论坛 制作 教程 源码
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:asp论坛制作教程 BBS ASP源码.docx
链接地址:https://www.bdocx.com/doc/29792069.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开