| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <!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 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="@{/government/activity/list}" th:method="get">
- <div class="page-container">
- <div style="text-align:center">
- <input type="text" class="input-text" style="width:200px" placeholder="请输入活动标题" name="title"
- th:value="${condition.title}"/>
- <label>活动状态:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" name="state">
- <option value="">--请选择状态--</option>
- <option value="0" th:selected="${condition.state}==0">未发布</option>
- <option value="1" th:selected="${condition.state}==1">活动报名</option>
- <option value="3" th:selected="${condition.state}==3">活动进行</option>
- <option value="4" th:selected="${condition.state}==4">活动结束</option>
- <option value="2" th:selected="${condition.state}==2">活动取消</option>
- </select>
- </span>
- <label>类型:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" th:name="type">
- <option value="">--请选择类型--</option>
- <option th:each="item : ${activity_type}" th:value="${item.value}" th:text="${item.name}"
- th:selected="${condition.type}==${item.value}">
- </option>
- </select>
- </span>
- <label>报名审核:</label>
- <span class="select-box" style="width:100px;">
- <select class="select" name="review">
- <option value="">--请选择--</option>
- <option value="0" th:selected="${condition.review}==0">是</option>
- <option value="1" th:selected="${condition.review}==1">否</option>
- </select>
- </span>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- <!--<a class="btn btn-primary j-senior">
- 高级查询
- </a>-->
- <!--<div class="j-senior-box" style="margin-top: 10px; display: block;">
- <label>活动状态:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" name="state">
- <option value="">--请选择状态--</option>
- <option value="0" th:selected="${condition.state}==0">未发布</option>
- <option value="1" th:selected="${condition.state}==1">活动报名</option>
- <option value="3" th:selected="${condition.state}==3">活动进行</option>
- <option value="4" th:selected="${condition.state}==4">活动结束</option>
- <option value="2" th:selected="${condition.state}==2">活动取消</option>
- </select>
- </span>
- <label>类型:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" th:name="type">
- <option value="">--请选择类型--</option>
- <option th:each="item : ${activity_type}" th:value="${item.value}" th:text="${item.name}"
- th:selected="${condition.type}==${item.value}">
- </option>
- </select>
- </span>
- <label>报名审核:</label>
- <span class="select-box" style="width:100px;">
- <select class="select" name="review">
- <option value="">--请选择--</option>
- <option value="0" th:selected="${condition.review}==0">是</option>
- <option value="1" th:selected="${condition.review}==1">否</option>
- </select>
- </span>
- </div>-->
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <a th:onclick="'javascript:activity_add(\'新增\',\'/government/activity/add\');'"
- class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- <a th:onclick="'javascript:activity_add(\'活动日历\',\'/government/activity/calendar\');'"
- class="btn btn-primary radius"><i class="Hui-iconfont"></i> 活动日历</a>
- <!--<a onClick="" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 活动统计</a>-->
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">0</strong> 条</span>
- </div>
- <table class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
- <thead>
- <tr class="text-c">
- <th width="25"><input type="checkbox"></th>
- <th>类型</th>
- <th>标题</th>
- <th>活动状态</th>
- <th>报名审核</th>
- <th>阅读数</th>
- <th>报名人数</th>
- <th>审核人数</th>
- <th>签到数</th>
- <th>反馈数</th>
- <th>二维码显示</th>
- <th width="120">发布时间</th>
- <th width="120">活动时间</th>
- <th width="180">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="m,iterStat:${pageInfo.list}">
- <td><input type="checkbox"></td>
- <td th:text="${m.activity_type}" th:title="${m.activity_type}"></td>
- <td class="text-overflow" th:text="${m.activity_title}" th:title="${m.activity_title}"></td>
- <!--<td th:text="${m.activity_state}"></td>-->
- <td th:if="${m.state_code=='0'}">未发布</td>
- <td th:if="${m.state_code=='1'}">活动报名</td>
- <td th:if="${m.state_code=='3'}">活动进行</td>
- <td th:if="${m.state_code=='4'}">活动结束</td>
- <td th:if="${m.state_code=='2'}">活动取消</td>
- <!--<td th:text="${m.is_review}"></td>-->
- <td th:if="${m.is_review=='0'}">是</td>
- <td th:if="${m.is_review=='1'}">否</td>
- <td th:text="${m.reading_number}"></td>
- <td th:text="${m.registration_number}"></td>
- <td th:text="${m.registration_pass_number}"></td>
- <td th:text="${m.sgin_number}"></td>
- <td th:text="${m.feedback_number}"></td>
- <td th:if="${m.is_qrcode_show=='1'}">是</td>
- <td th:if="${m.is_qrcode_show=='0'}">否</td>
- <!--<td th:text="${#dates.format(m.activity_publishtime,'yyyy-MM-dd HH:mm')}"></td>-->
- <td th:text="${#strings.substring(m.activity_publishtime,0,16)}"></td>
- <td th:text="${#strings.substring(m.activity_starttime,0,16)}"></td>
- <td class="td-manage">
- <a class="ml-5"
- th:onclick="'javascript:activityDetail(\'查看活动详情\',\'/government/activity/get/'+${m.id}+'\');'">详情</a>
- <!--未发布和报名中编辑-->
- <a th:if="${m.state_code=='0'||m.state_code=='1'}" class="ml-5"
- th:onclick="'javascript:editActivity(\'编辑活动\',\'/government/activity/edit/'+${m.id}+'\');'">编辑</a>
- <!--报名中和进行中的可以审核-->
- <a th:if="${(m.state_code=='1'||m.state_code=='3')&& m.is_review=='0'}" class="ml-5"
- th:onclick="'javascript:activityReview(\'活动审核\',\'/government/activity/review/'+${m.id}+'\');'">审核</a>
- <!--报名中的可以取消-->
- <a th:if="${m.state_code=='1'}" class="ml-5" th:id="${m.id}"
- th:onclick="'javascript:activityReject(\'活动取消\',\'/government/activity/abort/'+${m.id}+'\',\'800\',\'600\');'">取消活动</a>
- <!--进行中和结束的可以签到-->
- <a th:if="${m.state_code=='3'||m.state_code=='4'}" class="ml-5"
- th:onclick="'javascript:activitySign(\'活动签到\',\'/government/activity/sign/'+${m.id}+'\');'">签到确认</a>
- <a th:if="${m.state_code=='1'||m.state_code=='3'}" class="ml-5"
- th:onclick="'javascript:activityQRcode(\'活动二维码\',\'/government/activity/qrcode/'+${m.id}+'\',\'800\',\'500\');'">二维码</a>
- </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/government/activity/activity_list.js}"></script>
- <script>
- /*$(function () {
- $(".j-senior").on("click", function () {
- if (!$(this).hasClass("active")) {
- $(this).addClass("active");
- $(".j-senior-box").show();
- }
- else {
- $(this).removeClass("active");
- $(".j-senior-box").hide();
- }
- })
- })*/
- </script>
- </body>
- </html>
|