⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newslist.ftl

📁 spring+hibernate新闻系统
💻 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}/newsList.do">
<input type="hidden" name="action" value="toList">
<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 width="38%">标 题</th>
    <th width="12%">来 源</th>
    <th width="12%">发布人</th>
    <th width="12%">发布日期</th>
    <th width="16%" align="center">操 作</th>
  </tr>
</thead>
<#list newsList as news>
  <tr class="td_padding">
    <td align="center"><input type="checkbox" name="id" value="${news.id}" class="hand"></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>
    <td align="center">【编 辑】&nbsp;&nbsp;【<a href="${contextPath}/newsList.do?action=removeNews&id=${news.id}">删 除</a>】</td>
  </tr>
 </#list>
</table>
</td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td ><input type="button" value="删除新闻" class="button1" onclick="javascript:action_cofirm(this.form,'确定删除选中的新闻吗?','removeNews');">&nbsp;&nbsp;<input type="button" value="新增新闻" class="button1" onclick="javascript:location.href='${contextPath}/toNewsForm.do'"></td>
</tr>
</form>
<tr>
<td align="center">${page}</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -