?? newsmanage.jsp
字號:
<%@ page language="java" import="java.util.*,org.news.pojo.*"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<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="styles.css">
-->
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
body {
background-color: #CCCCCC;
}
.STYLE3 {
color: #006600
}
.STYLE4 {
font-weight: bold;
font-size: xx-large;
color: #003300;
}
a {
font-size: 12px;
color: #880066;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FF00FF;
}
a:active {
text-decoration: none;
color: #9900FF;
}
.STYLE5 {
color: #000000
}
-->
</style>
</head>
<body bgColor=#ecf1f9>
<div>
<h1 align="center">
<font color="#7060cc">新聞管理</font>
</h1>
</div>
<table width="600" border="1" bgcolor="#ecf1f9" align="center">
<tbody>
<tr>
<th>
序號
</th>
<th>
標題
</th>
<th>作者</th>
<th>
添加時間
</th>
<th colspan="2">
管理
</th>
</tr>
<%
int i = 0;
%>
<logic:iterate id="newsList" name="newsList">
<tr>
<td><%=++i%>
</td>
<td>
<html:link action="/newsListRight?state=view" paramId="newsId"
paramName="newsList" paramProperty="id">
<bean:write name="newsList" property="title" />
</html:link>
</td>
<td><bean:write name="newsList" property="author"/></td>
<td>
<bean:write name="newsList" property="addTime" />
</td>
<td>
<html:link action="/newsListRight?state=fill" paramId="newsId"
paramName="newsList" paramProperty="id">修改</html:link>
</td>
<td>
<html:link action="/newsDelete" paramId="newsId"
paramName="newsList" paramProperty="id" onclick="return window.confirm('確定要刪除這條記錄嗎?')">刪除</html:link>
</td>
</tr>
</logic:iterate>
</tbody>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -