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

📄 modify_notice_form.jsp

📁 jsp动态网站开发技术与实践 电子工业出版社 随书附赠源代码
💻 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">&nbsp;<input type="text" name="Subject" size="40" value="<%=Notice.getSubject()%>"></td>
</tr>
<tr>
<td width="20%" align="right">公告内容:</td>
<td width="80%" align="left">&nbsp;<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("&nbsp;<a href=\"../download_attachment.jsp?FileUrl=/notice_attachment/"+Notice.getFileUrl()+"\" target=\"_self\"><font color=blue>"+Notice.getAttachment()+"</font></a>");
	}
	else
	{
		out.println("&nbsp;<font color=blue>无附件</font>");
	}
%>
</td>
</tr>
<tr>
<td width="20%" height="25" align="right">上传新附件:</td>
<td width="80%" height="25" align="left">&nbsp;<input type="file" name="Attachment" size="40"></td>
</tr>
</table>
<p><input type="submit" name="sub" value="修改">&nbsp;&nbsp;
<input type="reset" name="res" value="重填"></p>
</form>
</div>
</body>
</html>

⌨️ 快捷键说明

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