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="rtu.list" default="Rtu 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="rtu.new" default="New Rtu" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="rtu.list" default="Rtu 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="rtu.id" />
  23.                             <g:sortableColumn property="rtu_nb" title="rtu_nb" titleKey="rtu.rtu_nb" />
  24.                             <g:sortableColumn property="rtu_name" title="rtu_name" titleKey="rtu.rtu_name" />
  25.                         
  26.                             <g:sortableColumn property="stay_in_db" title="stay_in_db" titleKey="rtu.stay_in_db" />
  27.                         
  28.                             <g:sortableColumn property="line_nb" title="Linenb" titleKey="rtu.line_nb" />
  29.                         
  30.                             <g:sortableColumn property="rtu_type" title="rtu_type" titleKey="rtu.rtu_type" />
  31.                         
  32.                             <g:sortableColumn property="password" title="Password" titleKey="rtu.password" />
  33.                         
  34.                         </tr>
  35.                     </thead>
  36.                     <tbody>
  37.                     <g:each in="${rtuInstanceList}" status="i" var="rtuInstance">
  38.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  39.                         
  40.                             <td><g:link action="show" id="${rtuInstance.id}">${rtuInstance.id?.encodeAsHTML()}</g:link></td>
  41.                             <td>${rtuInstance.rtu_nb?.encodeAsHTML()}</td>
  42.                             <td>${rtuInstance.rtu_name?.encodeAsHTML()}</td>
  43.                         
  44.                             <td>${rtuInstance.stay_in_db?.encodeAsHTML()}</td>
  45.                             <td>${rtuInstance.line_nb?.encodeAsHTML()}</td>
  46.                         
  47.                             <td>${rtuInstance.rtu_type?.encodeAsHTML()}</td>
  48.                         
  49.                             <td>${rtuInstance.password?.encodeAsHTML()}</td>
  50.                         
  51.                         </tr>
  52.                     </g:each>
  53.                     </tbody>
  54.                 </table>
  55.             </div>
  56.             <div class="paginateButtons">
  57.                 <g:paginate total="${Rtu.count()}" />
  58.             </div>
  59.         </div>
  60.     </body>
  61. </html>