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

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="applicat.list" default="Applicat List" /></title>
  6. <script type="text/javascript" src="${createLinkTo(dir:'js/dojo',file:'dojo.js')}">
  7. </script>
  8. <script type="text/javascript">
  9. dojo.require("dojo.widget.validate");
  10. dojo.require("dojo.widget.ComboBox");
  11. dojo.require("dojo.widget.Checkbox");
  12. dojo.require("dojo.widget.Editor");
  13. dojo.require("dojo.widget.DropdownDatePicker");
  14. dojo.require("dojo.widget.Button");
  15. </script>
  16.     </head>
  17.     <body>
  18.         <div class="nav">
  19.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  20.             <span class="menuButton"><g:link class="create" action="create" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="applicat.new" default="New Applicat" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="applicat.list" default="Applicat List" /></h1>
  24.             <g:if test="${flash.message}">
  25.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  26.             </g:if>
  27.              <g:form name="applicat" controller="applicat" action="list" method="post"  enctype="multipart/form-data">
  28.             <table border="0">
  29.                         <div >
  30.                             <tr >
  31.                                 <td valign='middle' class='name'>
  32.                                     <label for='appName' ><g:message code="applicat.appRequestman" default="Requestman" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:applicat,field:'appId','errors')}'>
  35.                                     <input type="text" id='_Requestman' name='_Requestman' value="${params._Requestman}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='appName'><g:message code="applicat.appType" default="App Type" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ApplicatType'))}" name='_appType_id' value="${params._appType_id}" ></g:select>
  42.                                 </td>
  43.                                 <td valign='middle' class='name'>
  44.                                     <label for='appName'><g:message code="applicat.appState" default="App State" />:</label>
  45.                                 </td>
  46.                                 <td valign='middle' class='value ${hasErrors(bean:applicat,field:'appType','errors')}'>
  47.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PermitState'))}" name='_appState_id' value="${params._appState_id}" ></g:select>
  48.                                 </td>
  49.                             </tr>
  50.                             <tr>
  51.                                 <td valign='middle' class='name'>
  52.                                     <label for='appName'><g:message code="applicat.appLastchange" default="更新时间" />:</label>
  53.                                 </td>
  54.                                 <td valign='middle' class='value ${hasErrors(bean:applicat,field:'appType','errors')}'>
  55.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_appLastchangefrom" name="_appLastchangefrom" value="${params._appLastchangefrom}"/>
  56.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_appLastchangeto" name="_appLastchangeto" value="${params._appLastchangeto}"/>
  57.                                 </td>
  58.                                 <td valign='middle' class='name'>
  59.                                     <g:checkBox name="_appDel" value="${params._appDel=='on'}" />
  60.                                 </td>
  61.                                 <td valign='middle' class='name'>
  62.                                     <label for='_appDel'><g:message code="search.all" default="search.all" /></label>
  63.                                 </td>
  64.                                 <td valign='middle' class='value' >
  65.                                     <input class="save" type="submit" value="${message(code:'search', 'default':'Search')}"></input>
  66.                                 </td>
  67.                                 <td valign='middle' class='value'>
  68.                                 </td>
  69.                             </tr>
  70.                         </div>
  71.                      </table>
  72.                       </g:form>
  73.             <div class="list">
  74.                 <br>
  75.                 <table>
  76.                     <thead>
  77.                         <tr>
  78.                         
  79.                             <g:sortableColumn property="id" title="Id" titleKey="applicat.id" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,offset:params.offset]}"/>
  80.                         
  81.                             <th><g:message code="applicat.appRequestman" default="App Requestman" /></th>
  82.                         
  83.                             <th><g:message code="applicat.appType" default="App Type" /></th>
  84.                         
  85.                             <g:sortableColumn property="appFrom" title="App From" titleKey="applicat.appFrom" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,offset:params.offset]}"/>
  86.                             <g:sortableColumn property="appTo" title="App To" titleKey="applicat.appTo" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,offset:params.offset]}"/>
  87.                             <g:sortableColumn property="appState" title="App State" titleKey="applicat.appState" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,offset:params.offset]}"/>
  88.                             <g:sortableColumn property="appDel" title="App appDel" titleKey="applicat.appDel" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,offset:params.offset]}"/>
  89.                                                
  90.                         
  91.                         </tr>
  92.                     </thead>
  93.                     <tbody>
  94.                     <g:each in="${applicatList}" status="i" var="applicat">
  95.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  96.                         
  97.                             <td><g:link action="show" id="${applicat.id}" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${applicat.id?.encodeAsHTML()}</g:link></td>
  98.                         
  99.                             <td>${applicat.appRequestman?.encodeAsHTML()}</td>
  100.                         
  101.                             <td>${applicat.appType?.encodeAsHTML()}</td>
  102.                        
  103.                             <td>${applicat.appFrom?.encodeAsHTML()}</td>
  104.                             <td>${applicat.appTo?.encodeAsHTML()}</td>
  105.                             <td>${applicat.appState?.encodeAsHTML()}</td>
  106.                             <td><g:delState del="${applicat.appDel}"/></td>
  107.                         </tr>
  108.                     </g:each>
  109.                     <% index = applicatList.size() %>
  110.                         <g:while test="${index < 10}">
  111.                             <% index++ %>
  112.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  113.                                 <td>&nbsp;</td>
  114.                                 <td>&nbsp;</td>
  115.                                 <td>&nbsp;</td>
  116.                                 <td>&nbsp;</td>
  117.                                 <td>&nbsp;</td>
  118.                                 <td>&nbsp;</td>
  119.                                 <td>&nbsp;</td>
  120.                             </tr>
  121.                         </g:while>
  122.                     </tbody>
  123.                 </table>
  124.             </div>
  125.             <div class="paginateButtons">
  126.                 <g:paginate total="${params.count}" params="${[_Requestman:params._Requestman,_appType_id:params._appType_id,_appState_id:params._appState_id,_appLastchangefrom:params._appLastchangefrom,_appLastchangeto:params._appLastchangeto,_appDel:params._appDel]}"/>
  127.             </div>
  128.         </div>
  129.     </body>
  130. </html>