📄 managenews.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.westaccp.jsp.company.dao.*" %>
<%@ page import="com.westaccp.jsp.company.dao.impl.*" %>
<%@ page import="com.westaccp.jsp.company.model.*" %>
<%
NewsDao newsDao = new NewsDaoImpl();
List newsList = newsDao.findListNews();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>管理新闻</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/common.css" />
</head>
<body>
<table cellspacing="0" cellpadding="4" width="100%" id="tab">
<tr>
<td colspan="3" class="header">新闻管理</td>
</tr>
<tr style="background-color: #EFEFEF;">
<th>新闻标题</th>
<th>新闻发布时间</th>
<th>操作</th>
</tr>
<%
for(int i=0; i<newsList.size(); i++) {
News news = (News) newsList.get(i);
%>
<tr style="background-color: #FFFFFF;" onmousemove="this.style.backgroundColor='#EFEFEF'" onmouseout="this.style.backgroundColor='#FFFFFF'">
<td><%=news.getTitle() %></td>
<td align="center"><%=news.getWriteDate() %></td>
<td align="center">
<a onclick="return confirm('删除后无法恢复\n是否删除?')" href="../servlet/DeleteNewsServlet?newsId=<%=news.getNewsId() %>">删除</a>
</td>
</tr>
<%} %>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -