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="rtu.list" default="Rtu 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="rtu.new" default="New Rtu" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="rtu.list" default="Rtu 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="rtu.id" />
- <g:sortableColumn property="rtu_nb" title="rtu_nb" titleKey="rtu.rtu_nb" />
- <g:sortableColumn property="rtu_name" title="rtu_name" titleKey="rtu.rtu_name" />
-
- <g:sortableColumn property="stay_in_db" title="stay_in_db" titleKey="rtu.stay_in_db" />
-
- <g:sortableColumn property="line_nb" title="Linenb" titleKey="rtu.line_nb" />
-
- <g:sortableColumn property="rtu_type" title="rtu_type" titleKey="rtu.rtu_type" />
-
- <g:sortableColumn property="password" title="Password" titleKey="rtu.password" />
-
- </tr>
- </thead>
- <tbody>
- <g:each in="${rtuInstanceList}" status="i" var="rtuInstance">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td><g:link action="show" id="${rtuInstance.id}">${rtuInstance.id?.encodeAsHTML()}</g:link></td>
- <td>${rtuInstance.rtu_nb?.encodeAsHTML()}</td>
- <td>${rtuInstance.rtu_name?.encodeAsHTML()}</td>
-
- <td>${rtuInstance.stay_in_db?.encodeAsHTML()}</td>
- <td>${rtuInstance.line_nb?.encodeAsHTML()}</td>
-
- <td>${rtuInstance.rtu_type?.encodeAsHTML()}</td>
-
- <td>${rtuInstance.password?.encodeAsHTML()}</td>
-
- </tr>
- </g:each>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Rtu.count()}" />
- </div>
- </div>
- </body>
- </html>