⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bbsbm.asp

📁 进入后台
💻 ASP
字号:
<!--#include file="config.asp"-->
<!--#include file="head.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=Sitename&"-网址:"&Sitehttp%></title>
<LINK href="css.css" type=text/css rel=stylesheet>
</head>
<body>
<%call sitehead
bid=clng(request("bid"))
if bid="" or bid<0 then ShowError("访问的版面不存在")
rs.open "select * from bbsbm where id="&bid&"",conn,1,1
	If Rs.eof and Rs.bof Then ShowError("访问的版面不存在")
	bmname=rs("bmname")
	bmadmin=rs("bmadmin")
	rs.close
action=request("action")%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f9f8f2" class="border">
  <tr>
    <td height="25">  <img src="skins/1/xb3.gif">&nbsp;当前位置:<a href="index.asp">首页</a> &gt;&gt; <a href="bbs.asp">论坛</a> &gt;&gt; <a href="bbsbm.asp?bid=<%=bid%>"><%=bmname%></a><%if action="good" then%> &gt;&gt; 精华帖子
    <%end if%></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border2">
  <tr>
    <td width="545" height="30">版主:
      <%if bmadmin<>"" then
	bmadmin=Split(bmadmin,",")
	upnun=ubound(bmadmin)
	for StartID=0 to upnun%>
	<A href="datum.asp?userid=<%=bmadmin(StartID)%>"><FONT color=#3333FF><%=obj.getname(bmadmin(StartID),1,SiteDatabase)%></FONT></A> 
  <%next
  else
	response.write "暂无版主"
	end if%></td>
    <td width="215"><%if session("xyluserid")<>"" then%><a href="bbsadd.asp?bid=<%=bid%>"><img src="skins/1/bbsface/fabiao.gif" width="90" height="28" border="0"></a><a href="?bid=<%=bid%>&action=good"><img src="skins/1/bbsface/good.gif" width="90" height="28" border="0"></a>
      <%end if%></td>
  </tr>
</table>
<table width="760" align="center" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC" class="tableborder">
  <tr>
    <td height="25" bgcolor="#FFCCCC" colspan="5">  <span class="style3"><%=bmname%></span></td>
  </tr>
  <tr>
  <td width="5%" height="20" bgcolor="#f9f8f2">&nbsp;</td>
    <td width="50%" height="15" bgcolor="#F1F1F1">标题</td>
    <td width="10%" bgcolor="#f9f8f2"><div align="center">作者</div></td>
    <td width="10%" bgcolor="#F1F1F1"><div align="center">回复/查看</div></td>
    <td bgcolor="#f9f8f2">最后发表</td>
  </tr>
<%if action="good" then
rs.open "select * from bbs where bbsbm="&bid&" and laye=0 and good=1 order by atop desc,lastdate desc,id desc",conn,1,1
else
rs.open "select * from bbs where bbsbm="&bid&" and laye=0 order by atop desc,lastdate desc,id desc",conn,1,1
end if
	If Rs.eof and Rs.bof Then
	Response.write("<center>暂版没有任何帖子</center>")
	else
	dim strFileName,i,j,totalPut,CurrentPage,TotalPages
					totalPut=rs.recordcount
					const MaxPerPage=20
					strFileName="?bid="&bid&"&action="&action&""
					if request("page")<>"" then
						currentPage=cint(request("page"))
					else
						currentPage=1
					end if
					if currentPage<>1 and (currentPage-1)*MaxPerPage<totalPut then
					rs.move (currentPage-1)*MaxPerPage
					else
					currentPage=1
					end if
					i=0
	do while not rs.eof
	imasrc=rs("face")
	if rs("lock")=1 then imasrc="lock.gif"
	if rs("good")>0 then imasrc="jing.gif"
	if rs("atop")=1 then imasrc="top.gif"
	if rs("atop")=2 then imasrc="alltop.gif"%>
  <tr>
    <td width="5%" bgcolor="#f9f8f2"><div align="center"><a href="bbsview.asp?aid=<%=rs("id")%>"><img src="skins/1/bbsface/<%=imasrc%>" border="0"></a></div></td>
    <td width="50%" bgcolor="#F1F1F1"><a href="bbsview.asp?aid=<%=rs("id")%>"><%=rs("title")%></a></td>
    <td width="10%" bgcolor="#f9f8f2"><div align="center"><A href="datum.asp?userid=<%=rs("userid")%>"><%=obj.getname(rs("userid"),1,SiteDatabase)%></a></div></td>
    <td width="10%" bgcolor="#F1F1F1"><div align="center"><%=rs("hf")&"/"&rs("view")%></div></td>
    <td bgcolor="#f9f8f2"><%=rs("lastdate")%> <b>By</b> <A href="datum.asp?userid=<%=rs("lastuserid")%>"><%=obj.getname(rs("lastuserid"),1,SiteDatabase)%></a></td>
  </tr>
<%i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
end if%>
<tr>
    <td height="25" bgcolor="#f9f8f2" colspan="5"><div align="center"><%=obj.showpage(strFileName,totalput,MaxPerPage,true,true,"条",currentPage)%></div></td>
  </tr>
</table>
<%rs.close
set rs=nothing%>
<br>
<TABLE width="760" border=1 align=center cellPadding=1 cellSpacing=1 class="tableborder" style="BORDER-COLLAPSE: collapse">
  <TBODY>
  <TR>
    <TD width=120 height="27" bgColor=#F1F1F1>&nbsp;       <font color=#000000>帖子类型:</font></TD>
    <TD bgColor=#f9f8f2>
      <div align="center"><IMG src="skins/1/bbsface/alltop.gif" width="17" height="17" border=0 align=absMiddle> 总置顶帖子 &nbsp;&nbsp;&nbsp; <IMG src="skins/1/bbsface/top.gif" width="22" height="25" border=0 align=absMiddle> 置顶帖子 &nbsp;&nbsp;&nbsp; <IMG src="skins/1/bbsface/jing.gif" width="22" height="25" border=0 align=absMiddle> 精华帖子&nbsp;&nbsp;&nbsp;<img src="skins/1/bbsface/lock.gif" width="25" height="23" align=absMiddle>锁定帖子</div></TD>
</TR></TBODY></TABLE><br>
<%call sitebottom%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -