📄 notice_detail.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"> <font color="#0000FF"><%=Notice.getSubject()%></font></td>
</tr>
<tr>
<td width="20%" align="right">公告内容:</td>
<td width="80%" align="left"><br> <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(" <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"> <font color="#0000FF"><%=Notice.getCreateTime()%></font></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -