bulletin_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="bvb" scope="request" class="com.vnex.intranet.communication.bulletin.value.BulletinValueBean"/>
- <jsp:useBean id="bulletinProxy" scope="application" class="com.vnex.intranet.communication.bulletin.proxy.BulletinProxyBean" />
- <%
- bvb = bulletinProxy.getBulletinDetail(Integer.parseInt(request.getParameter("bulletinId")));
- String title = FieldUtil.wrapLine(FieldUtil.filterScriptTag(bvb.getBulletinTitle()), 50);
- bvb.setBulletinTitle(title);
- if(bvb.getBulletinBody() != null)
- {
- String body = FieldUtil.keepStringFormat(FieldUtil.filterScriptTag(bvb.getBulletinBody()));
- bvb.setBulletinBody(body);
- }
- else
- bvb.setBulletinBody("(无内容)");
- String endDate = "无截止日期";
- if(bvb.getEndDate() != null)
- endDate = TimeStamp.formatCalendar(TimeStamp.YMD, bvb.getEndDate());
- String deleteSuffix = "/mainctrl/personal/bulletin/deleteBulletin";
- if(request.getParameter("history") != null)
- deleteSuffix += "?history";
- %>
- <html>
- <script language=JavaScript>
- function deleteFromBulletin(form)
- {
- if(confirm("是否删除本条公告板信息?"))
- {
- form.action="<%=deleteSuffix%>";
- form.submit();
- }
- }
- function updateBulletin(form)
- {
- form.action="/mainctrl/personal/bulletin/modifyBulletin?bulletinId=<%=request.getParameter("bulletinId")%>";
- form.submit();
- }
- </script>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post">
- <input type="hidden" name="bulletinId" value="<%=request.getParameter("bulletinId")%>">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <tr>
- <td colspan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#666666">
- <td><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>>>
- <a href="/mainctrl/personal/bulletin/home"><font color="#ffffff">滚动消息管理</font></a>>>
- <%
- if(request.getParameter("history") != null)
- {
- %>
- <a href="/mainctrl/personal/bulletin/home?history"><font color="#ffffff">清理过期消息</font></a>>>
- <% }%>
- 消息详细信息</font>
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr>
- <td width="100" bgcolor="#fafafa">
- <strong>内容:</strong>
- </td>
- <td width="500" bgcolor="#fafafa"><%=bvb.getBulletinBody()%>
- </td>
- </tr>
- <tr>
- <td width="100" bgcolor="#e0e0e0">
- <strong>截止日期:</strong>
- </td>
- <td width="500" bgcolor="#e0e0e0"><%=endDate%>
- </td>
- </tr>
- <tr>
- <td width="100" bgcolor="#fafafa">
- <strong>发 布 人:</strong>
- </td>
- <td width="500" bgcolor="#fafafa"><%=bvb.getCreator()%></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#e0e0e0">
- <strong>发布日期:</strong>
- </td>
- <td width="500" bgcolor="#e0e0e0"><%=TimeStamp.toString(TimeStamp.convertCalendarToTimestamp(bvb.getCreateDate()))%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <%
- if(bvb.getCreatorId() == BusinessName.getEmpId())
- {
- if(request.getParameter("history") == null)
- {
- %>
- <input type="button" name="Button2" class="text" value="修改" onClick="updateBulletin(this.form)">
-
- <% }%>
- <input type="button" name="Button2" class="text" value="删除" onClick="deleteFromBulletin(this.form)">
-
- <% }
- %>
- <input type="button" name="Button3" class="text" value="返回" onclick="history.back()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>