read.jsp

来自「一个jsp写的bbs」· JSP 代码 · 共 459 行 · 第 1/2 页

JSP
459
字号
<%@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/FCKeditor.tld" prefix="FCK"%>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<%@page import="com.laoer.bbscs.comm.*"%>
<bean:define id="boardid" name="board" scope="request" property="id"/>
<bean:define id="tagId" name="readForm" scope="request" property="tagId" type="java.lang.String"/>
<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><bbscs:webinfo type="forumname"/> - <bean:write name="title" filter="false"/><bbscs:webinfo type="poweredby"/></title>
<!--<bbscs:webinfo type="meta"/>-->
<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/prototype.js"></script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="js/read.js"></script>
<script type="text/javascript">
function postSubmit() {
  document.getElementById("postButton").disabled = true;
  document.postForm.submit();
}
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="readBoard">
  <tr>
    <td width="43%">
      <html:link action="/in">社区封面</html:link>
      <!--
      <logic:iterate id="pboard" name="pboards" scope="request">
      &raquo;
      <html:link action="/forum?action=index" paramId="bid" paramName="pboard" paramProperty="id"><bean:write name="pboard" property="boardName"/></html:link>
      </logic:iterate>
      &raquo;
      <html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id"><bean:write name="board" property="boardName"/></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>
      <logic:notEqual value="0" name="readForm" property="tagId">
      <bean:define id="b" name="board" type="com.laoer.bbscs.bean.Board"/>
      &raquo;
      <%=b.getBoardTagById(tagId).getTagName()%>
      </logic:notEqual>

    </td>
    <td width="57%">
      <div align="right">
        [分页: <bbscs:pages name="pagesObj" argPage="inpages" argTotal="topicTotal"/>]
        <logic:equal value="topic" name="readForm" property="action">
          [<bbscs:topic type="own"/>]
        </logic:equal>
        <logic:equal value="own" name="readForm" property="action">
          [<bbscs:topic type="topic"/>]
        </logic:equal>
        [<bbscs:topic type="mailsendtopic"/>]
        [<bbscs:topic type="subs"/>]
        [<bbscs:topic type="returnforum"/>]
      </div>
    </td>
  </tr>
  <tr>
    <td colspan="2" class="bgColor2">
      本主题地址:<span id="posturl" class="font6"><bbscs:topic type="posturl"/></span> <!--<a href="javascript:;" onclick="copyPostUrl();">复制此地址</a>-->
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
  <tr>
    <td width="83%">
    <!--
    <table width="100%" border="0" cellpadding="5" cellspacing="0" class="table6">
      <tr>
        <td class="bgColor4">本主题地址:<span class="font6"><bbscs:topic type="posturl"/></span></td>
      </tr>
    </table>

	<table width="100%" height="1" border="0">
        <tr>
          <td></td>
        </tr>
      </table>-->
      <logic:iterate id="f" name="forumList" type="com.laoer.bbscs.bean.Forum" indexId="index">
      <div id="topic<%=f.getId()%>">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td class="bgColor5">
            <table width="100%" border="0" cellpadding="4" cellspacing="1">
              <tr>
                <td colspan="2" class="bgColor3">
                  <span class="font2">[<bbscs:forum name="f" type="floor"/>]</span>
                  <bbscs:forum name="f" type="face"/>
                  <span class="font1">
                    <strong>主题:<bean:write name="f" property="title"/></strong>
                    <span id="cndt<%=f.getId()%>">
                      <logic:equal value="1" name="f" property="canNotDel">M</logic:equal>
                    </span>
                  </span>
                </td>
              </tr>
              <tr>
                <td width="21%" valign="top" class="bgColor4">
                  <html:link action="/userInfo?action=id" paramId="id" paramName="f" paramProperty="userID"><bean:write name="f" property="nickName"/>(<bean:write name="f" property="userName"/>)</html:link>
                </td>
                <td width="79%" class="bgColor2">
                  <div align="right">
                    <logic:notEqual value="own" name="readForm" property="action">
                    <logic:equal value="index" name="readForm" property="fcaction">
                    <span id="topset<%=f.getId()%>">
                    <logic:equal value="1" name="f" property="isNew">
                      <logic:equal value="0" name="f" property="isTop">
                      [<a href="javascript:;" onclick="topSet('<%=boardid%>','<%=f.getId()%>','top');"><bean:message key="post.settop"/></a>]
                      </logic:equal>
                      <logic:notEqual value="0" name="f" property="isTop">
                      [<a href="javascript:;" onclick="topSet('<%=boardid%>','<%=f.getId()%>','untop');"><bean:message key="post.untop"/></a>]
                      </logic:notEqual>
                    </logic:equal>
                    </span>
                    <span id="lock<%=f.getId()%>">
                    <logic:equal value="1" name="f" property="isNew">
                      <logic:equal value="0" name="f" property="isLock">
                      [<a href="javascript:;" onclick="lockSet('<%=boardid%>','<%=f.getId()%>','lock');"><bean:message key="post.lock.title"/></a>]
                      </logic:equal>
                      <logic:notEqual value="0" name="f" property="isLock">
                      [<a href="javascript:;" onclick="lockSet('<%=boardid%>','<%=f.getId()%>','unlock');"><bean:message key="post.unlock.title"/></a>]
                      </logic:notEqual>
                    </logic:equal>
                    </span>
                    <span id="commend<%=f.getId()%>">
                      <logic:equal value="0" name="f" property="commend">
                      [<a href="javascript:;" onclick="commendSet('<%=boardid%>','<%=f.getId()%>','commend');"><bean:message key="post.commend.title"/></a>]
                      </logic:equal>
                      <logic:notEqual value="0" name="f" property="commend">
                      [<a href="javascript:;" onclick="commendSet('<%=boardid%>','<%=f.getId()%>','uncommend');"><bean:message key="post.uncommend.title"/></a>]
                      </logic:notEqual>
                    </span>

                    <span id="cannotdel<%=f.getId()%>">
                      <logic:equal value="0" name="f" property="canNotDel">
                      [<a href="javascript:;" onclick="canNotDelSet('<%=boardid%>','<%=f.getId()%>','cannotdel');"><bean:message key="post.cannotdel"/></a>]
                      </logic:equal>
                      <logic:notEqual value="0" name="f" property="canNotDel">
                      [<a href="javascript:;" onclick="canNotDelSet('<%=boardid%>','<%=f.getId()%>','candel');"><bean:message key="post.uncannotdel"/></a>]
                      </logic:notEqual>
                    </span>
                    <span id="elite<%=f.getId()%>">
                      <logic:equal value="0" name="f" property="elite">
                      [<a href="javascript:;" onclick="eliteTopic('<%=boardid%>','<%=f.getId()%>');"><bean:message key="post.elite.title"/></a>]
                      </logic:equal>
                    </span>
                    </logic:equal>
                    </logic:notEqual>
                    <a href="javascript:;" onclick="agreeAgainst('<%=boardid%>','<%=f.getId()%>','votyes');"><img src="images/app.gif" border="0" alt="支持" width="16" height="16" align="absmiddle"/></a>
                    :<span id="agree<%=f.getId()%>"><bean:write name="f" property="agree"/></span>
                    <a href="javascript:;" onclick="agreeAgainst('<%=boardid%>','<%=f.getId()%>','votno');"><img src="images/obj.gif" border="0" alt="反对" width="16" height="16" align="absbottom"/></a>
                    :<span id="beAgainst<%=f.getId()%>"><bean:write name="f" property="beAgainst"/></span>
                    <a href="javascript:;" onclick="showIp('<%=boardid%>','<%=f.getId()%>');"><img src="images/ip.gif" alt="IP" border="0" width="16" height="16" align="absmiddle"/></a>
                  </div>
                  <div id="ipMsg<%=f.getId()%>" class="summary1" style="display:none" align="right"></div>
                </td>
              </tr>
              <tr>
                <td valign="top" class="bgColor4">
                  <bbscs:userinfoinpost idName="f" idProperty="userID" styleClass="pic1"/>
                </td>
                <td valign="top" class="bgColor2">
                  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>
                        <div id="detail<%=f.getId()%>" class="postDetail">
                          <bbscs:forum name="f" type="detail"/>
                        </div>
                        <bbscs:forum name="f" type="sign" itemClass="signInPost"/>
                        <bbscs:forum name="f" type="amend"/>
                      </td>
                    </tr>
                    <tr>
                      <td><div align="right">&nbsp;</div></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td valign="top" class="bgColor4"><bbscs:forum name="f" type="timeinpost"/></td>
                <td class="bgColor2">
                  <div align="right">
                    <logic:notEqual value="own" name="readForm" property="action">
                    <logic:equal value="index" name="readForm" property="fcaction">
                    [<bbscs:forum name="f" type="sendnote"/>]
                    [<bbscs:forum name="f" type="del" forumCurrentPageName="fcpage"/>]
                    [<bbscs:forum name="f" type="delattachpage"/>]
                    [<bbscs:forum name="f" type="edit" forumCurrentPageName="fcpage" forumCurrentActionName="readForm"/>]
                    [<bbscs:forum name="f" type="re" forumCurrentPageName="fcpage" forumCurrentActionName="readForm"/>]
                    [<bbscs:forum name="f" type="requote" forumCurrentPageName="fcpage" forumCurrentActionName="readForm"/>]
                    [<bbscs:forum name="f" type="upfilepage"/>]
                    </logic:equal>
                    <!--[转贴]-->
                    </logic:notEqual>

⌨️ 快捷键说明

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