123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <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">
- <shiro:hasPermission name="user:agency:regist">
- <li><a href="${ctx}/new/user/agency/regist">已注册用户咨询记录</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="user:agency:unregist">
- <li><a href="${ctx}/new/user/visit/unregist">未注册用户咨询记录</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="user:agency:reportList">
- <li><a href="${ctx}/new/user/agency/ReportList">报备列表</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="user:agency:cmConsulttype">
- <li><a href="${ctx}/consult/type/cmConsulttype/">咨询类别设置</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="user:agency:cmrenaksList">
- <li class="active"><a href="${ctx}/new/user/agency/cmrenaksList">关键词库</a></li>
- </shiro:hasPermission>
- </ul>
- <form:form id="searchForm" modelAttribute="cmRemaks" action="${ctx}/new/user/agency/cmrenaksList" 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="remarks" name="remarks" htmlEscape="false" class="input-medium" maxlength="10"/>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询">
- <a id="dfa" href="${ctx}/new/user/agency/cmrenaksForm" class="btn btn-primary"> 添加关键词</a>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>ID</th>
- <th>关键词</th>
- <th>添加时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="cmop">
- <tr>
- <td>
- ${empty cmop.remarksId ? "------" : cmop.remarksId}
- </td>
- <td>
- ${empty cmop.remarks ? "________" : cmop.remarks}
- </td>
- <td>
- <fmt:formatDate value="${cmop.addtime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- <a href="${ctx}/new/user/agency/cmrenaksForm?remarksId=${cmop.remarksId}">编辑</a>
- <a href="javascript:void(0);" onclick="offliney(${cmop.remarksId})">删除</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- <script type="text/javascript">
- function offliney(userId) {
- $.jBox.confirm("确定删除该关键词吗?","提示",function(v,h,f){
- if(v === 1){
- window.location.href="${ctx}/new/user/agency/deleteRamarks?remarksId="+userId;
- }
- } ,{ buttons: { '确定': 1,'取消':2}});
- }
- </script>
- </body>
- </html>
|