📄 newslist.ftl
字号:
<#global html=JspTaglibs["/WEB-INF/tags/struts-html.tld"]>
<#global bean=JspTaglibs["/WEB-INF/tags/struts-bean.tld"]>
<html>
<head>
<title>新闻管理</title>
<@bean.page id="request" property="request"/>
<#assign contextPath = request.contextPath/>
<link href="${contextPath}/style/style.css" rel="stylesheet" type="text/css">
<script src="${contextPath}/js/select.js"></script>
</head>
<body>
<table width="780" align="center" border="0" cellspacing="0" cellpadding="0">
<form method="post" action="${contextPath}/newsManager.do">
<input type="hidden" name="action">
<tr>
<td height="30" align="center">
<img src="images/title.gif">
</td>
</tr>
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="simple">
<thead>
<tr class="td_padding">
<th width="5%" align="center"><input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)" title='选择/取消' style="cursor:hand"></th>
<th>标 题</th>
<th>来 源</th>
<th>发布人</th>
<th>发布日期</th>
</tr>
</thead>
<#list newsList as news>
<tr class="td_padding">
<td align="center"><input type="checkbox" name="id" value="${news.id}"></td>
<td><a href="${contextPath}/${news.fileName}" target="_blank">${news.newsTitle}</a></td>
<td>${news.newsFrom}</td>
<td>${news.newsAuthor}</td>
<td>${news.newsDate}</td>
</tr>
</#list>
</table></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td ><@html.button value="删除新闻" styleClass="button1" onclick="javascript:action_cofirm(this.form,'确定删除选中的新闻吗?','del');"/> <@html.button value="新增新闻" styleClass="button1" onclick="javascript:location.href='${contextPath}/createNews.do'"/></td>
</tr>
</form>
<tr>
<td align="center">${page}</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -