123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>后台管理</title>
- <link rel="stylesheet" type="text/css"
- href="${pageContext.request.contextPath}/static/admin/index/h-ui/css/H-ui.min.css"/>
- <link rel="stylesheet" type="text/css"
- href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/H-ui.admin.css"/>
- <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/css/jquery.mloading.css">
- <link rel="stylesheet" type="text/css"
- href="${pageContext.request.contextPath}/static/admin/index/Hui-iconfont/1.0.8/iconfont.css"/>
- <link rel="stylesheet" type="text/css"
- href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/skin/default/skin.css" id="skin"/>
- <link rel="stylesheet" type="text/css"
- href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/style.css"/>
- <link href="${pageContext.request.contextPath}/static/admin/css/page.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript"
- src="${pageContext.request.contextPath}/static/admin/index/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/layer/layer.js"></script>
- <script type="text/javascript"
- src="${pageContext.request.contextPath}/static/admin/index/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript"
- src="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/js/H-ui.admin.js"></script>
- <script src="${pageContext.request.contextPath}/static/admin/js/jquery.mloading.js"></script>
- </head>
- <body>
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i> 经销商管理
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
- href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
- </nav>
- <br/>
- <br/>
- <form action="dealermanage.html" method="post" id="search">
- <div class="text-c">
- <input type="text" name="name" id="name" placeholder="经销商名称" style="width:250px" class="input-text">
- <input type="text" name="status" hidden="hidden" value="${status}">
- <button onClick="$('#search').submit()" class="btn btn-success" type="submit"><i
- class="Hui-iconfont"></i> 搜索
- </button>
- </div>
- <div class="page-container">
- <span class="l">
- </span>
- </div>
- </form>
- <div class="page-container">
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <%-- <c:if test="${status == 1}">--%>
- <%-- <span class="l">--%>
- <%-- <a class="btn btn-primary radius" href="upidentifier.html?id=0"><i--%>
- <%-- class="Hui-iconfont"></i> 添加经销商</a>--%>
- <%-- </c:if>--%>
- <%-- </span>--%>
- <span class="r">共有数据:<strong>${pageInfo.total }</strong> 条</span>
- </div>
- <input hidden="hidden" id="url" name="url"/>
- <div class="mt-20">
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- <th width="80">编号</th>
- <th width="150">经销商名称</th>
- <th width="150">经销商电话</th>
- <th width="150">经销商地址</th>
- <th width="150">采购渠道</th>
- <th width="150">意向产品</th>
- <th width="150">正代理产品</th>
- <th width="200">添加时间</th>
- <th width="200">操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${pageInfo.list }" var="item">
- <tr class="text-c">
- <td>${item.id }</td>
- <td>${item.name }</td>
- <td>${item.phone }</td>
- <td>${item.address }</td>
- <td>${item.channel }</td>
- <td>${item.dpro }</td>
- <td>${item.zpro }</td>
- <td><fmt:formatDate value="${item.addtime }" pattern="yyyy-MM-dd"/></td>
- <td class="f-14 td-manage">
- <c:if test="${status == 1}">
- <a style="text-decoration:none" class="ml-5" href="upDealer.html?id=${item.id }"
- title="查看"><i class="Hui-iconfont"></i></a>
- </c:if>
- <%-- <c:if test="${status == 0}">--%>
- <%-- <a style="text-decoration:none" class="ml-5" onClick="prosta(${item.id},1)"--%>
- <%-- href="javascript:;"--%>
- <%-- title="通过"><i class="Hui-iconfont"></i></a>--%>
- <%-- <a href="javascript:del(${item.id })"><i class="Hui-iconfont"></i></a>--%>
- <%-- </c:if>--%>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- <div id="PageNum">
- <section>
- <div class="bd points-goods-list">
- <ul class="pages">
- <li>
- <a href="dealermanage.html?page=1&rows=${pageInfo.pageSize}&name=${name}&status=${status}">首页</a>
- </li>
- <li class="prev"><a
- href="dealermanage.html?page=${pageInfo.prePage}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">上一页</a>
- </li>
- <c:forEach items="${pageInfo.navigatepageNums}" var="nav">
- <c:if test="${nav == pageInfo.pageNum}">
- <li>
- <a href="dealermanage.html?page=${nav}&rows=${pageInfo.pageSize}&name=${name}&status=${status}"
- class="active">${nav}</a></li>
- </c:if>
- <c:if test="${nav != pageInfo.pageNum}">
- <li>
- <a href="dealermanage.html?page=${nav}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">${nav}</a>
- </li>
- </c:if>
- </c:forEach>
- <li class="next"><a
- href="dealermanage.html?page=${pageInfo.nextPage}&rows=${pageInfo.pageSize}&name=${name}&status=${status}">下一页</a>
- </li>
- <li>
- <a href="dealermanage.html?page=${pageInfo.pages }&rows=${pageInfo.pageSize}&name=${name}&status=${status}">末页</a>
- </li>
- </ul>
- </div>
- </section>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- //全选与反选
- $("#sltall").click(function () {
- if ($(this).prop("checked")) {
- $("[name='id']").prop("checked", true);//全选
- } else {
- $("[name='id']").prop("checked", false);//取消全选
- }
- });
- function prosta(id, status) {
- if (status == 1) {
- layer.confirm('确认要审核通过嘛?', function (index) {
- $.post("status.html", {id: id, status: status}, function (data) {
- if (data.is) {
- layer.alert("审核成功", {skin: 'layui-layer-molv', closeBtn: 0, anim: 4}, function () {
- window.location = window.location;
- });
- } else {
- layer.msg("审核失败!", {icon: 2, time: 1000});
- }
- }, "json");
- });
- }
- }
- function downs() {
- var chkvalue = "";//定义一个数组
- $("input[name='id']:checked").each(function () {
- chkvalue += $(this).val() + ",";
- });
- window.location.href = "signexcels.html?chkvalue=" + chkvalue;
- };
- function del(id) {
- layer.confirm('确认要删除吗?', function (index) {
- $.post("deldelaer.html", {id: id}, function (data) {
- if (data.is) {
- layer.alert(data.msg, {skin: 'layui-layer-molv', closeBtn: 0, anim: 4}, function () {
- window.location = window.location;
- });
- } else {
- layer.msg(data.msg, {icon: 2, time: 1000});
- }
- }, "json");
- });
- }
- </script>
- </body>
- </html>
|