announcements.jsp
上传用户:yuyunping
上传日期:2013-03-21
资源大小:1844k
文件大小:3k
源码类别:

Java书籍

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@include file="INC/const.jsp"%>
  3. <%@ page import = "java.util.Vector"%>
  4. <%
  5. stats="浏览论坛公告";
  6.  %>
  7.  <%@ include file="INC/theme.jsp"%>
  8.  <%
  9. out.println(headLine(forumID,forumName,forumLogo,"",1,stats));
  10.  %>
  11.  
  12.         <table cellpadding=0 cellspacing=0 border=0 width="<%=tableWidth%>" bgcolor="<%=tableBackColor%>" align=center>
  13. <%
  14. try{
  15. Vector forumNewsVector=ForumNewsManager.getForumNewsVector(forumID);
  16. for(i=0;i<forumNewsVector.size();i++){
  17. ForumNews forumNews=(ForumNews)forumNewsVector.get(i);
  18.  %>
  19.                           <tr>
  20.                         <td bgcolor="<%=tableTitleColor%>" align=center valign=top><font color="<%=tableFontColor%>"><b>>> <%=response.encodeURL(forumNews.getTitle())%> <<</b></font></td></tr>
  21.                         <tr>
  22.                             <td bgcolor="<%=tableBodyColor%>" valign=top style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word"><font color="<%=tableContentColor%>"><br>
  23.                         <p><blockquote><%=new MyFilter(forumNews.getContent()).getFilterString()%>
  24. </blockquote></p></font>
  25.                         </td>
  26.                         </tr>
  27.                         <tr>
  28.                             <td bgcolor="<%=tableBodyColor%>" valign=middle>
  29.                         <table width=100% border="0" cellpadding="0" cellspacing="0">
  30.                         <tr><td align=left><font color="<%=tableContentColor%>">&nbsp;&nbsp;&nbsp;<b>发布人</b>: <%=response.encodeURL(forumNews.getUserName())%></font>
  31.                         </td><td align=right><font color="<%=tableContentColor%>"><b>发布时间</b>: <%=forumNews.getAddTime()%>&nbsp;&nbsp;&nbsp;</font>
  32.                         </tr>
  33.                         </table>
  34.                         </td>
  35.                         </tr>
  36. <%
  37. }
  38. }
  39. catch(Exception e){
  40. e.printStackTrace();
  41. %>
  42.                 <tr>
  43.                     <td>
  44.                     <table cellpadding=3 cellspacing=1 border=0 width=100%>
  45.                         <tr>
  46.                         <td bgcolor="<%=tableTitleColor%>" align=center valign=top><font color="<%=tableFontColor%>"><b>>> 当前没有任何公告 <<</b></font></td></tr>
  47.                         <tr>
  48.                             <td bgcolor="<%=tableBodyColor%>" valign=top style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word"><font color="<%=tableContentColor%>"><br>
  49.                         <p><blockquote>请进入论坛管理页面来发布一个公告(必须是管理员或者版主)。 <br>当你发布一次公告后,本公告就会自动消失,无需你手动删除!
  50. </blockquote></p></font>
  51.                         </td>
  52.                         </tr>
  53.                         <tr>
  54.                             <td bgcolor="<%=tableBodyColor%>" valign=middle>
  55.                         <table width=100% border="0" cellpadding="0" cellspacing="0">
  56.                         <tr><td align=left><font color="<%=tableContentColor%>">&nbsp;&nbsp;&nbsp;<b>发布人</b>: 本站的默认公告</font>
  57.                         </td><td align=right><font color="<%=tableContentColor%>"><b>发布时间</b>: <%=NDate%>&nbsp;&nbsp;&nbsp;</font>
  58.                         </tr>
  59.                         </table>
  60.                         </td>
  61.                         </tr>
  62. <%
  63. }
  64. %>
  65. </table>
  66. </td></tr></table>
  67. <%@ include file="foot.jsp"%>