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

📄 forumhistory.jsp

📁 一个jsp写的bbs
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<bean:define id="boardid" name="board" scope="request" property="id"/>
<bean:define id="pagesObj" name="pl" property="pages" scope="request" type="com.laoer.bbscs.service.web.Pages"/>
<bean:define id="forumList" name="pl" property="objectList" scope="request" type="java.util.List"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html xhtml="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>论坛版区-<bean:write name="board" property="boardName"/></title>
<link href="css/css1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript" src="js/jsMsg.jsp"></script>
<script type="text/javascript" src="js/xmlHttpRequest.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
var ViewSummaryOjb = function(bid,id){
  this.bid = bid;
  this.id = id;
}

ViewSummaryOjb.prototype.execute = function(resText) {
  $('s' + this.id).innerHTML = resText;
}

function viewSummary(bid,id) {
  displayElement("s" + id);
  $('s' + id).innerHTML = pageLoading;
  var url = getActionMappingURL("/readHistory?action=summary&ajax=shtml&id=" + id + "&bid=" + bid);
  var oBBSXml = new BBSXml();
  var oViewSummaryOjb = new ViewSummaryOjb(bid,id);
  oBBSXml.GetUrlTextInObj(url,oViewSummaryOjb);
}

function closeSummary(id) {
  $('s' + id).innerHTML = "";
  hiddenElement("s" + id);
}

function load() {
  var name=navigator.appName
  var vers=navigator.appVersion
  if(name=='Netscape'){
    window.location.reload(true)
  }
  else{
    history.go(0)
  }
}

function boardsave(bid) {
  var url = getActionMappingURL("/boardSave?action=save&ajax=xml&bid="+bid);
  var oBBSXml = new BBSXml();
  oBBSXml.GetUrlXml(url,boardsaveComplete);
}

function boardsaveComplete(resXML) {
  var codeid = getResponseXMLMsgsCodeid(resXML);
  alert(getResponseXMLMsgsMessage(resXML));
}
//-->
</script>
</head>

<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td width="100%" valign="top" class="bgColor3">
      <html:link action="/in">社区封面</html:link>
      <logic:iterate id="pboard" name="pboards" scope="request" type="com.laoer.bbscs.bean.Board">
      &raquo;
      <logic:equal value="true" name="URR" scope="request">
      <a href="forum-index-<%=pboard.getId().longValue()%>.html"><bean:write name="pboard" property="boardName"/></a>
      </logic:equal>
      <logic:notEqual value="true" name="URR" scope="request">
      <html:link action="/forum?action=index" paramId="bid" paramName="pboard" paramProperty="id"><bean:write name="pboard" property="boardName"/></html:link>
      </logic:notEqual>
      </logic:iterate>
      &raquo;
      <logic:equal value="true" name="URR" scope="request">
        <a href="forum-index-<%=boardid%>.html"><bean:write name="board" property="boardName"/></a>
      </logic:equal>
      <logic:notEqual value="true" name="URR" scope="request">
        <html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id"><bean:write name="board" property="boardName"/></html:link>
      </logic:notEqual>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="table8">
  <tr>
    <td width="1%">&nbsp;</td>
    <td width="1%" class="bgColor1">&nbsp;</td>
    <td width="98%"><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr>
        <td width="36%"><strong><bean:write name="board" property="boardName"/></strong></td>
        <td width="64%" rowspan="3" valign="top">版面公告</td>
      </tr>
      <tr>
        <td>共 <strong><bean:write name="pagesObj" property="totalNum"/></strong> 帖 </td>
        </tr>
      <tr>
        <td>版主:<bbscs:boardmaster name="board" property="boardMaster" scope="request"/></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%" height="2" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table9">
  <tr>
    <td width="53%">
      操作:
      [<a href="javascript:load();">刷新</a>]
      <logic:equal value="index" name="forumActionForm" property="action">
      [<html:link action="/post?action=new" paramId="bid" paramName="board" paramProperty="id">发表新帖</html:link>]
      [<html:link action="/votePost?action=new" paramId="bid" paramName="board" paramProperty="id">新投票</html:link>]
      </logic:equal>
      [<a href="javascript:;" onclick="boardsave('<%=boardid%>');">加进珍藏</a>]
      [<html:link action="/subs?action=index" paramId="bid" paramName="board" paramProperty="id">已订阅主题</html:link>]
    </td>
    <td width="47%"><div align="right">版内文章查找
        <input name="textfield" type="text" class="input2" size="10">
        <select name="select" class="select1">
          <option value="0">主题</option>
            </select>
        <input name="Submit" type="button" class="button1" value="查找">
    </div></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td width="30%">
      <logic:equal value="index" name="forumActionForm" property="action">
        <strong>讨论版</strong>
      </logic:equal>
      <logic:notEqual value="index" name="forumActionForm" property="action">
        <logic:equal value="true" name="URR" scope="request">
          <a href="forum-index-<%=boardid%>.html">讨论版</a>
        </logic:equal>
        <logic:notEqual value="true" name="URR" scope="request">
        <html:link action="/forum?action=index" paramId="bid" paramName="forumActionForm" paramProperty="bid">讨论版</html:link>
        </logic:notEqual>
        <!--<html:link action="/forum?action=index" paramId="bid" paramName="forumActionForm" paramProperty="bid">讨论版</html:link>-->
      </logic:notEqual>
      <html:link action="/refine?action=index&pid=0" paramId="bid" paramName="forumActionForm" paramProperty="bid">精华区</html:link>
      <logic:equal value="hot" name="forumActionForm" property="action">
        <strong>热门帖</strong>
      </logic:equal>
      <logic:notEqual value="hot" name="forumActionForm" property="action">
        <html:link action="/forum?action=hot" paramId="bid" paramName="forumActionForm" paramProperty="bid">热门帖</html:link>
      </logic:notEqual>
      <logic:equal value="commend" name="forumActionForm" property="action">
        <strong>推荐帖</strong>
      </logic:equal>
      <logic:notEqual value="commend" name="forumActionForm" property="action">
        <html:link action="/forum?action=commend" paramId="bid" paramName="forumActionForm" paramProperty="bid">推荐帖</html:link>
      </logic:notEqual>
      <strong>历史帖</strong>
    </td>
    <td width="70%">
      <div align="right">
        [分页: <bbscs:pages name="pagesObj"/>]
      </div></td>
  </tr>
  <tr class="bgColor1">
    <td height="3" colspan="2"></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="bgColor3"><table width="100%" border="0" cellpadding="5" cellspacing="1">
      <tr>
        <td width="6%" class="bgColor3"><div align="center"><strong>状态</strong></div></td>
        <td width="66%" class="bgColor3"><div align="center"><strong>主题</strong></div></td>
        <td width="8%" class="bgColor3"><div align="center"><strong>点击</strong></div></td>
        <td width="8%" class="bgColor3"><div align="center"><strong>回应</strong></div></td>
        <td width="12%" class="bgColor3"><div align="center"><strong>最后回复</strong></div></td>
      </tr>
      <logic:iterate id="f" name="forumList" type="com.laoer.bbscs.bean.ForumHistory">
      <tr>
        <td class="bgColor4">
          <div align="left">
            <bbscs:forumHistory name="f" type="face"/>
            <logic:equal value="1" name="f" property="canNotDel">
            M
            </logic:equal>
          </div>
        </td>
        <td class="bgColor2">
          <div id="t<%=f.getId()%>">
            <span class="font1"><bbscs:forumHistory name="f" type="title" forumCurrentPageName="pagesObj" forumCurrentPageProperty="page"/></span>
            <bbscs:forumHistory name="f" type="titleitem" forumCurrentPageName="pagesObj" forumCurrentPageProperty="page"/>
          </div>
          <div class="font4" id="u<%=f.getId()%>">
            <bean:write name="f" property="nickName"/>[<em><bean:write name="f" property="userName"/></em>]
            (<bbscs:forumHistory name="f" type="posttime"/>)
          </div>
          <div class="summary1" id="s<%=f.getId()%>" style="display:none">
          </div>
        </td>
        <td class="bgColor4"><div align="center"><bbscs:forumHistory name="f" type="click"/></div></td>
        <td class="bgColor2"><div align="center"><bbscs:forumHistory name="f" type="renum"/></div></td>
        <td class="bgColor4">
          <div align="right" class="font4">
            <bbscs:forumHistory name="f" type="lasttime"/>
            <br>
            <bean:write name="f" property="lastPostNickName"/></div>
        </td>
      </tr>
      </logic:iterate>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td><div align="right">[分页: <bbscs:pages name="pagesObj"/>]</div></td>
  </tr>
</table>
</body>
</html:html>

⌨️ 快捷键说明

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