lastnote.jsp
来自「java jsp教程」· JSP 代码 · 共 146 行
JSP
146 行
<!--\webapps\jsp\notelist.jsp by zhangl-->
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.* "%>
<%@ page import="com.icss.cnpc.msgnote.vo.NoteInfoVO "%>
<%@ page import="com.icss.j2ee.util.PageScrollUtil" %>
<%@ page import="com.icss.cnpc.msgnote.vo.Note2VO"%>
<%@ page import="com.icss.cnpc.msgnote.util.DateUtility" %>
<%@ page import="com.icss.cnpc.msgnote.util.CommonUtil" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
// int PageNum = PageScrollUtil.getPageNum();
String contextpath = request.getContextPath();
NoteInfoVO vo = (NoteInfoVO)request.getAttribute("notevo");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<script language="JavaScript" src="<%=contextpath%>/include/common.js"></script>
<script language=JavaScript>
function ViewNotes(flag,CurID)
{
NotesList.action = "<%=contextpath%>/servlet/NoteOperServlet?source=1&ID="+CurID+"&operate="+flag;
NotesList.submit();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" background="<%=request.getContextPath()%>/images/grid.gif" leftmargin="0" topmargin="10">
<form Name="NotesList" method="Post" action="">
<p>
<input name="ID" type="hidden" value="">
<input name="operate" type="hidden" value="">
<p> </p>
<%
if(vo != null){
String noteId = vo.getNoteId().toString();
String noteTitle = vo.getNoteTitle();
String noteBody = vo.getNoteBody();
String sendUnitId = vo.getSendUnitId();
String sendUnit = vo.getSendUnit();
String sendPersonid = vo.getSendPersonid();
String sendPerson=vo.getSendPerson();
String status = vo.getStatus();
String sendTime = "";
if(vo.getSendTime() != null)
sendTime=vo.getSendTime().toString().substring(0,19);
String ext1 = vo.getExt1();
String sendOrgName=vo.getSendOrgName();
String impdegree=vo.getImpdegree();
%>
<table width="60%" cellSpacing=0 cellPadding=0 border="0" class="table1" align="center">
<TR>
<TD width=620><IMG height=60 src="../images/biaodan-1.gif"
width=620></TD>
</TR>
<TR>
<TD vAlign=top background=../images/biaodan-2.gif height=260>
<TABLE cellSpacing=0 cellPadding=5 width=620 align=center border=0>
<TR>
<TD align=left colSpan=4 height=23>
<DIV align=center><FONT color=#ff0000 size=4> 欢迎进入机关公告栏</FONT></DIV>
</TD>
</TR>
<TR>
<TD height=117>
<TABLE class=title3 cellSpacing=1 cellPadding=2 width="95%" align=center border=0>
<TR>
<TD colSpan=2 height=52><FONT size=4> 公告栏的主要功能是向全体人员发布消息,您有什么重要消息想告诉大家吗?</FONT>
</TD>
</TR>
<TR vAlign=center align=left>
<TD width="30%" height=31><FONT size=4> 最新的公告为: </FONT>
</TD>
<TD width="70%">
<a onClick="javascript:ViewNotes('view','<%=noteId%>')" style="cursor:hand"><font color="#0000FF" size="4"><%if(CommonUtil.Is1tN().equals("1")){%><%=sendUnit%><%}else{%><%=sendOrgName%><%}%>的<%=sendPerson%>于<%=sendTime%>发布的《<%=noteTitle%>》的公告。</a>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT size=4> </FONT></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD><IMG height=26 src="../images/biaodan-3.gif" width=620>
</TD>
</TR>
</TABLE>
<%}else{%>
<table width="60%" cellSpacing=0 cellPadding=0 border="0" class="table1" align="center">
<TR>
<TD width=620><IMG height=60 src="../images/biaodan-1.gif"
width=620></TD>
</TR>
<TR>
<TD vAlign=top background=../images/biaodan-2.gif height=260>
<TABLE cellSpacing=0 cellPadding=5 width=620 align=center border=0>
<TR>
<TD align=left colSpan=4 height=23>
<DIV align=center><FONT color=#ff0000 size=4> 欢迎进入机关公告栏</FONT></DIV>
</TD>
</TR>
<TR>
<TD height=117>
<TABLE class=title3 cellSpacing=1 cellPadding=2 width="95%" align=center border=0>
<TR>
<TD colSpan=2 height=52><FONT size=4> 公告栏的主要功能是向全体人员发布消息,您有什么重要消息想告诉大家吗?</FONT>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT size=4> </FONT></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD><IMG height=26 src="../images/biaodan-3.gif" width=620>
</TD>
</TR>
</TABLE>
<%}%>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?