list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:3k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="code.list" default="Code List" /></title>
  6.     </head>
  7.     <body>
  8.         <div class="nav">
  9.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.             <span class="menuButton"><g:link class="create" action="create"><g:message code="code.new" default="New Code" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="code.list" default="Code List" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <div class="list">
  18.                 <table>
  19.                     <thead>
  20.                         <tr>
  21.                         
  22.                             <g:sortableColumn property="id" title="Id" titleKey="code.id" />
  23.                         
  24.                             <g:sortableColumn property="codName" title="Cod Name" titleKey="code.codName" />
  25.                         
  26.                             <g:sortableColumn property="codValue1" title="Cod Value1" titleKey="code.codValue1" />
  27.                         
  28.                             <g:sortableColumn property="codValue2" title="Cod Value2" titleKey="code.codValue2" />
  29.                         
  30.                             <g:sortableColumn property="codValue3" title="Cod Value3" titleKey="code.codValue3" />
  31.                         
  32.                             <g:sortableColumn property="codValue4" title="Cod Value4" titleKey="code.codValue4" />
  33.                         
  34.                         </tr>
  35.                     </thead>
  36.                     <tbody>
  37.                     <g:each in="${codeList}" status="i" var="code">
  38.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  39.                         
  40.                             <td><g:link action="show" id="${code.id}">${code.id?.encodeAsHTML()}</g:link></td>
  41.                         
  42.                             <td>${code.codName?.encodeAsHTML()}</td>
  43.                         
  44.                             <td>${code.codValue1?.encodeAsHTML()}</td>
  45.                         
  46.                             <td>${code.codValue2?.encodeAsHTML()}</td>
  47.                         
  48.                             <td>${code.codValue3?.encodeAsHTML()}</td>
  49.                         
  50.                             <td>${code.codValue4?.encodeAsHTML()}</td>
  51.                         
  52.                         </tr>
  53.                     </g:each>
  54.                     </tbody>
  55.                 </table>
  56.             </div>
  57.             <div class="paginateButtons">
  58.                 <g:paginate total="${Code.count()}" />
  59.             </div>
  60.         </div>
  61.     </body>
  62. </html>