⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 noticeadd.jsp

📁 辅助办公系统,具有发布公告、站内邮箱、日程安排、日志查看等功能
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"
	import="com.x3408.notice.NoticeInfo,com.x3408.office.Constants"%>

<HTML>
	<HEAD>
		<%
			NoticeInfo noticeInfo = (NoticeInfo) request.getAttribute("noticeInfo");
			String msg=(String)request.getAttribute("msg");
			boolean addAction=request.getParameter("action")==null||request.getParameter("action").equals("noticeAdd")?true:false;
			if (msg==null||"".equals(msg)){}else{
		 %>
	 		<script language=javascript>
				alert("<%=msg%>");
			</script>
		<%} %>
		<TITLE>修改公告</TITLE>
		<script src="/OfficeSystem/Passed/User/CommonImages/Calendar.js"></script>
	</HEAD>

	<BODY background="NoticeImages/main.jpg" topmargin="0" leftmargin="0"
		rightmargin="0" bottommargin="0">
		<jsp:include page="<%=Constants.S_INDEXHEADER_JSP%>" />
		<TABLE background="NoticeImages/02.jpg" valign="top" width="778"
			border="0" align="center" cellpadding="0" cellspacing="0" class="tb1">
			<TBODY>
				<form name=form action=<%=Constants.C_NOTICEMANAGE_JAVA%> method=post>
				<%if(addAction){ %>
						<input type=hidden name=action value="noticeAdd">
				<%}else{%>
						<input type=hidden name=noticeID
							value=<%=request.getParameter("noticeID")%>>
						<input type=hidden name=publisher
							value=<%=request.getParameter("publisher")%>>
						<input type=hidden name=action value="noticeUpdate">
				<%} %>
				<TR>
					<TD align=middle colSpan=5 height=46
						background="NoticeImages/01.jpg">
						<%=addAction?"发布":"修改" %>公告
					</TD>
				</TR>
				<TR>
					<TD vAlign=top align=middle width=7 rowSpan=7>
						&nbsp;
					</TD>
					<TD vAlign=top align=middle width=71 rowSpan=7>
						&nbsp;
					</TD>
					<TD align=left width=100 height=25>
						公告标题
					</TD>
					<TD align=left width=350>
						<INPUT size=70 name=caption value=<%=noticeInfo==null?"":noticeInfo.getCaption()%>>
					</TD>
					<TD align=left width=50 rowSpan=7>
						&nbsp;
					</TD>
				</TR>
								<TR>
					<TD align=left height=25>
						计划发布时间
					</TD>
					<TD align=left>
						<input type="text" name="planPubTime" readOnly
							onClick="setDayHM(this);"
							value="<%=noticeInfo==null?"":noticeInfo.getPlanPubTime()%>">
					</TD>
				</TR>
				<TR>
					<TD align=left height=25>
						计划删除时间
					</TD>
					<TD align=left>
						<input type="text" name="planDelTime" readOnly
							onClick="setDayHM(this);"
							value="<%=noticeInfo==null?"":noticeInfo.getPlanDelTime()%>">
					</TD>
				</TR>
				<% if("noticeUpdate".equals(request.getParameter("action"))){%>
				<TR>
					<TD align=left height=25>
						公告人
					</TD>
					<TD align=left>
						<%=noticeInfo==null?"":noticeInfo.getPublisher()%>
					</TD>
				</TR>
				<TR>
					<TD align=left height=25>
						公告时间
					</TD>
					<TD align=left>
						<%=noticeInfo==null?"":noticeInfo.getPublishTime()%>
					</TD>
				</TR>
				<TR>
				<% }%>
					<TD align=left height=100>
						公告内容
					</TD>
					<TD align=left>
						<TEXTAREA rows=15 cols=69 name=content><%=noticeInfo==null?"":noticeInfo.getContent()%></TEXTAREA>
					</TD>
				</TR>
				<TR>
					<TD align=middle colSpan=5 height=46>
						<INPUT class=btn_grey type=submit value=<%=addAction?"添&nbsp;&nbsp加":"修&nbsp;&nbsp改"%>>
						<INPUT type=reset value=重&nbsp;&nbsp;置>
						<input type=button value=返&nbsp;&nbsp;回 onclick="location.href='<%=Constants.C_NOTICEMORE_JSP%>'">
					</TD>
				</TR>
				</form>
			</TBODY>
		</TABLE>
		<jsp:include page="<%=Constants.S_INDEXFOOTER_JSP%>" />
	</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -