123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <%@ 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() {
- $(".clubName").text(getUrlParam("name")?getUrlParam("name"):'');
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- function getUrlParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", 'i'); //构造一个含有目标参数的正则表达式对象
- var r = decodeURIComponent(window.location.search).substr(1).match(reg); //匹配目标参数
- if (r != null) return (r[2]); return null; //返回参数值
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/new/user/agency/">机构列表</a></li>
- <li class="active"><a href="javascript:;">运营人员列表</a></li>
- </ul>
- <div>
- <p style="padding: 12px;"><b>所在机构:</b><span class="clubName"></span></p>
- </div>
- <form:form id="searchForm" modelAttribute="cmOperationUser" action="${ctx}/user/cmOperationUser/list?userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}" 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="ul-form">
- <label>姓名:</label>
- <form:input path="linkName" htmlEscape="false" maxlength="20" class="input-medium"/>
- <label>手机号码:</label>
- <form:input path="mobile" htmlEscape="false" maxlength="11" class="input-medium"/>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- <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>
- <shiro:hasPermission name="user:cmOperationUser:edit"><th>操作</th></shiro:hasPermission>
- </tr>
- </thead>
- <tbody>
- <c:if test="${not empty page.list}">
- <c:forEach items="${page.list}" var="cmOperationUser" varStatus="statusIndex">
- <tr>
- <td>
- ${cmOperationUser.linkName}
- </td>
- <td>
- ${cmOperationUser.mobile}
- </td>
- <td>
- <%--1未绑定,2已绑定--%>
- <c:if test="${cmOperationUser.status ne 2}">
- 未绑定
- </c:if>
- <c:if test="${cmOperationUser.status eq 2}">
- 已绑定
- </c:if>
- </td>
- <td>
- <c:if test="${not empty cmOperationUser.nickName}">
- ${cmOperationUser.nickName}
- </c:if>
- <c:if test="${empty cmOperationUser.nickName}">
- -----
- </c:if>
- </td>
- <td>
- <c:if test="${not empty cmOperationUser.bindTime}">
- <fmt:formatDate value="${cmOperationUser.bindTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </c:if>
- <c:if test="${empty cmOperationUser.bindTime}">
- -----
- </c:if>
- </td>
- <shiro:hasPermission name="user:cmOperationUser:edit"><td>
- <a href="${ctx}/user/cmOperationUser/form?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}">编辑</a>
- <%--未绑定(无论有效还是失效都可以更新)--%>
- <c:if test="${cmOperationUser.status ne 2}">
- <c:if test="${not empty cmOperationUser.invitationCode}">
- <a href="${ctx}/user/cmOperationUser/updateInvitationCode?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定更新邀请码吗?更新后将会短信通知该运营人员。', this.href)">更新邀请码</a>
- </c:if>
- <c:if test="${empty cmOperationUser.invitationCode}">
- <a href="${ctx}/user/cmOperationUser/updateInvitationCode?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定生成邀请码吗?生成后将会短信通知该运营人员。', this.href)">生成邀请码</a>
- </c:if>
- </c:if>
- <%--绑定了才需要解绑--%>
- <c:if test="${cmOperationUser.status eq 2}">
- <a href="${ctx}/user/cmOperationUser/untiedOperationUser?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定解绑该运营人员吗?', this.href)">解绑</a>
- </c:if>
- </td></shiro:hasPermission>
- </tr>
- </c:forEach>
- </c:if>
- </tbody>
- </table>
- <c:if test="${empty page.list}">
- <p style="text-align: center;"><font color="#1e90ff">暂无数据……</font></p>
- </c:if>
- <div class="pagination">${page}</div>
- </body>
- </html>
|