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/bulletin/deleteBulletin";
  21.      if(request.getParameter("ss") != null)
  22.         deleteSuffix += "?ss";   
  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/bulletin/modifyBulletin?start=<%=request.getParameter("start")%>";
  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_communicate.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"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>&gt;&gt;<a href="/mainctrl/bulletin/home?home"><font color="#ffffff">公告板</font></a>&gt;&gt;公告板详细信息</font>
  63.                         </tr>
  64.                       </table>
  65.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  66.                      <tr>
  67.                         <td width="100" bgcolor="#e0e0e0">&nbsp;
  68.                            <font class="strong">标题:</font>
  69.                         </td>
  70.                         <td width="500" bgcolor="#e0e0e0"><%=FieldUtil.wrapLine(bvb.getBulletinTitle(),40)%></td>
  71.                      </tr>
  72.                      <tr> 
  73.                         <td width="100" bgcolor="#fafafa">&nbsp;
  74.                           <strong>内容:</strong>
  75.                         </td>
  76.                         <td width="500" bgcolor="#fafafa"><%=FieldUtil.wrapLine(bvb.getBulletinBody(), 40)%>
  77.                         </td>
  78.                      </tr>
  79.                      <tr> 
  80.                          <td width="100" bgcolor="#e0e0e0">&nbsp;
  81.                            <strong>截止日期:</strong>
  82.                          </td>
  83.                          <td width="500" bgcolor="#e0e0e0"><%=endDate%>
  84.                          </td>
  85.                      </tr>
  86.                      <tr> 
  87.                          <td width="100" bgcolor="#fafafa">&nbsp;
  88.                             <strong>发 布 人:</strong>
  89.                          </td>
  90.                          <td width="500" bgcolor="#fafafa"><%=bvb.getCreator()%></td>
  91.                      </tr>
  92.                      <tr> 
  93.                           <td width="100" bgcolor="#e0e0e0">&nbsp;
  94.                             <strong>发布日期:</strong>
  95.                           </td>
  96.                           <td width="500" bgcolor="#e0e0e0"><%=TimeStamp.toString(TimeStamp.convertCalendarToTimestamp(bvb.getCreateDate()))%></td>
  97.                      </tr>
  98.               <tr bgcolor="#fafafa">
  99.                   <td colspan="2" align="center" height="30">
  100. <%
  101.             if(bvb.getCreatorId() == BusinessName.getEmpId())
  102.             {
  103. %>                                            
  104.                                   <input type="button" name="Button2" class="text" value="修改" onClick="updateBulletin(this.form)">
  105.                                   &nbsp;&nbsp;
  106.                                   <input type="button" name="Button2" class="text" value="删除" onClick="deleteFromBulletin(this.form)">
  107.                                   &nbsp;&nbsp;
  108.                                   <input type="button" name="Button3" class="text" value="返回" onclick="history.back()">
  109. <%          }
  110.             else
  111.             {
  112. %>            
  113.                                   <input type="button" name="Button3" class="text" value="返回" onclick="history.back()">
  114. <%          }%>                                   
  115.                         </td>
  116.                       </tr>
  117.                   </table>
  118.                  </td>
  119.                 </tr>
  120.               </table>
  121.             </td>
  122.           </tr>
  123.         </table>
  124.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  125.        </TD>
  126.      </TR>
  127.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  128.     </TBODY> 
  129.   </TABLE>
  130.     <BR>
  131.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  132. </form>
  133. </DIV>
  134. </BODY>
  135. </HTML>