readerlist.jsp
来自「java jsp教程」· JSP 代码 · 共 81 行
JSP
81 行
<!-- /readerlist.jsp edited by zhangl -->
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.* "%>
<%@ page import="com.icss.j2ee.util.PageScrollUtil" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="com.icss.cnpc.msgnote.vo.NoteReadInfoVO" %>
<%@ page import="com.icss.cnpc.msgnote.util.StringUtility" %>
<%@ page import="com.icss.cnpc.msgnote.util.CommonUtil" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
String contextpath = request.getContextPath();
List readerlist = (List)request.getAttribute("readerlist");
%>
<html>
<head>
<title>公告阅读者列表</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/include/common.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" background="<%=request.getContextPath()%>/images/grid.gif" leftmargin="0" topmargin="10">
<form method=post name=form1>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr bgcolor="#EEF4FF">
<td colspan="4" align="center" bgcolor="#a6d0f2">公告阅读者列表</td>
</tr>
<tr height="25" bgcolor="#EEF4FF">
<td width="5%" align="center" class=td1>序号</td>
<td align="center" width="20%" class ="td1">阅读者</td>
<td align="center" width="30%" class ="td1">
<%if(CommonUtil.Is1tN().equals("1")){%>
所在单位
<%}else{%>
所在部门
<%}%>
</td>
<td align="center" width="15%" class ="td1">阅读时间</td>
</tr>
<%
int num = 1;
for(Iterator i = readerlist.iterator();i.hasNext();){
NoteReadInfoVO vo = (NoteReadInfoVO)i.next();
String readerName = vo.getReaderName();
String unitName = vo.getUnitName();
String orgName = vo.getOrgName();
String readTime = vo.getReadTime().toString().substring(0,16);
%>
<tr bgcolor="#EEF4FF">
<td align="center"><%=(num++)%></td>
<td align="center"><%=StringUtility.showHTMLStr(readerName)%></td>
<td align="center">
<%if(CommonUtil.Is1tN().equals("1")){%>
<%=StringUtility.showHTMLStr(unitName)%>
<%}else{%>
<%=StringUtility.showHTMLStr(orgName)%>
<%}%>
</td>
<td align="center"><%=StringUtility.showHTMLStr(readTime)%></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 + -
显示快捷键?