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

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="signInOut.list" default="SignInOut 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="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="signInOut.new" default="New SignInOut" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="signInOut.list" default="SignInOut 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="signInOut" controller="signInOut" 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='_sigMan' ><g:message code="signInOut.sigMan" default="sigMan" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:signInOut,field:'sigMan','errors')}'>
  35.                                     <input type="text" id='_sigMan' name='_sigMan' value="${params._sigMan}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_sigType_id'><g:message code="signInOut.sigType" default="Sig Type" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SignType'))}" name='_sigType_id' value="${params._appState_id}" ></g:select>
  42.                                 </td>
  43.                             </tr>
  44.                             <tr>
  45.                                 <td valign='middle' class='name'>
  46.                                     <label for='_sigTimefrom'><g:message code="signInOut.sigTime" default="更新时间" />:</label>
  47.                                 </td>
  48.                                 <td valign='middle' class='value ${hasErrors(bean:signInOut,field:'sigTime','errors')}'>
  49.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_sigTimefrom" name="_sigTimefrom" value="${params._sigTimefrom}"/>
  50.                                     -- <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_sigTimeto" name="_sigTimeto" value="${params._sigTimeto}"/>
  51.                                 </td>
  52.                                 <td valign='middle' class='name'>
  53.                                     <g:checkBox name="_sigDel" value="${params._sigDel=='on'}" />
  54.                                 </td>
  55.                                 <td valign='middle' class='name'>
  56.                                     <label for='_sigDel'><g:message code="search.all" default="search.all" /></label>
  57.                                 </td>
  58.                                 <td valign='middle' class='value' >
  59.                                     <input class="save" type="submit" value="${message(code:'search', 'default':'Search')}"></input>
  60.                                 </td>
  61.                                 <td valign='middle' class='value'>
  62.                                 </td>
  63.                             </tr>
  64.                         </div>
  65.                      </table>
  66.                       </g:form>
  67.             <div class="list">
  68.                 <br>
  69.                 <table>
  70.                     <thead>
  71.                         <tr>
  72.                         
  73.                             <g:sortableColumn property="id" title="Id" titleKey="signInOut.id" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,offset:params.offset]}"/>
  74.                         
  75.                             <th><g:message code="signInOut.sigMan" default="Sig Man" /></th>
  76.                         
  77.                             <g:sortableColumn property="sigTime" title="Sig Time" titleKey="signInOut.sigTime" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,offset:params.offset]}"/>
  78.                         
  79.                             <th><g:message code="signInOut.sigType" default="Sig Type" /></th>
  80.                         
  81.                             <g:sortableColumn property="sigCause" title="Sig Cause" titleKey="signInOut.sigCause" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,offset:params.offset]}"/>
  82.                         
  83.                             <g:sortableColumn property="sigDel" title="Sig SigDel" titleKey="signInOut.sigDel" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,offset:params.offset]}"/>
  84.                         
  85.                         </tr>
  86.                     </thead>
  87.                     <tbody>
  88.                     <g:each in="${signInOutList}" status="i" var="signInOut">
  89.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  90.                         
  91.                             <td><g:link action="show" id="${signInOut.id}" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${signInOut.id?.encodeAsHTML()}</g:link></td>
  92.                         
  93.                             <td>${signInOut.sigMan?.encodeAsHTML()}</td>
  94.                         
  95.                             <td>${signInOut.sigTime?.encodeAsHTML()}</td>
  96.                         
  97.                             <td>${signInOut.sigType?.encodeAsHTML()}</td>
  98.                         
  99.                             <td>${signInOut.sigCause?.encodeAsHTML()}</td>
  100.                         
  101.                             <td><g:delState del="${signInOut.sigDel}"/></td>
  102.                         
  103.                         </tr>
  104.                     </g:each>
  105.                         <% index = signInOutList.size() %>
  106.                         <g:while test="${index < 10}">
  107.                             <% index++ %>
  108.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  109.                                 <td>&nbsp;</td>
  110.                                 <td>&nbsp;</td>
  111.                                 <td>&nbsp;</td>
  112.                                 <td>&nbsp;</td>
  113.                                 <td>&nbsp;</td>
  114.                                 <td>&nbsp;</td>
  115.                             </tr>
  116.                         </g:while>
  117.                     </tbody>
  118.                 </table>
  119.             </div>
  120.             <div class="paginateButtons">
  121.                 <g:paginate total="${SignInOut.count()}" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel]}"/>
  122.             </div>
  123.         </div>
  124.     </body>
  125. </html>