cmServiceteamRoleList.jsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>协销小组管理</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. .table th{text-align: center;}
  9. .table td{text-align: center;}
  10. </style>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. });
  14. function page(n,s){
  15. $("#pageNo").val(n);
  16. $("#pageSize").val(s);
  17. $("#searchForm").submit();
  18. return false;
  19. }
  20. </script>
  21. </head>
  22. <body>
  23. <ul class="nav nav-tabs">
  24. <li><a href="${ctx}/new/user/cmSp/cmSpList/">协销人员列表</a></li>
  25. <shiro:hasPermission name="user:newCmClub:edit"><li><a href="${ctx}/new/user/cmSp/cmSpForm">添加协销人员</a></li></shiro:hasPermission>
  26. <li class="active"><a href="${ctx}/serviceteam/cmServiceteamRole/">协销小组</a></li>
  27. <li><a href="${ctx}/new/user/cmSp/leader/">协销总管理员</a></li>
  28. </ul>
  29. <form:form id="searchForm" modelAttribute="cmServiceteamRole" action="${ctx}/serviceteam/cmServiceteamRole/" method="post" class="breadcrumb form-search">
  30. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  31. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  32. <div class="flex-wrap">
  33. <div class="item">
  34. <label>协销姓名:</label>
  35. <form:input path="leaderName" class="input-medium" maxlength="50"/>
  36. </div>
  37. <div class="item">
  38. &nbsp;&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  39. </div>
  40. <div class="item">
  41. <a class="btn btn-primary" href="${ctx}/serviceteam/cmServiceteamRole/form" style="margin-left: 15px">添加小组</a>
  42. </div>
  43. <div class="clearfix"></div>
  44. </div>
  45. </form:form>
  46. <sys:message content="${message}"/>
  47. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  48. <thead>
  49. <tr>
  50. <th>小组</th>
  51. <th>组员</th>
  52. <th>组员数量</th>
  53. <th>小组管理员</th>
  54. <th>创建时间</th>
  55. <th>操作</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <c:forEach items="${page.list}" var="cmServiceteamRole" varStatus="status">
  60. <tr>
  61. <td>小组${status.index+1}</td>
  62. <td>
  63. <c:forEach items="${cmServiceteamRole.group}" var="group" varStatus="g">
  64. <c:if test="${!g.last}">
  65. ${group.name},
  66. </c:if>
  67. <c:if test="${g.last}">
  68. ${group.name}
  69. </c:if>
  70. </c:forEach>
  71. </td>
  72. <td>
  73. <c:forEach items="${cmServiceteamRole.group}" var="group" varStatus="g">
  74. <c:if test="${g.last}">
  75. ${g.count}
  76. </c:if>
  77. </c:forEach>
  78. </td>
  79. <td>
  80. ${cmServiceteamRole.leaderName}<c:if test="${cmServiceteamRole.manager eq 1}">(总管理员)</c:if>
  81. </td>
  82. <td>
  83. <fmt:formatDate value="${cmServiceteamRole.createdTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  84. </td>
  85. <td>
  86. <a href="${ctx}/serviceteam/cmServiceteamRole/form?teamId=${cmServiceteamRole.teamId}">编辑</a>
  87. <a href="${ctx}/serviceteam/cmServiceteamRole/delete?teamId=${cmServiceteamRole.teamId}" onclick="return confirmx('确认要删除该协销小组吗?', this.href)">删除</a>
  88. </td>
  89. </tr>
  90. </c:forEach>
  91. </tbody>
  92. </table>
  93. <div class="pagination">${page}</div>
  94. </body>
  95. </html>