📄 modify_notice_form.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎光临企业办公平台</title>
<link rel=stylesheet type=text/css href="../lib/enterprise.css">
<jsp:useBean scope="page" id="Notice" class="com.chapter15.Notice" />
</head>
<%
String strPage = request.getParameter("showPage");
//获取公告的索引号
String sNoticeID = request.getParameter("NoticeID");
long lNoticeID = Long.parseLong(sNoticeID);
//获取公告信息
Notice.setNoticeID(lNoticeID);
Notice.init();
%>
<body bgcolor="#F2F2F2">
<div align="center">
<br>
<form name="form1" action="modify_notice_save.jsp" method="post" enctype="multipart/form-data" target="_self">
<input type="hidden" name="NoticeID" value="<%=lNoticeID%>">
<input type="hidden" name="showPage" value="<%=strPage%>">
<table width="80%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="25" align="right">公告标题:</td>
<td width="80%" height="25" align="left"> <input type="text" name="Subject" size="40" value="<%=Notice.getSubject()%>"></td>
</tr>
<tr>
<td width="20%" align="right">公告内容:</td>
<td width="80%" align="left"> <textarea rows="12" cols="60" name="Content"><%=Notice.getContent()%></textarea></td>
</tr>
<tr>
<td width="20%" height="25" align="right">原附件名称:</td>
<td width="80%" height="25" align="left">
<%
if(Notice.getFileUrl().indexOf(".") > -1)
{
out.println(" <a href=\"../download_attachment.jsp?FileUrl=/notice_attachment/"+Notice.getFileUrl()+"\" target=\"_self\"><font color=blue>"+Notice.getAttachment()+"</font></a>");
}
else
{
out.println(" <font color=blue>无附件</font>");
}
%>
</td>
</tr>
<tr>
<td width="20%" height="25" align="right">上传新附件:</td>
<td width="80%" height="25" align="left"> <input type="file" name="Attachment" size="40"></td>
</tr>
</table>
<p><input type="submit" name="sub" value="修改">
<input type="reset" name="res" value="重填"></p>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -