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

📄 forum.jsp

📁 一个jsp写的bbs
💻 JSP
📖 第 1 页 / 共 2 页
字号:
      操作:
      [<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>]-->
      <%
      HashMap values_link = new HashMap();
      values_link.put("bid", String.valueOf(boardid));
      values_link.put("tagId", tagId);
      pageContext.setAttribute("values_link", values_link);
      %>
      [<html:link action="/post?action=new" name="values_link">发表新帖</html:link>]
      [<html:link action="/votePost?action=new" name="values_link">新投票</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>]
      [<html:link action="/forumManage?action=m" paramId="bid" paramName="board" paramProperty="id">管理</html:link>]
      <!--<html:link action="/rss" paramId="bid" paramName="board" paramProperty="id" target="_blank"><img alt="Rss" src="images/rss200.png" border="0" align="absmiddle"/></html:link>-->
      <a href="rss?bid=<%=boardid%>" target="_blank"><img alt="Rss" src="images/rss200.png" border="0" align="absmiddle"/></a>
    </td>
    <td width="40%">
      <div align="right">版内文章查找
        <input name="text" type="text" class="input2" size="10" maxlength="50">
        <select name="con" class="select1">
          <option value="title">主题</option>
          <option value="userName">作者</option>
        </select>
        <html:submit styleClass="button1">查找</html:submit>
      </div>
    </td>
  </tr>
  </html:form>
</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">
        <!--<html:link action="/forum?action=index" paramId="bid" paramName="forumActionForm" paramProperty="bid">讨论版</html:link>-->
        <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>
      </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>
      <logic:equal value="history" name="forumActionForm" property="action">
        <strong>历史帖</strong>
      </logic:equal>
      <logic:notEqual value="history" name="forumActionForm" property="action">
        <html:link action="/forum?action=history" paramId="bid" paramName="forumActionForm" paramProperty="bid">历史帖</html:link>
      </logic:notEqual>
    </td>
    <td width="70%">
      <div align="right">
        <logic:equal value="index" name="forumActionForm" property="action">
        <logic:equal value="www" name="forumActionForm" property="viewMode">
          [<html:link action="/forum?viewMode=bbs&action=index" paramId="bid" paramName="boardid"><span class="font2">BBS方式</span></html:link>]
          [<html:link action="/forum?viewMode=lastre&action=index" paramId="bid" paramName="boardid"><span class="font2">顶帖方式</span></html:link>]
        </logic:equal>
        <logic:equal value="bbs" name="forumActionForm" property="viewMode">
          [<html:link action="/forum?viewMode=www&action=index" paramId="bid" paramName="boardid"><span class="font2">WWW方式</span></html:link>]
          [<html:link action="/forum?viewMode=lastre&action=index" paramId="bid" paramName="boardid"><span class="font2">顶帖方式</span></html:link>]
        </logic:equal>
        <logic:equal value="lastre" name="forumActionForm" property="viewMode">
          [<html:link action="/forum?viewMode=www&action=index" paramId="bid" paramName="boardid"><span class="font2">WWW方式</span></html:link>]
          [<html:link action="/forum?viewMode=bbs&action=index" paramId="bid" paramName="boardid"><span class="font2">BBS方式</span></html:link>]
        </logic:equal>
        </logic:equal>
        [分页: <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">
  <tbody>
  <tr>
    <td class="bgColor3">
      <table width="100%" border="0" cellpadding="5" cellspacing="1">
      <thead>
      <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>
      </thead>
      <tbody>
      <logic:iterate id="f" name="forumList" type="com.laoer.bbscs.bean.Forum">
      <tr>
        <td class="bgColor4">
          <div align="left">
            <bbscs:forum 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:forum name="f" type="title" forumCurrentPageName="pagesObj" forumCurrentPageProperty="page"/></span>
            <bbscs:forum name="f" type="titleitem" forumCurrentPageName="pagesObj" forumCurrentPageProperty="page"/>
          </div>
          <div id="u<%=f.getId()%>">
            <span class="link1">
              <html:link action="/userInfo?action=id" paramId="id" paramName="f" paramProperty="userID">
                <bean:write name="f" property="nickName"/>[<em><bean:write name="f" property="userName"/></em>]
              </html:link>
            </span>
            <span class="font4">(<bbscs:forum name="f" type="posttime"/>)</span>
          </div>
          <div class="summary1" id="s<%=f.getId()%>" style="display:none">
          </div>
        </td>
        <td class="bgColor4"><div align="center"><bbscs:forum name="f" type="click"/></div></td>
        <td class="bgColor2"><div align="center"><bbscs:forum name="f" type="renum"/></div></td>
        <td class="bgColor4">
          <div align="right" class="font4">
            <span class="font4"><bbscs:forum name="f" type="lasttime"/></span>
            <br/>
            <logic:notEqual value="---" name="f" property="lastPostNickName">
              <span class="link1">
                <html:link action="/userInfo?action=name" paramId="username" paramName="f" paramProperty="lastPostUserName">
                  <bean:write name="f" property="lastPostNickName"/>
                </html:link>
              </span>
            </logic:notEqual>
            <logic:equal value="---" name="f" property="lastPostNickName">
              <bean:write name="f" property="lastPostNickName"/>
            </logic:equal>
          </div>
        </td>
      </tr>
      </logic:iterate>
      </tbody>
    </table></td>
  </tr>
  </tbody>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <html:form action="/forum">
  <tr>
    <td>
      <div align="right">
        [分页: <bbscs:pages name="pagesObj"/>]
        <strong>论坛跳转</strong>
        <html:select property="bid" styleId="boardSelect" styleClass="select1" onchange="changeBoard();">
          <html:options collection="boardValues" property="value" labelProperty="label"/>
        </html:select>
      </div>
    </td>
  </tr>
  </html:form>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td>
      <html:form action="/search">
      <div align="center">
        <input name="query" type="text" class="input2">
        <input name="Submit2" type="submit" class="button1" value="全文搜索">
        <br>
        <input name="bid" type="radio" value="0" checked>
        搜索全部版面
        <input type="radio" name="bid" value="<%=boardid%>">
        只搜本版
      </div>
    </html:form>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td>
      <div align="center">
        <script type="text/javascript"><!--
        google_ad_client = "pub-9505761087047507";
        google_ad_width = 728;
        google_ad_height = 90;
        google_ad_format = "728x90_as";
        google_ad_type = "text";
        google_ad_channel = "";
        google_color_border = "6699CC";
        google_color_bg = "003366";
        google_color_link = "FFFFFF";
        google_color_text = "AECCEB";
        google_color_url = "AECCEB";
        //--></script>
        <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
      </div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td>
      <div align="center">
        <bbscs:webinfo type="pagefoot"/>
      </div>
    </td>
  </tr>
</table>
</body>
</html:html>

⌨️ 快捷键说明

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