sendmail-config-list.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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-9");%>
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <%@include file="/common/meta.jsp"%>
  10. <title><spring:message code="dev.sendmail-config.list.title" text="列表"/></title>
  11. <%@include file="/common/s3.jsp"%>
  12. <script type="text/javascript">
  13. var config = {
  14. id: 'sendmail-configGrid',
  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-configGridForm',
  27. exportUrl: 'sendmail-config-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-configSearchIcon" class="glyphicon glyphicon-chevron-up"></i></a>
  50. </div>
  51. </div>
  52. <div class="panel-body">
  53. <form name="sendmail-configForm" method="post" action="sendmail-config-list.do" class="form-inline">
  54. <label for="sendmail-config_name"><spring:message code='sendmail-config.sendmail-config.list.search.name' text='名称'/>:</label>
  55. <input type="text" id="sendmail-config_name" name="filter_LIKES_name" value="${param.filter_LIKES_name}" class="form-control">
  56. <button class="btn btn-default a-search" onclick="document.sendmail-configForm.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-config-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-configGridForm" name="sendmail-configGridForm" method='post' action="sendmail-config-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="mailConfigGrid" 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. <!--
  87. <th>编号</th>
  88. -->
  89. <th>名称</th>
  90. <th>SMTP服务器</th>
  91. <th>需要认证</th>
  92. <th>账号</th>
  93. <th width="100">&nbsp;</th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. <c:forEach items="${page.result}" var="item">
  98. <tr>
  99. <td><input type="checkbox" class="selectedItem a-check" name="selectedItem" value="${item.id}"></td>
  100. <!--
  101. <td>${item.id}</td>
  102. -->
  103. <td>${item.name}</td>
  104. <td>${item.host}</td>
  105. <td>${item.smtpAuth == 1 ? '是' : '否'}</td>
  106. <td>${item.username}</td>
  107. <td>
  108. <a href="sendmail-config-input.do?id=${item.id}" class="a-update"><spring:message code="core.list.edit" text="编辑"/></a>
  109. &nbsp;
  110. <a href="sendmail-config-test.do?id=${item.id}">测试</a>
  111. </td>
  112. </tr>
  113. </c:forEach>
  114. </tbody>
  115. </table>
  116. </div>
  117. </form>
  118. <div>
  119. <div class="m-page-info pull-left">
  120. 共100条记录 显示1到10条记录
  121. </div>
  122. <div class="btn-group m-pagination pull-right">
  123. <button class="btn btn-default">&lt;</button>
  124. <button class="btn btn-default">1</button>
  125. <button class="btn btn-default">&gt;</button>
  126. </div>
  127. <div class="clearfix"></div>
  128. </div>
  129. <div class="m-spacer"></div>
  130. </section>
  131. <!-- end of main -->
  132. </div>
  133. </body>
  134. </html>