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="roster.list" default="Roster 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="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="roster.new" default="New Roster" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="roster.list" default="Roster 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="roster" controller="roster" 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='_rosRequestman' ><g:message code="roster.rosRequestman" default="rosRequestman" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:roster,field:'rosRequestman','errors')}'>
  35.                                     <input type="text" id='_rosRequestman' name='_rosRequestman' value="${params._rosRequestman}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_rosState_id'><g:message code="roster.rosState" default="Ros State" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <g:select optionKey="key" optionValue="value" noSelection="['':'-全部-']" from="${[0:'待审核',1:'通过审核',2:'审核失败']}" name='_rosState_id' value="${params._rosState_id}" ></g:select>
  42.                                 </td>
  43.                             </tr>
  44.                             <tr>
  45.                                 <td valign='middle' class='name'>
  46.                                     <label for='_sigTimefrom'><g:message code="roster.rosLastchange" default="Ros Lastchange" />:</label>
  47.                                 </td>
  48.                                 <td valign='middle' class='value ${hasErrors(bean:roster,field:'sigTime','errors')}'>
  49.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_rosLastchangefrom" name="_rosLastchangefrom" value="${params._rosLastchangefrom}"/>
  50.                                     -- <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_rosLastchangeto" name="_rosLastchangeto" value="${params._rosLastchangeto}"/>
  51.                                 </td>
  52.                                 <td valign='middle' class='name'>
  53.                                     <g:checkBox name="_rosDel" value="${params._rosDel=='on'}" />
  54.                                 </td>
  55.                                 <td valign='middle' class='name'>
  56.                                     <label for='_rosDel'><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.                             <!--sdasddasd-->
  73.                             <g:sortableColumn property="id" title="Id" titleKey="roster.id" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,offset:params.offset]}"/>
  74.                         
  75.                             <th><g:message code="roster.rosRequestman" default="Ros Requestman" /></th>
  76.                         
  77.                             <g:sortableColumn property="rosFrom" title="Ros From" titleKey="roster.rosFrom" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,offset:params.offset]}"/>
  78.                         
  79.                             <g:sortableColumn property="rosTo" title="Ros To" titleKey="roster.rosTo" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,offset:params.offset]}"/>
  80.                         
  81.                              <th><g:message code="roster.rosState" default="Ros State" /></th>
  82.                         
  83.                             <g:sortableColumn property="rosDel" title="Ros RosDel" titleKey="roster.rosDel" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,offset:params.offset]}"/>
  84.                         
  85.                         </tr>
  86.                     </thead>
  87.                     <tbody>
  88.                     <g:each in="${rosterList}" status="i" var="roster">
  89.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  90.                         
  91.                             <td><g:link action="show" id="${roster.id}" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${roster.id?.encodeAsHTML()}</g:link></td>
  92.                         
  93.                             <td>${roster.rosRequestman?.encodeAsHTML()}</td>
  94.                         
  95.                             <td>${roster.rosFrom?.encodeAsHTML()}</td>
  96.                         
  97.                             <td>${roster.rosTo?.encodeAsHTML()}</td>
  98.                         
  99.                             <td>${roster.rosState?.encodeAsHTML()}</td>
  100.                         
  101.                             <td><g:delState del="${roster.rosDel}"/></td>
  102.                         
  103.                         </tr>
  104.                     </g:each>
  105.                         <% index = rosterList.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="${params.count}" params="${[_rosRequestman:params._rosRequestman,_rosState_id:params._rosState_id,_rosLastchangefrom:params._rosLastchangefrom,_rosLastchangeto:params._rosLastchangeto,_rosDel:params._rosDel]}"/>
  122.             </div>
  123.         </div>
  124.     </body>
  125. </html>