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

📄 notice_detail.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">
		<link rel=stylesheet type=text/css href="./lib/enterprise.css">
		<title>欢迎光临企业办公平台</title>
		<jsp:useBean scope="page" id="Notice" class="com.chapter15.Notice" />
	</head>
	<body bgcolor="#F2F2F2">
<%
	//获取公告的索引号
	String sNoticeID = request.getParameter("NoticeID");
	long lNoticeID = Long.parseLong(sNoticeID);
	//获取公告信息
	Notice.setNoticeID(lNoticeID);
	Notice.init();
%>

		<div align="center">
		<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;<font color="#0000FF"><%=Notice.getSubject()%></font></td>
</tr>
<tr>
<td width="20%" align="right">公告内容:</td>
<td width="80%" align="left"><br>&nbsp;<font color="#0000FF">
<%=Notice.getContent()%></font>
<br><br>

</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;<font color="#0000FF"><%=Notice.getCreateTime()%></font></td>
</tr>

</table>

	</div>
	</body>
</html>

⌨️ 快捷键说明

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