bulletin_detail.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.util.*" %>
  3. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  4. <jsp:useBean id="bvb" scope="request" class="com.vnex.intranet.communication.bulletin.value.BulletinValueBean"/>
  5. <jsp:useBean id="bulletinProxy" scope="application" class="com.vnex.intranet.communication.bulletin.proxy.BulletinProxyBean" />
  6. <%
  7.      bvb = bulletinProxy.getBulletinDetail(Integer.parseInt(request.getParameter("bulletinId")));
  8.      String title = FieldUtil.wrapLine(FieldUtil.filterScriptTag(bvb.getBulletinTitle()), 50);
  9.      bvb.setBulletinTitle(title);
  10.      if(bvb.getBulletinBody() != null)
  11.      {
  12.         String body = FieldUtil.keepStringFormat(FieldUtil.filterScriptTag(bvb.getBulletinBody()));
  13.         bvb.setBulletinBody(body);
  14.      }
  15.      else
  16.         bvb.setBulletinBody("(无内容)");   
  17.      String endDate = "无截止日期";
  18.      if(bvb.getEndDate() != null)
  19.         endDate = TimeStamp.formatCalendar(TimeStamp.YMD, bvb.getEndDate());
  20.      String deleteSuffix = "/mainctrl/personal/bulletin/deleteBulletin";
  21.      if(request.getParameter("history") != null)
  22.         deleteSuffix += "?history";   
  23. %>
  24. <html>
  25. <script language=JavaScript>
  26. function deleteFromBulletin(form)
  27. {
  28.   if(confirm("是否删除本条公告板信息?"))
  29.   {
  30.     form.action="<%=deleteSuffix%>";
  31.     form.submit();
  32.   }  
  33. }
  34. function updateBulletin(form)
  35. {
  36.   form.action="/mainctrl/personal/bulletin/modifyBulletin?bulletinId=<%=request.getParameter("bulletinId")%>";
  37.   form.submit();
  38. }
  39. </script>
  40. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  41. <HTML>
  42. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  43. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  44. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  45. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  46. <DIV align=center>
  47. <form name="form1" method="post">
  48. <input type="hidden" name="bulletinId" value="<%=request.getParameter("bulletinId")%>">
  49.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  50.     <TBODY> 
  51.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  52.       <tr> 
  53.         <td colspan=3 align="center" class="iframestyle" valign="top"><br>
  54.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  55.             <tr valign="top"> 
  56.               <td bgcolor="#fafafa" > 
  57.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  58.                   <tr valign="top" bgcolor="#cccccc"> 
  59.                     <td> 
  60.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  61.                         <tr bgcolor="#666666"> 
  62.                            <td><font class="strongw">
  63.                            <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;
  64.                            <a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>&gt;&gt;
  65.                            <a href="/mainctrl/personal/bulletin/home"><font color="#ffffff">滚动消息管理</font></a>&gt;&gt;
  66. <%                    
  67.                       if(request.getParameter("history") != null)
  68.                       {
  69. %>                         
  70.                            <a href="/mainctrl/personal/bulletin/home?history"><font color="#ffffff">清理过期消息</font></a>&gt;&gt;
  71. <%                    }%>                                                                            
  72.                            消息详细信息</font>
  73.                            </td>
  74.                         </tr>
  75.                       </table>
  76.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  77.                      <tr> 
  78.                         <td width="100" bgcolor="#fafafa">&nbsp;
  79.                           <strong>内容:</strong>
  80.                         </td>
  81.                         <td width="500" bgcolor="#fafafa"><%=bvb.getBulletinBody()%>
  82.                         </td>
  83.                      </tr>
  84.                      <tr> 
  85.                          <td width="100" bgcolor="#e0e0e0">&nbsp;
  86.                            <strong>截止日期:</strong>
  87.                          </td>
  88.                          <td width="500" bgcolor="#e0e0e0"><%=endDate%>
  89.                          </td>
  90.                      </tr>
  91.                      <tr> 
  92.                          <td width="100" bgcolor="#fafafa">&nbsp;
  93.                             <strong>发 布 人:</strong>
  94.                          </td>
  95.                          <td width="500" bgcolor="#fafafa"><%=bvb.getCreator()%></td>
  96.                      </tr>
  97.                      <tr> 
  98.                           <td width="100" bgcolor="#e0e0e0">&nbsp;
  99.                             <strong>发布日期:</strong>
  100.                           </td>
  101.                           <td width="500" bgcolor="#e0e0e0"><%=TimeStamp.toString(TimeStamp.convertCalendarToTimestamp(bvb.getCreateDate()))%></td>
  102.                      </tr>
  103.               <tr bgcolor="#fafafa">
  104.                   <td colspan="2" align="center" height="30">
  105. <%
  106.             if(bvb.getCreatorId() == BusinessName.getEmpId())
  107.             {
  108.                   if(request.getParameter("history") == null)
  109.                   {
  110. %>                                            
  111.                                   <input type="button" name="Button2" class="text" value="修改" onClick="updateBulletin(this.form)">
  112.                                   &nbsp;&nbsp;
  113. <%                }%>                                  
  114.                                   <input type="button" name="Button2" class="text" value="删除" onClick="deleteFromBulletin(this.form)">
  115.                                   &nbsp;&nbsp;
  116. <%          }
  117. %>            
  118.                                   <input type="button" name="Button3" class="text" value="返回" onclick="history.back()">
  119.                         </td>
  120.                       </tr>
  121.                   </table>
  122.                  </td>
  123.                 </tr>
  124.               </table>
  125.             </td>
  126.           </tr>
  127.         </table>
  128.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  129.        </TD>
  130.      </TR>
  131.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  132.     </TBODY> 
  133.   </TABLE>
  134.     <BR>
  135.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  136. </form>
  137. </DIV>
  138. </BODY>
  139. </HTML>