📄 look.jsp
字号:
<%@page language="java" import="java.util.*,com.project.util.DateTimeUtil,com.model.entity.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.net.URLEncoder"/>
<jsp:directive.page import="com.project.util.StringUtil;"/>
<%
UserInfo userInfo = new UserInfo();
NewsInfo newsInfo = new NewsInfo();
Map map = new HashMap();
String flag = "";
List temp = new ArrayList();
if(session.getAttribute("userInfo") != null){
map = (Map)request.getAttribute("queryNews");
newsInfo = (NewsInfo)map.get("newsInfo");
temp = (List)map.get("accInfo");
}else{
response.sendRedirect(request.getContextPath() + "/login.jsp");
}
%>
<html>
<head>
<title>经济运行调度信息网</title>
<style type="text/css">
@import url("css.css");
</style>
<link href="<%=request.getContextPath() %>/jsp/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(<%=request.getContextPath() %>/jsp/images/bei.gif);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<style type="text/css">
<!--
a:link {
color: #666666;
text-decoration: none;
}
a:visited {
color: #666699;
text-decoration: none;
}
a:hover {
color: #003399;
text-decoration: none;
}
a:active {
color: #FF0000;
text-decoration: none;
}
-->
</style>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<jsp:include flush="true" page="../include/top.jsp" />
</tr>
<tr>
<td height="8" colspan="3" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="1000" colspan="2" align="center" valign="top" bgcolor="#FFFFFF">
<table height="500" width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td colspan="3" bgcolor="#FFFFFF">
<div align="center"><span class="nei20"><%=newsInfo.getTitle() %></span></div>
<div align="center"><span class="nei20"><%=DateTimeUtil.getChangeDate(newsInfo.getCreateDate()) %></span></div>
</td>
</tr>
<tr>
<td width="97" height="1">
<td width="599" bgcolor="#CCCCCC"></td>
<td width="84"></td>
</tr>
<tr align="center">
<td colspan="3" align="center" valign="middle" bgcolor="#FFFFFF">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr height="500">
<td valign="top">
<span class="nei25"><%=(newsInfo.getContent()==null)?"没有内容":newsInfo.getContent().getSubString(1,(int)newsInfo.getContent().length()).replaceAll(StringUtil.aa, "") %></span>
</td>
</tr>
<%if(temp.size()>0){
for(int i=0;i<temp.size();i++){
Accessories acc = (Accessories)temp.get(i);
%>
<tr valign="top">
<td align="center" class="nei25" ><a href="<%=request.getContextPath() %>/downLoad.do?action=NewsInfo&accName=<%=URLEncoder.encode(acc.getAccessoriesNameDate()) %>"><b><%=acc.getAccessoriesName() %></b></a></td>
</tr>
<% }
}else{
%>
<tr>
<td align="center">
<span class="nei25"></span>
</td>
</tr>
<%} %>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<jsp:include flush="true" page="../include/foot.jsp" />
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -