📄 bulletin_modify.jsp
字号:
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="java.util.Calendar" %>
<%@ page import="com.vnex.intranet.util.TimeStamp" %>
<%@ page import="com.vnex.intranet.pub.BaseJdbcDAO" %>
<jsp:useBean id="bulletinProxy" scope="application" class="com.vnex.intranet.communication.bulletin.proxy.BulletinProxyBean" />
<jsp:useBean id="bvb" scope="request" class="com.vnex.intranet.communication.bulletin.value.BulletinValueBean" />
<%
bvb = bulletinProxy.getBulletinDetail(Integer.parseInt(request.getParameter("bulletinId")));
String year = "0";
String month = "0";
String day = "0";
String endDate = "";
if(bvb.getEndDate() != null)
{
Calendar cal = bvb.getEndDate();
year = ""+cal.get(Calendar.YEAR);
if((cal.get(Calendar.MONTH)+1)<10)
month = "0"+(cal.get(Calendar.MONTH)+1);
else
month = ""+(cal.get(Calendar.MONTH)+1);
if(cal.get(Calendar.DAY_OF_MONTH)<10)
day = "0"+cal.get(Calendar.DAY_OF_MONTH);
else
day = ""+cal.get(Calendar.DAY_OF_MONTH);
endDate = year+"-"+month+"-"+day;
}
java.sql.Timestamp ts = BaseJdbcDAO.getDBSystemDate();
String current = ts.toString();
current = current.substring(0, current.indexOf(" "));
%>
<script language=javascript src="/vnex/util/popup.js"></script>
<script language="javascript" src="/vnex/util/strUtil.js"></script>
<script language=JavaScript>
function modifyBulletin(form)
{
if(checkIt(form))
{
form.action="/mainctrl/personal/bulletin/modifyBulletinSuccess?bulletinId=<%=request.getParameter("bulletinId")%>&start=<%=request.getParameter("start")%>";
form.submit();
}
}
function publishIt(form)
{
form.action="/mainctrl/personal/bulletin/publishToScrollText?bulletinId=<%=request.getParameter("bulletinId")%>";
form.submit();
}
function unpublishIt(form)
{
form.action="/mainctrl/personal/bulletin/unpublishFromScrollText?bulletinId=<%=request.getParameter("bulletinId")%>";
form.submit();
}
function checkIt(form)
{
if(isEmpty(form.bulletinBody.value) || isEmptyStr(form.bulletinBody.value))
{
alert("请输入滚动信息内容");
form.bulletinBody.focus();
return false;
}
if(!isEmpty(form.bulletinBody.value) && isInvalidateLen(form.bulletinBody.value,1000))
{
alert("公告信息内容不能超过250个汉字或1000个英文字符 ");
form.bulletinBody.focus();
return false;
}
if(!isEmpty(form.endDate.value))
{
if(form.endDate.value < "<%=current%>")
{
alert("截止日期必须在本日之后");
form.endDate.focus();
return false;
}
}
return true;
}
</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">
<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" bgcolor="#fafafa">
<td >
<table width="600" border="0" cellpadding="2" cellspacing="0">
<tr bgcolor="#666666">
<td colspan="2"><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>>>
修改滚动信息
</font>
</td>
</tr>
</table>
<table class=title width="600" border="0" cellspacing="1" cellpadding="2">
<tr bgcolor="#fafafa">
<td width="15%"> <strong>内容:</strong></td>
<td>
<textarea name="bulletinBody" rows="5" cols="50" class="text"><%=bvb.getBulletinBody()%></textarea> * (注:带*为必填内容)
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="15%"> <strong>截止日期:</strong></td>
<td>
<input type="text" name="endDate" readonly size="24" class="text" value="<%=endDate%>">
<img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(endDate);return false">
</td>
</tr>
<tr bgcolor="#fafafa">
<td width="15%"><strong> 发布人:</strong></td>
<td><%=bvb.getCreator()%></td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="15%"><strong> 发布日期:</strong></td>
<td><%=TimeStamp.toString(TimeStamp.convertCalendarToTimestamp(bvb.getCreateDate()))%>
</td>
</tr>
<tr bgcolor="#fafafa">
<td colspan="2" height="30" align="center">
<input type="button" name="Button2" value="保存" onClick="modifyBulletin(this.form)" class="text">
<% if(bvb.getIsScrollText() == 0)
{
%>
<input type="button" name="button22" value="设为滚动消息" onclick="publishIt(this.form)" class="text" style="width:80px">
<% }
else
{
%>
<input type="button" name="button23" value="不在滚动消息中显示" onclick="unpublishIt(this.form)" class="text" style="width:115px">
<% }%>
<input type="reset" name="Button2" value="重置" class="text">
<input type="button" name="Button2" value="放弃" class="text" onclick="history.back()">
</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 + -