dealermanage.jsp 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9. <title>后台管理</title>
  10. <link rel="stylesheet" type="text/css"
  11. href="${pageContext.request.contextPath}/static/admin/index/h-ui/css/H-ui.min.css"/>
  12. <link rel="stylesheet" type="text/css"
  13. href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/H-ui.admin.css"/>
  14. <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/css/jquery.mloading.css">
  15. <link rel="stylesheet" type="text/css"
  16. href="${pageContext.request.contextPath}/static/admin/index/Hui-iconfont/1.0.8/iconfont.css"/>
  17. <link rel="stylesheet" type="text/css"
  18. href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/skin/default/skin.css" id="skin"/>
  19. <link rel="stylesheet" type="text/css"
  20. href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/style.css"/>
  21. <link href="${pageContext.request.contextPath}/static/admin/css/page.css" rel="stylesheet" type="text/css"/>
  22. <script type="text/javascript"
  23. src="${pageContext.request.contextPath}/static/admin/index/jquery/1.9.1/jquery.min.js"></script>
  24. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/layer/layer.js"></script>
  25. <script type="text/javascript"
  26. src="${pageContext.request.contextPath}/static/admin/index/h-ui/js/H-ui.min.js"></script>
  27. <script type="text/javascript"
  28. src="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/js/H-ui.admin.js"></script>
  29. <script src="${pageContext.request.contextPath}/static/admin/js/jquery.mloading.js"></script>
  30. </head>
  31. <body>
  32. <nav class="breadcrumb">
  33. <i class="Hui-iconfont">&#xe67f;</i> 经销商管理
  34. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  35. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  36. </nav>
  37. <br/>
  38. <br/>
  39. <form action="dealermanage.html" method="post" id="search">
  40. <div class="text-c">
  41. <input type="text" name="name" id="name" placeholder="经销商名称" style="width:250px" class="input-text">
  42. <input type="text" name="status" hidden="hidden" value="${status}">
  43. <button onClick="$('#search').submit()" class="btn btn-success" type="submit"><i
  44. class="Hui-iconfont">&#xe665;</i> 搜索
  45. </button>
  46. </div>
  47. <div class="page-container">
  48. <span class="l">
  49. </span>
  50. </div>
  51. </form>
  52. <div class="page-container">
  53. <div class="cl pd-5 bg-1 bk-gray mt-20">
  54. <%-- <c:if test="${status == 1}">--%>
  55. <%-- <span class="l">--%>
  56. <%-- <a class="btn btn-primary radius" href="upidentifier.html?id=0"><i--%>
  57. <%-- class="Hui-iconfont">&#xe600;</i> 添加经销商</a>--%>
  58. <%-- </c:if>--%>
  59. <%-- </span>--%>
  60. <span class="r">共有数据:<strong>${pageInfo.total }</strong> 条</span>
  61. </div>
  62. <input hidden="hidden" id="url" name="url"/>
  63. <div class="mt-20">
  64. <table class="table table-border table-bordered table-bg table-hover table-sort">
  65. <thead>
  66. <tr class="text-c">
  67. <th width="80">编号</th>
  68. <th width="150">经销商名称</th>
  69. <th width="150">经销商电话</th>
  70. <th width="150">经销商地址</th>
  71. <th width="150">采购渠道</th>
  72. <th width="150">意向产品</th>
  73. <th width="150">正代理产品</th>
  74. <th width="200">添加时间</th>
  75. <th width="200">操作</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. <c:forEach items="${pageInfo.list }" var="item">
  80. <tr class="text-c">
  81. <td>${item.id }</td>
  82. <td>${item.name }</td>
  83. <td>${item.phone }</td>
  84. <td>${item.address }</td>
  85. <td>${item.channel }</td>
  86. <td>${item.dpro }</td>
  87. <td>${item.zpro }</td>
  88. <td><fmt:formatDate value="${item.addtime }" pattern="yyyy-MM-dd"/></td>
  89. <td class="f-14 td-manage">
  90. <c:if test="${status == 1}">
  91. <a style="text-decoration:none" class="ml-5" href="upDealer.html?id=${item.id }"
  92. title="查看"><i class="Hui-iconfont">&#xe725;</i></a>
  93. </c:if>
  94. <%-- <c:if test="${status == 0}">--%>
  95. <%-- <a style="text-decoration:none" class="ml-5" onClick="prosta(${item.id},1)"--%>
  96. <%-- href="javascript:;"--%>
  97. <%-- title="通过"><i class="Hui-iconfont">&#xe6de;</i></a>--%>
  98. <%-- <a href="javascript:del(${item.id })"><i class="Hui-iconfont">&#xe6e2;</i></a>--%>
  99. <%-- </c:if>--%>
  100. </td>
  101. </tr>
  102. </c:forEach>
  103. </tbody>
  104. </table>
  105. </div>
  106. <div id="PageNum">
  107. <section>
  108. <div class="bd points-goods-list">
  109. <ul class="pages">
  110. <li>
  111. <a href="dealermanage.html?page=1&rows=${pageInfo.pageSize}&name=${name}&status=${status}">首页</a>
  112. </li>
  113. <li class="prev"><a
  114. href="dealermanage.html?page=${pageInfo.prePage}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">上一页</a>
  115. </li>
  116. <c:forEach items="${pageInfo.navigatepageNums}" var="nav">
  117. <c:if test="${nav == pageInfo.pageNum}">
  118. <li>
  119. <a href="dealermanage.html?page=${nav}&rows=${pageInfo.pageSize}&name=${name}&status=${status}"
  120. class="active">${nav}</a></li>
  121. </c:if>
  122. <c:if test="${nav != pageInfo.pageNum}">
  123. <li>
  124. <a href="dealermanage.html?page=${nav}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">${nav}</a>
  125. </li>
  126. </c:if>
  127. </c:forEach>
  128. <li class="next"><a
  129. href="dealermanage.html?page=${pageInfo.nextPage}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">下一页</a>
  130. </li>
  131. <li>
  132. <a href="dealermanage.html?page=${pageInfo.pages }&rows=${pageInfo.pageSize}&name=${name}&status=${status}">末页</a>
  133. </li>
  134. </ul>
  135. </div>
  136. </section>
  137. </div>
  138. </div>
  139. </div>
  140. <script type="text/javascript">
  141. //全选与反选
  142. $("#sltall").click(function () {
  143. if ($(this).prop("checked")) {
  144. $("[name='id']").prop("checked", true);//全选
  145. } else {
  146. $("[name='id']").prop("checked", false);//取消全选
  147. }
  148. });
  149. function prosta(id, status) {
  150. if (status == 1) {
  151. layer.confirm('确认要审核通过嘛?', function (index) {
  152. $.post("status.html", {id: id, status: status}, function (data) {
  153. if (data.is) {
  154. layer.alert("审核成功", {skin: 'layui-layer-molv', closeBtn: 0, anim: 4}, function () {
  155. window.location = window.location;
  156. });
  157. } else {
  158. layer.msg("审核失败!", {icon: 2, time: 1000});
  159. }
  160. }, "json");
  161. });
  162. }
  163. }
  164. function downs() {
  165. var chkvalue = "";//定义一个数组
  166. $("input[name='id']:checked").each(function () {
  167. chkvalue += $(this).val() + ",";
  168. });
  169. window.location.href = "signexcels.html?chkvalue=" + chkvalue;
  170. };
  171. function del(id) {
  172. layer.confirm('确认要删除吗?', function (index) {
  173. $.post("deldelaer.html", {id: id}, function (data) {
  174. if (data.is) {
  175. layer.alert(data.msg, {skin: 'layui-layer-molv', closeBtn: 0, anim: 4}, function () {
  176. window.location = window.location;
  177. });
  178. } else {
  179. layer.msg(data.msg, {icon: 2, time: 1000});
  180. }
  181. }, "json");
  182. });
  183. }
  184. </script>
  185. </body>
  186. </html>