📄 bulletin_detail.jsp
字号:
<%@ 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/bulletin/deleteBulletin";
if(request.getParameter("ss") != null)
deleteSuffix += "?ss";
%>
<html>
<script language=JavaScript>
function deleteFromBulletin(form)
{
if(confirm("是否删除本条公告板信息?"))
{
form.action="<%=deleteSuffix%>";
form.submit();
}
}
function updateBulletin(form)
{
form.action="/mainctrl/bulletin/modifyBulletin?start=<%=request.getParameter("start")%>";
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_communicate.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/communication/main"><font color="#ffffff">通信</font></a>>><a href="/mainctrl/bulletin/home?home"><font color="#ffffff">公告板</font></a>>>公告板详细信息</font>
</tr>
</table>
<table class=title border="0" cellpadding="2" cellspacing="1" width="600">
<tr>
<td width="100" bgcolor="#e0e0e0">
<font class="strong">标题:</font>
</td>
<td width="500" bgcolor="#e0e0e0"><%=FieldUtil.wrapLine(bvb.getBulletinTitle(),40)%></td>
</tr>
<tr>
<td width="100" bgcolor="#fafafa">
<strong>内容:</strong>
</td>
<td width="500" bgcolor="#fafafa"><%=FieldUtil.wrapLine(bvb.getBulletinBody(), 40)%>
</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())
{
%>
<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()">
<% }
else
{
%>
<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -