rostercheck.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:6k
- <%--
- Created by IntelliJ IDEA.
- User: Administrator
- Date: 2008-4-10
- Time: 23:53:45
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" %>
- <html>
- <head>
- <title>rostercheck</title>
- <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}" />
- <link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
- %{--<g:javascript library="prototype" />--}%
- <script type='text/javascript' src='${createLinkTo(dir:'js/jquery_boxy/assets',file:'jquery.js')}'></script>
- <link rel="stylesheet" href="${createLinkTo(dir:'js/jquery_boxy/assets',file:'project-page.css')}" type="text/css" />
- <!-- per Project stuff -->
- <script type='text/javascript' src='${createLinkTo(dir:'js/jquery_boxy/javascripts',file:'jquery.boxy.js')}'></script>
- <link rel="stylesheet" href="${createLinkTo(dir:'js/jquery_boxy/stylesheets',file:'boxy.css')}" type="text/css" />
- <!-- END per project stuff -->
- <style type="text/css">
- <!--
- #place {
- position:absolute;
- left:300px;
- top:20px;
- width:590px;
- height:350px;
- z-index:1;
- }
- #checkinfo {
- background-color: #CCCCCC;
- width:590px;
- height:350px;
- overflow: auto;
- }
- -->
- </style>
- <script type='text/javascript'>
- $(function() {
- Boxy.DEFAULTS.title = 'Title';
- //
- // Diagnostics
- $('#diagnostics').click(function() {
- new Boxy("<div id='holo' > </div>", { title: '审核',afterHide: function() {
- document.location.href = '${createLink(controller:'adminPanel',action:'rosterList')}';
- }})
- return false;
- });
- });
- </script>
- <script type="text/javascript">
- function hideDiv(){
- document.getElementById('place').innerHTML = '';
- }
- function afterSuccess(){
- alert('${message(code:'check.success', 'default':'Check Success')}');
- document.location.href = '${createLink(controller:'adminPanel',action:'rosterList')}';
- }
- </script>
- <g:javascript library="application" />
- </head>
- <body>
-
- <div id="place"></div>
- <div class="list">
- <br>
- <table>
- <thead>
- <tr>
- <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]}"/>
- <th><g:message code="roster.rosRequestman" default="Ros Requestman" /></th>
- <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]}"/>
- <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]}"/>
- <th><g:message code="roster.rosState" default="Ros State" /></th>
- <th> </th>
- </tr>
- </thead>
- <tbody>
- <g:each in="${rosterList}" status="i" var="roster">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
- <td>${roster.id?.encodeAsHTML()}</td>
- <td>${roster.rosRequestman?.encodeAsHTML()}</td>
- <td>${roster.rosFrom?.encodeAsHTML()}</td>
- <td>${roster.rosTo?.encodeAsHTML()}</td>
- <td>${roster.rosState?.encodeAsHTML()}</td>
- <td><g:remoteLink action="showRosterCheckinfo" id="${roster.id}" update="place"><g:message code="check" default="Check"/></g:remoteLink>
- <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;});" />
- </td>
- </tr>
- </g:each>
- <% index = rosterList.size() %>
- <g:while test="${index < 10}">
- <% index++ %>
- <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </g:while>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${params.count}" />
- </div>
- </body>
- </html>