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="line.list" default="Line 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="line.new" default="New Line" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="line.list" default="Line 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="line.id" />
  23.                         
  24.                             <g:sortableColumn property="baudrate" title="Baudrate" titleKey="line.baudrate" />
  25.                         
  26.                             <g:sortableColumn property="com_nb" title="Comnb" titleKey="line.com_nb" />
  27.                         
  28.                             <g:sortableColumn property="halfDuplex" title="Half Duplex" titleKey="line.halfDuplex" />
  29.                         
  30.                             <g:sortableColumn property="initString" title="Init String" titleKey="line.initString" />
  31.                         
  32.                             <g:sortableColumn property="line_name" title="Linename" titleKey="line.line_name" />
  33.                         
  34.                         </tr>
  35.                     </thead>
  36.                     <tbody>
  37.                     <g:each in="${lineInstanceList}" status="i" var="lineInstance">
  38.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  39.                         
  40.                             <td><g:link action="show" id="${lineInstance.id}">${lineInstance.id?.encodeAsHTML()}</g:link></td>
  41.                         
  42.                             <td>${lineInstance.baudrate?.encodeAsHTML()}</td>
  43.                         
  44.                             <td>${lineInstance.com_nb?.encodeAsHTML()}</td>
  45.                         
  46.                             <td>${lineInstance.halfDuplex?.encodeAsHTML()}</td>
  47.                         
  48.                             <td>${lineInstance.initString?.encodeAsHTML()}</td>
  49.                         
  50.                             <td>${lineInstance.line_name?.encodeAsHTML()}</td>
  51.                         
  52.                         </tr>
  53.                     </g:each>
  54.                     </tbody>
  55.                 </table>
  56.             </div>
  57.             <div class="paginateButtons">
  58.                 <g:paginate total="${Line.count()}" />
  59.             </div>
  60.         </div>
  61.     </body>
  62. </html>