| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>幻灯片列表</title>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <span th:if="${is_build}" class="c-gray en">> 企业展示</span>
- <span th:unless="${is_build}" class="c-gray en">> 产品发布</span>
- <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>
- <form id="myForm" th:action="@{/build/companyShow/list}" th:method="get">
- <div class="page-container">
- <div th:unless="${isCompany}" class="text-c">
- <span class="select-box" style="width:250px">
- <select th:id="searchStatus" class="select" th:name="searchStatus" onChange="$('#myForm').submit();">
- <option value="">--全部--</option>
- <option th:value="0" th:text="待审核" th:selected="${searchStatus}==0"></option>
- <option th:value="1" th:text="已审核" th:selected="${searchStatus}==1"></option>
- <option th:value="2" th:text="退回" th:selected="${searchStatus}==2"></option>
- </select>
- </span>
- <input type="text" class="input-text" style="width:250px" placeholder="请输入企业名称,产品名称,联系人" name="keyword" th:value="${keyword}"/>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <a th:if="${isCompany}" th:onclick="'javascript:company_add(\'新增\',\'/build/companyShow/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
- </div>
- <table id="companyTb" class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th><span th:unless="${searchStatus}==1">序号</span></th>
- <th>产品名称</th>
- <th>企业名称</th>
- <th>联系人</th>
- <th>联系方式</th>
- <th>发布时间</th>
- <th>状态</th>
- <th th:if="${searchStatus}==1">启禁用状态</th>
- <!-- <th>是否启用</th> -->
- <th width="150">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <td><input th:if="${searchStatus}==1" type="checkbox" th:id="*{id}"/><span th:unless="${searchStatus}==1" th:text="${iterStat.index+1}"></span></td>
- <td th:text="*{product_name}"></td>
- <td th:text="*{company_name}"></td>
- <td th:text="*{contact}"></td>
- <td th:text="*{phone}"></td>
- <td th:text="*{create_time}"></td>
- <td class="td-status" th:switch="*{status}">
- <span class="label radius" th:case="0">待审核</span>
- <span class="label radius label-success" th:case="1">已审核</span>
- <span class="label radius" th:case="2">退回</span>
- </td>
- <td class="td-status" th:if="${searchStatus}==1">
- <span class="label radius" th:unless="*{is_start}">禁用</span>
- <span class="label radius label-success" th:if="*{is_start}">启用</span>
- </td>
- <td th:if="${isCompany}" class="td-manage">
- <span th:if="*{status}==2"><a title="编辑" onclick="company_edit('企业信息发布编辑','admin-add.html','2')" th:onclick="'javascript:company_edit(\'编辑\',\'/build/companyShow/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a></span>
- <span><a title="详情" th:onclick="'javascript:company_edit(\'详情\',\'/build/companyShow/show/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a></span>
- <span><a title="删除" th:onclick="'javascript:companyShow_delete(\'删除\',\'/build/companyShow/delete/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">删除</a></span>
- </td>
- <td th:unless="${isCompany}" class="td-manage">
- <span th:unless="*{status}"><a title="审核" th:onclick="'javascript:company_edit(\'审核\',\'/build/companyShow/auditPage/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">审核</a></span>
- <span th:if="*{status}"> <a title="详情" th:onclick="'javascript:company_edit(\'详情\',\'/build/companyShow/show/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a></span>
- <span th:if="*{status==1} and !*{is_start}" > <a th:onclick="'javascript:company_status(\'/build/companyShow/switch/'+*{id}+'\',\'true\');'">启用</a></span>
- <span th:if="*{status==1} and *{is_start}" > <a th:onclick="'javascript:company_status(\'/build/companyShow/switch/'+*{id}+'\',\'false\');'" >禁用</a></span>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- </form>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script type="text/javascript" th:src="@{/js/build/company/company_show_list.js}"></script>
- <script th:inline="javascript">
- </script>
- </body>
- </html>
|