note_view.jsp

来自「java jsp教程」· JSP 代码 · 共 145 行

JSP
145
字号
<!--msg_note_1t9\webapps\jsp\note_view.jsp by zhangl-->

<%@ page  contentType="text/html;charset=GBK" %>

<%@ page import="java.util.* "%>
<%@ page import="com.icss.cnpc.msgnote.vo.*" %>
<%@ page import="com.icss.resourceone.sdk.framework.Context"%>
<%@ page import="com.icss.cnpc.msgnote.util.CommonUtil" %>
<%@ page import="com.icss.cnpc.msgnote.util.StringUtility" %>
<%
    //response.setHeader("Pragma", "No-cache");
    //response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>

<%
 NoteInfoVO vo = (NoteInfoVO)request.getAttribute("notevo");
 List attlist = (List)request.getAttribute("attlist");
 String contextpath = request.getContextPath();

%>

<html>
<head>
<title>公告详细内容</title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" href="<%=contextpath%>/css/style.css" type="text/css">
<script language="JavaScript" src="<%=contextpath%>/include/common.js"></script>
<SCRIPT language=JavaScript>
function openatt(flag,CurID)
  {
    MsgForm.operate.value=flag;
    MsgForm.ID.value=CurID;
    document.MsgForm.action="<%=contextpath%>/servlet/NoteManageOperServlet";
    document.MsgForm.submit();
  }
 </SCRIPT>
<body bgcolor="#FFFFFF" text="#000000" background="<%=request.getContextPath()%>/images/grid.gif"  leftmargin="0" topmargin="10">
<form name="MsgForm" method="Post" action="">
<input name="ID" type="hidden" value="">
<input name="operate" type="hidden" value="">
 <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1"  bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">

              <tr bgcolor="#EEF4FF"> 
                <td  bgcolor="#a6d0f2" align="center" height="24" class="lc1" colspan="4">
					公告详细内容
				</td>
              </tr>
				 <% 
                      String noteId = StringUtility.filterNullObject(vo.getNoteId());
                      String noteTitle = StringUtility.filterNullObject(vo.getNoteTitle());
					  String noteBody = StringUtility.filterNullObject(vo.getNoteBody());
                      String sendUnitId = StringUtility.filterNullObject(vo.getSendUnitId());
                      String sendUnit = StringUtility.filterNullObject(vo.getSendUnit());
                      String sendPersonid = StringUtility.filterNullObject(vo.getSendPersonid());
                      String sendPerson=StringUtility.filterNullObject(vo.getSendPerson());
					  String status = StringUtility.filterNullObject(vo.getStatus());
                      String validDate=StringUtility.filterNullObject(vo.getValidDate());
					  String sendTime=StringUtility.filterNullObject(vo.getSendTime()).substring(0,19);
					  String ext1 = StringUtility.filterNullObject(vo.getExt1()); 
					  String sendOrgName=StringUtility.filterNullObject(vo.getSendOrgName());
					  String impdegree=StringUtility.filterNullObject(vo.getImpdegree());
			  %>
    <tr bgcolor="#EEF4FF"> 
                  <td height="31" align="left" valign="middle" width="20%"> 
                    <div align="center">标题</div></td>
                  <td height="31" align="left" colspan="3" width="80%"><%=noteTitle%></td>
    </tr>
    <tr bgcolor="#EEF4FF">
      <td height="31" align="center" width="20%">发送人</td>
      <td height="31" align="left" valign="middle" width="30%"><%=sendPerson%></td>
      <td width="20%" align="center" >发送时间</td>
      <td width="30%" align="left"><%=sendTime%></td>
    </tr>
                <tr bgcolor="#EEF4FF"> 
                  <td height="32" align="center">重要程度</td>
                  <td colspan="3">
                          <div align="left">
                            <%if(impdegree.equals("0")){%>
                            一般
                            <%}else{%>
                            紧急
                            <%}%>
                        </div>
					</td>
				
				  </tr>
				  <%if(sendUnit!=null){%>
				<tr bgcolor="#EEF4FF">
				  <td height="26" align="center">
				  <%if(CommonUtil.Is1tN().equals("1")){%>
				    发送单位
				  <%}else{%>
				    发送部门
				 <%}%>
				  </td>
				  <td height="26" colspan="3">
				   <%if(CommonUtil.Is1tN().equals("1")){%>
					  <%=sendUnit%>
				   <%}else{%>
				     <%=sendOrgName%>
				  <%}%>
				  </td>
				</tr>
				<%}%>
				<tr bgcolor="#EEF4FF">
				  <td height="26" align="center">有效期</td>
				  <td height="26" colspan="3" ><%=validDate%></td>
                 </tr>
				
                <tr bgcolor="#EEF4FF"> 
                  <td height="227" bgcolor="EEF4FF"><p align="center">内</p>
                   <p align="center">容</p></td>
                  <td height="227" colspan="3" align="center" valign="top"  bgcolor="EEF4FF"> 
					<div align="left"><font size="4"> 
                      <%=StringUtility.showHTMLStr(noteBody)%></font>
                   </div>
				</td>
                </tr>
				<%
				  int num = 0;
		     for(int j = 0; j < attlist.size(); j++)
			 {
			   NoteAttechVO a = (NoteAttechVO)attlist.get(j);
			   String fileId = StringUtility.filterNullObject(a.getFileId());
               String fileName = StringUtility.filterNullObject(a.getFileName());
			   num++;
		  %>
          <tr bgcolor="#EEF4FF">
            <td height="27"><div align="center">附件<%=num%></div></td>
            <td height="27" colspan="3" align="center" valign="bottom" >
			  <div align="center"><a href="javascript:openatt('openatt','<%=fileId%>')"><%if(fileName.equals("")){%>无标题<%}else{%><%=fileName%><%}%></a>
              </div></td>
          </tr>
		  <%
		    }
		  %>
         </table>
		 <br><br>
		 <center>
           <img src="<%=contextpath%>/images/close.gif" style="cursor: hand" onClick="JavaScript:window.close();">
		 </center>
</form>
</body>
</html>

⌨️ 快捷键说明

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