list.ftl
来自「anewssystem新闻发布系统集成使用了spring hibernate f」· FTL 代码 · 共 52 行
FTL
52 行
${r"<#assign"} ctx=springMacroRequestContext.getContextPath()>
${r"<#include"} "/include/taglibs.ftl">
<#assign ctx=r"${ctx}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
${r"<#include"} "/include/meta.ftl">
<TITLE>${clz}</TITLE>
<link type="text/css" href="${ctx}/css/extremecomponents.css" rel="stylesheet"/>
<link type="text/css" href="${ctx}/css/admin.css" rel="stylesheet"/>
<script type="text/javascript" src="${ctx}/js/admin.js"></script>
</head>
<body>
<div id="operationDiv">
<span class="operations"><a href="${ctx}/index.jsp">返回首页</a>
<img src="${ctx}/images/icon/16x16/new.gif" align="top">
<A href="${ctx}/${clz?lower_case}/create.htm">增加</A>
<img src="${ctx}/images/icon/16x16/delete.gif" align="top">
<A href="javascript:batch_do('删除${clz}','${ctx}/${clz?lower_case}/removeAll.htm?token');">删除</A>
</span>
</div>
<div id="tableDiv">
${r"<#include"} "/include/messages.ftl"/>
${r"<@ec.table"} items="page" var="item"
action="${ctx}/${clz?lower_case}/list.htm"
retrieveRowsCallback="limit"
sortRowsCallback="limit"
rowsDisplayed="15"
autoIncludeParameters="false">
${r"<@ec.exportXls"} fileName="${clz}List.xls" tooltip="导出 Excel"/>
${"<@ec.row>"}
${"<@ec.column"} property="rowcount" cell="rowCount" title="序号" sortable="false"/>
<#list fields as field>
<#if field.name != "id" && field.type.name != "java.util.Set">
${"<@ec.column"} property="${field.name}" <#noparse>title="${springMacroRequestContext.getMessage('</#noparse>${clz?uncap_first}.${field.name}', '${clz?uncap_first}.${field.name}')}"/>
</#if>
</#list>
${r"<@ec.column"} property="edit" title="修改" sortable="false" viewsAllowed="html" width="40">
<a href="${ctx}/${clz?lower_case}/edit.htm?id=${r"${item.id}"}">
<img src="${ctx}/images/icon/16x16/modify.gif" border="0"/>
</a>
${r"</@ec.column>"}
${r"<@ec.column"} property="checkbox" title="<input type='checkbox' onclick='selectAll(this)'/>选择" filterable="false" sortable="false" viewsAllowed="html" width="50">
<input type="checkbox" name="itemlist" value="${r"${item.id}"}" style="border:0px"/>
${r"</@ec.column>"}
${r"</@ec.row>"}
${r"</@ec.table>"}
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?