list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:3k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="code.list" default="Code List" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="code.new" default="New Code" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="code.list" default="Code List" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <div class="list">
- <table>
- <thead>
- <tr>
-
- <g:sortableColumn property="id" title="Id" titleKey="code.id" />
-
- <g:sortableColumn property="codName" title="Cod Name" titleKey="code.codName" />
-
- <g:sortableColumn property="codValue1" title="Cod Value1" titleKey="code.codValue1" />
-
- <g:sortableColumn property="codValue2" title="Cod Value2" titleKey="code.codValue2" />
-
- <g:sortableColumn property="codValue3" title="Cod Value3" titleKey="code.codValue3" />
-
- <g:sortableColumn property="codValue4" title="Cod Value4" titleKey="code.codValue4" />
-
- </tr>
- </thead>
- <tbody>
- <g:each in="${codeList}" status="i" var="code">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td><g:link action="show" id="${code.id}">${code.id?.encodeAsHTML()}</g:link></td>
-
- <td>${code.codName?.encodeAsHTML()}</td>
-
- <td>${code.codValue1?.encodeAsHTML()}</td>
-
- <td>${code.codValue2?.encodeAsHTML()}</td>
-
- <td>${code.codValue3?.encodeAsHTML()}</td>
-
- <td>${code.codValue4?.encodeAsHTML()}</td>
-
- </tr>
- </g:each>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Code.count()}" />
- </div>
- </div>
- </body>
- </html>