123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>协销小组管理</title>
- <meta name="decorator" content="default"/>
- <style type="text/css">
- .table th{text-align: center;}
- .table td{text-align: center;}
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
-
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/new/user/cmSp/cmSpList/">协销人员列表</a></li>
- <shiro:hasPermission name="user:newCmClub:edit"><li><a href="${ctx}/new/user/cmSp/cmSpForm">添加协销人员</a></li></shiro:hasPermission>
- <li class="active"><a href="${ctx}/serviceteam/cmServiceteamRole/">协销小组</a></li>
- <li><a href="${ctx}/new/user/cmSp/leader/">协销总管理员</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="cmServiceteamRole" action="${ctx}/serviceteam/cmServiceteamRole/" method="post" class="breadcrumb form-search">
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
- <div class="flex-wrap">
- <div class="item">
- <label>协销姓名:</label>
- <form:input path="leaderName" class="input-medium" maxlength="50"/>
- </div>
- <div class="item">
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- </div>
- <div class="item">
- <a class="btn btn-primary" href="${ctx}/serviceteam/cmServiceteamRole/form" style="margin-left: 15px">添加小组</a>
- </div>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>小组</th>
- <th>组员</th>
- <th>组员数量</th>
- <th>小组管理员</th>
- <th>创建时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="cmServiceteamRole" varStatus="status">
- <tr>
- <td>小组${status.index+1}</td>
- <td>
- <c:forEach items="${cmServiceteamRole.group}" var="group" varStatus="g">
- <c:if test="${!g.last}">
- ${group.name},
- </c:if>
- <c:if test="${g.last}">
- ${group.name}
- </c:if>
- </c:forEach>
- </td>
- <td>
- <c:forEach items="${cmServiceteamRole.group}" var="group" varStatus="g">
- <c:if test="${g.last}">
- ${g.count}
- </c:if>
- </c:forEach>
- </td>
- <td>
- ${cmServiceteamRole.leaderName}<c:if test="${cmServiceteamRole.manager eq 1}">(总管理员)</c:if>
- </td>
- <td>
- <fmt:formatDate value="${cmServiceteamRole.createdTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- <a href="${ctx}/serviceteam/cmServiceteamRole/form?teamId=${cmServiceteamRole.teamId}">编辑</a>
- <a href="${ctx}/serviceteam/cmServiceteamRole/delete?teamId=${cmServiceteamRole.teamId}" onclick="return confirmx('确认要删除该协销小组吗?', this.href)">删除</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|