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="system_menu.list" default="System_menu 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="system_menu.new" default="New System_menu" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="system_menu.list" default="System_menu 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="system_menu.id" />
  23.                         
  24.                             <th><g:message code="system_menu.parent" default="Parent" /></th>
  25.                         
  26.                             <g:sortableColumn property="description" title="Description" titleKey="system_menu.description" />
  27.                         
  28.                             <g:sortableColumn property="name" title="Name" titleKey="system_menu.name" />
  29.                         
  30.                         </tr>
  31.                     </thead>
  32.                     <tbody>
  33.                     <g:each in="${system_menuList}" status="i" var="system_menu">
  34.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  35.                         
  36.                             <td><g:link action="show" id="${system_menu.id}">${system_menu.id?.encodeAsHTML()}</g:link></td>
  37.                         
  38.                             <td>${system_menu.parent?.encodeAsHTML()}</td>
  39.                         
  40.                             <td>${system_menu.description?.encodeAsHTML()}</td>
  41.                         
  42.                             <td>${system_menu.name?.encodeAsHTML()}</td>
  43.                         
  44.                         </tr>
  45.                     </g:each>
  46.                     </tbody>
  47.                 </table>
  48.             </div>
  49.             <div class="paginateButtons">
  50.                 <g:paginate total="${System_menu.count()}" />
  51.             </div>
  52.         </div>
  53.     </body>
  54. </html>