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

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="contract.list" default="Contract 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="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="contract.new" default="New Contract" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="contract.list" default="Contract 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="staff" controller="contract" 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='_conId' ><g:message code="contract.conId" default="Con Id" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:contract,field:'conId','errors')}'>
  35.                                     <input type="text" id='_conId' name='_conId' value="${params._conId}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_conMan'><g:message code="contract.conManname" default="con Manname" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <input type="text" id='_conMan' name='_conMan' value="${params._conMan}" size="13" maxlength="10"/>
  42.                                 </td>
  43.                                 <td valign='middle' class='name'>
  44.                                     <label for='_staType_id'><g:message code="contract.conManType" default="con Man Type" />:</label>
  45.                                 </td>
  46.                                 <td valign='middle' class='value ${hasErrors(bean:contract,field:'conManType','errors')}'>
  47.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('StaffType'))}" name='_staType_id' value="${params._staType_id}" ></g:select>
  48.                                 </td>
  49.                             </tr>
  50.                             <tr>
  51.                                 <td valign='middle' class='name'>
  52.                                     <label for='staName'><g:message code="contract.conLastchange" default="con Lastchange" />:</label>
  53.                                 </td>
  54.                                 <td valign='middle' class='value ${hasErrors(bean:staff,field:'staType','errors')}'>
  55.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_conLastchangefrom" name="_conLastchangefrom" value="${params._conLastchangefrom}"/>
  56.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_conLastchangeto" name="_conLastchangeto" value="${params._conLastchangeto}"/>
  57.                                 </td>
  58.                                 <td valign='middle' class='name'>
  59.                                     <g:checkBox name="_conDel" value="${params._conDel=='on'}" />
  60.                                 </td>
  61.                                 <td valign='middle' class='name'>
  62.                                     <label for='_conDel'><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.             
  74.             <div class="list">
  75.                   <br>
  76.                 <table>
  77.                     <thead>
  78.                         <tr>
  79.                         
  80.                             <th><g:message code="contract.conMan" default="Con Man" /></th>
  81.                         
  82.                             <g:sortableColumn property="conId" title="Con Id" titleKey="contract.conId" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,offset:params.offset]}"/>
  83.                         
  84.                             <g:sortableColumn property="conStarttime" title="Con Starttime" titleKey="contract.conStarttime" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,offset:params.offset]}"/>
  85.                         
  86.                             <g:sortableColumn property="conEndtime" title="Con Endtime" titleKey="contract.conEndtime" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,offset:params.offset]}"/>
  87.                         
  88.                             <th><g:message code="contract.conType" default="Con Type" /></th>
  89.                             <th><g:message code="state" default="State" /></th>
  90.                         </tr>
  91.                     </thead>
  92.                     <tbody>
  93.                     <g:each in="${contractList}" status="i" var="contract">
  94.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  95.                         
  96.                             <td><g:link action="show" id="${contract.id}" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${contract.conMan?.encodeAsHTML()}</g:link></td>
  97.                         
  98.                             <td>${contract.conId?.encodeAsHTML()}</td>
  99.                         
  100.                             <td>${contract.conStarttime?.encodeAsHTML()}</td>
  101.                         
  102.                             <td>${contract.conEndtime?.encodeAsHTML()}</td>
  103.                         
  104.                             <td>${contract.conType?.encodeAsHTML()}</td>
  105.                             <td><g:delState del="${contract.conDel}"/></td>
  106.                         </tr>
  107.                     </g:each>
  108.                     <% index = contractList.size() %>
  109.                         <g:while test="${index < 10}">
  110.                             <% index++ %>
  111.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  112.                                 <td>&nbsp;</td>
  113.                                 <td>&nbsp;</td>
  114.                                 <td>&nbsp;</td>
  115.                                 <td>&nbsp;</td>
  116.                                 <td>&nbsp;</td>
  117.                                 <td>&nbsp;</td>
  118.                             </tr>
  119.                         </g:while>
  120.                     </tbody>
  121.                 </table>
  122.             </div>
  123.             <div class="paginateButtons">
  124.                 <g:paginate total="${params.count}" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel]}"/>
  125.             </div>
  126.         </div>
  127.     </body>
  128. </html>