sendmail-queue-list.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "sendmail");%>
  4. <%pageContext.setAttribute("currentMenu", "sendmail");%>
  5. <%pageContext.setAttribute("currentTitle", "party-11");%>
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <%@include file="/common/meta.jsp"%>
  10. <title><spring:message code="dev.sendmail-queue.list.title" text="列表"/></title>
  11. <%@include file="/common/s3.jsp"%>
  12. <script type="text/javascript">
  13. var config = {
  14. id: 'sendmail-queueGrid',
  15. pageNo: ${page.pageNo},
  16. pageSize: ${page.pageSize},
  17. totalCount: ${page.totalCount},
  18. resultSize: ${page.resultSize},
  19. pageCount: ${page.pageCount},
  20. orderBy: '${page.orderBy == null ? "" : page.orderBy}',
  21. asc: ${page.asc},
  22. params: {
  23. 'filter_LIKES_name': '${param.filter_LIKES_name}'
  24. },
  25. selectedItemClass: 'selectedItem',
  26. gridFormId: 'sendmail-queueGridForm',
  27. exportUrl: 'sendmail-queue-export.do'
  28. };
  29. var table;
  30. $(function() {
  31. table = new Table(config);
  32. table.configPagination('.m-pagination');
  33. table.configPageInfo('.m-page-info');
  34. table.configPageSize('.m-page-size');
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <%@include file="/header/_pim3.jsp"%>
  40. <div class="row-fluid">
  41. <%@include file="/menu/sendmail.jsp"%>
  42. <!-- start of main -->
  43. <section id="m-main" class="col-md-10" style=" ">
  44. <div class="panel panel-default">
  45. <div class="panel-heading">
  46. <i class="glyphicon glyphicon-list"></i>
  47. 查询
  48. <div class="pull-right ctrl">
  49. <a class="btn btn-default btn-xs"><i id="sendmail-queueSearchIcon" class="glyphicon glyphicon-chevron-up"></i></a>
  50. </div>
  51. </div>
  52. <div class="panel-body">
  53. <form name="sendmail-queueForm" method="post" action="sendmail-queue-list.do" class="form-inline">
  54. <label for="sendmail-queue_name"><spring:message code='sendmail-queue.sendmail-queue.list.search.name' text='名称'/>:</label>
  55. <input type="text" id="sendmail-queue_name" name="filter_LIKES_name" value="${param.filter_LIKES_name}" class="form-control">
  56. <button class="btn btn-default a-search" onclick="document.sendmail-queueForm.submit()">查询</button>&nbsp;
  57. </form>
  58. </div>
  59. </div>
  60. <div style="margin-bottom: 20px;">
  61. <div class="pull-left btn-group" role="group">
  62. <button class="btn btn-default a-insert" onclick="location.href='sendmail-queue-input.do'">新建</button>
  63. <button class="btn btn-default a-remove" onclick="table.removeAll()">删除</button>
  64. <button class="btn btn-default a-export" onclick="table.exportExcel()">导出</button>
  65. </div>
  66. <div class="pull-right">
  67. 每页显示
  68. <select class="m-page-size form-control" style="display:inline;width:auto;">
  69. <option value="10">10</option>
  70. <option value="20">20</option>
  71. <option value="50">50</option>
  72. </select>
  73. </div>
  74. <div class="clearfix"></div>
  75. </div>
  76. <form id="sendmail-queueGridForm" name="sendmail-queueGridForm" method='post' action="sendmail-queue-remove.do" class="m-form-blank">
  77. <div class="panel panel-default">
  78. <div class="panel-heading">
  79. <i class="glyphicon glyphicon-list"></i>
  80. <spring:message code="scope-info.scope-info.list.title" text="列表"/>
  81. </div>
  82. <table id="mailQueueGrid" class="table table-hover">
  83. <thead>
  84. <tr>
  85. <th width="10" class="table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
  86. <th>编号</th>
  87. <th>创建时间</th>
  88. <th>模板</th>
  89. <th>接收者</th>
  90. <th width="80">&nbsp;</th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <c:forEach items="${page.result}" var="item">
  95. <tr>
  96. <td><input type="checkbox" class="selectedItem a-check" name="selectedItem" value="${item.id}"></td>
  97. <td>${item.id}</td>
  98. <td>${item.createTime}</td>
  99. <td>${item.sendmailTemplate.name}</td>
  100. <td>${item.receiver}</td>
  101. <td>
  102. <a href="sendmail-queue-input.do?id=${item.id}" class="a-update"><spring:message code="core.list.edit" text="编辑"/></a>
  103. </td>
  104. </tr>
  105. </c:forEach>
  106. </tbody>
  107. </table>
  108. </div>
  109. </form>
  110. <div>
  111. <div class="m-page-info pull-left">
  112. 共100条记录 显示1到10条记录
  113. </div>
  114. <div class="btn-group m-pagination pull-right">
  115. <button class="btn btn-default">&lt;</button>
  116. <button class="btn btn-default">1</button>
  117. <button class="btn btn-default">&gt;</button>
  118. </div>
  119. <div class="clearfix"></div>
  120. </div>
  121. <div class="m-spacer"></div>
  122. </section>
  123. <!-- end of main -->
  124. </div>
  125. </body>
  126. </html>