cmRemaksList.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <html>
  5. <head>
  6. <title>关键词库</title>
  7. <meta name="decorator" content="default"/>
  8. <style type="text/css">
  9. .table th {
  10. text-align: center;
  11. }
  12. .table td {
  13. text-align: center;
  14. }
  15. </style>
  16. <script type="text/javascript">
  17. $(document).ready(function () {
  18. });
  19. function page(n, s) {
  20. $("#pageNo").val(n);
  21. $("#pageSize").val(s);
  22. $("#searchForm").submit();
  23. return false;
  24. }
  25. </script>
  26. </head>
  27. <body>
  28. <ul class="nav nav-tabs">
  29. <shiro:hasPermission name="user:agency:regist">
  30. <li><a href="${ctx}/new/user/agency/regist">已注册用户咨询记录</a></li>
  31. </shiro:hasPermission>
  32. <shiro:hasPermission name="user:agency:unregist">
  33. <li><a href="${ctx}/new/user/visit/unregist">未注册用户咨询记录</a></li>
  34. </shiro:hasPermission>
  35. <shiro:hasPermission name="user:agency:reportList">
  36. <li><a href="${ctx}/new/user/agency/ReportList">报备列表</a></li>
  37. </shiro:hasPermission>
  38. <shiro:hasPermission name="user:agency:cmConsulttype">
  39. <li><a href="${ctx}/consult/type/cmConsulttype/">咨询类别设置</a></li>
  40. </shiro:hasPermission>
  41. <shiro:hasPermission name="user:agency:cmrenaksList">
  42. <li class="active"><a href="${ctx}/new/user/agency/cmrenaksList">关键词库</a></li>
  43. </shiro:hasPermission>
  44. </ul>
  45. <form:form id="searchForm" modelAttribute="cmRemaks" action="${ctx}/new/user/agency/cmrenaksList" method="post"
  46. class="breadcrumb form-search">
  47. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  48. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  49. <div class="ul-form">
  50. <label>关键词:</label>
  51. <form:input path="remarks" name="remarks" htmlEscape="false" class="input-medium" maxlength="10"/>
  52. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询">
  53. <a id="dfa" href="${ctx}/new/user/agency/cmrenaksForm" class="btn btn-primary"> 添加关键词</a>
  54. </div>
  55. </form:form>
  56. <sys:message content="${message}"/>
  57. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  58. <thead>
  59. <tr>
  60. <th>ID</th>
  61. <th>关键词</th>
  62. <th>添加时间</th>
  63. <th>操作</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <c:forEach items="${page.list}" var="cmop">
  68. <tr>
  69. <td>
  70. ${empty cmop.remarksId ? "------" : cmop.remarksId}
  71. </td>
  72. <td>
  73. ${empty cmop.remarks ? "________" : cmop.remarks}
  74. </td>
  75. <td>
  76. <fmt:formatDate value="${cmop.addtime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  77. </td>
  78. <td>
  79. <a href="${ctx}/new/user/agency/cmrenaksForm?remarksId=${cmop.remarksId}">编辑</a>
  80. <a href="javascript:void(0);" onclick="offliney(${cmop.remarksId})">删除</a>
  81. </td>
  82. </tr>
  83. </c:forEach>
  84. </tbody>
  85. </table>
  86. <div class="pagination">${page}</div>
  87. <script type="text/javascript">
  88. function offliney(userId) {
  89. $.jBox.confirm("确定删除该关键词吗?","提示",function(v,h,f){
  90. if(v === 1){
  91. window.location.href="${ctx}/new/user/agency/deleteRamarks?remarksId="+userId;
  92. }
  93. } ,{ buttons: { '确定': 1,'取消':2}});
  94. }
  95. </script>
  96. </body>
  97. </html>