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

PlugIns编程

开发平台:

Java

  1. <%--
  2.   Created by IntelliJ IDEA.
  3.   User: Administrator
  4.   Date: 2008-4-10
  5.   Time: 23:53:45
  6.   To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" %>
  9. <html>
  10.   <head>
  11.         <title>rostercheck</title>
  12.         <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}" />
  13.         <link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
  14.               %{--<g:javascript library="prototype" />--}%
  15.     <script type='text/javascript' src='${createLinkTo(dir:'js/jquery_boxy/assets',file:'jquery.js')}'></script>
  16.     <link rel="stylesheet" href="${createLinkTo(dir:'js/jquery_boxy/assets',file:'project-page.css')}" type="text/css" />
  17.     <!-- per Project stuff -->
  18.       <script type='text/javascript' src='${createLinkTo(dir:'js/jquery_boxy/javascripts',file:'jquery.boxy.js')}'></script>
  19.       <link rel="stylesheet" href="${createLinkTo(dir:'js/jquery_boxy/stylesheets',file:'boxy.css')}" type="text/css" />
  20.     <!-- END per project stuff -->
  21. <style type="text/css">
  22. <!--
  23. #place {
  24. position:absolute;
  25. left:300px;
  26. top:20px;
  27. width:590px;
  28. height:350px;
  29. z-index:1;
  30. }
  31. #checkinfo {
  32.     background-color: #CCCCCC;
  33. width:590px;
  34. height:350px;
  35.     overflow: auto;
  36. }
  37. -->
  38. </style>
  39.        <script type='text/javascript'>
  40.         $(function() {
  41.           Boxy.DEFAULTS.title = 'Title';
  42.           //
  43.           // Diagnostics
  44.           $('#diagnostics').click(function() {
  45.               new Boxy("<div id='holo' > </div>", { title: '审核',afterHide: function() {
  46.                   document.location.href = '${createLink(controller:'adminPanel',action:'rosterList')}';
  47.                 }})
  48.               return false;
  49.           });
  50.         });
  51.       </script>
  52.       <script type="text/javascript">
  53.         function hideDiv(){
  54.         document.getElementById('place').innerHTML = '';
  55.         }
  56.         function afterSuccess(){
  57.             alert('${message(code:'check.success', 'default':'Check Success')}');
  58.             document.location.href = '${createLink(controller:'adminPanel',action:'rosterList')}';
  59.         }
  60.       </script>
  61.         <g:javascript library="application" />
  62.   </head>
  63.   <body>
  64.      
  65.     <div id="place"></div>
  66.     <div class="list">
  67.                 <br>
  68.                 <table>
  69.                     <thead>
  70.                         <tr>
  71.                             <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]}"/>
  72.                             <th><g:message code="roster.rosRequestman" default="Ros Requestman" /></th>
  73.                             <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]}"/>
  74.                             <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]}"/>
  75.                              <th><g:message code="roster.rosState" default="Ros State" /></th>
  76.                             <th> </th>
  77.                         </tr>
  78.                     </thead>
  79.                     <tbody>
  80.                     <g:each in="${rosterList}" status="i" var="roster">
  81.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  82.                             <td>${roster.id?.encodeAsHTML()}</td>
  83.                             <td>${roster.rosRequestman?.encodeAsHTML()}</td>
  84.                             <td>${roster.rosFrom?.encodeAsHTML()}</td>
  85.                             <td>${roster.rosTo?.encodeAsHTML()}</td>
  86.                             <td>${roster.rosState?.encodeAsHTML()}</td>
  87.                             <td><g:remoteLink  action="showRosterCheckinfo" id="${roster.id}" update="place"><g:message code="check" default="Check"/></g:remoteLink>
  88.                             <input id='diagnostics' type="button" value="ajax" onclick="$.get('${createLink(action:'showRosterCheckinfo',id:roster.id)}', {Name:'lulu'}, function (data, textStatus){ document.getElementById('holo').innerHTML = data;});" />  
  89.                             </td>
  90.                         </tr>
  91.                     </g:each>
  92.                         <% index = rosterList.size() %>
  93.                         <g:while test="${index < 10}">
  94.                             <% index++ %>
  95.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  96.                                 <td>&nbsp;</td>
  97.                                 <td>&nbsp;</td>
  98.                                 <td>&nbsp;</td>
  99.                                 <td>&nbsp;</td>
  100.                                 <td>&nbsp;</td>
  101.                                 <td>&nbsp;</td>
  102.                             </tr>
  103.                         </g:while>
  104.                     </tbody>
  105.                 </table>
  106.             </div>
  107.             <div class="paginateButtons">
  108.                 <g:paginate total="${params.count}" />
  109.             </div>
  110.   </body>
  111. </html>