| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <!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>
- <style>
- .line {
- display: block;
- text-align: left;
- background-color: #fff;
- color: #333;
- border-bottom: 1px solid #0a6999;
- border-color: #fff;
- border-bottom: 1px solid #0a6999;
- margin-top: 10px;
- vertical-align: middle;
- padding: 4px 12px;
- height: 31px;
- line-height: 31px;
- font-size: 14px;
- font-weight: bold;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <div class="line">企业基本情况</div>
- <div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2" style="text-align: right"> 活动名称:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${detail.activity_title}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2" style="text-align: right"> 活动状态:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span th:if="${detail.activity_status ==1}">未开始</span>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2" style="text-align: right"> 活动时间:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${detail.activity_starttime}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2" style="text-align: right"> 活动地点:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${detail.activity_location}]]</span>
- </div>
- </div>
- </div>
- <div class="line">报名信息</div>
- <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 width="160">报名时间</th>
- <th>状态</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="m,iterStat:${registration.list}">
- <td><input type="checkbox" th:value="${m.id}" th:id="${iterStat.index+1}" name="id"></td>
- <td class="title" th:text="${m.name}" th:title="${m.name}"></td>
- <td th:text="${m.phone}"></td>
- <td th:text="${m.mail}"></td>
- <td th:text="${m.position}"></td>
- <td th:text="${#dates.format(m.registration_time,'yyyy-MM-dd HH:mm:ss')}"></td>
- <td th:text="${m.review_state}"></td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- <div class="row cl" style="text-align: center">
- <a class="btn btn-primary radius" onclick="quert()">取消报名</a>
- <a onclick="removeIframe();" class="btn btn-default radius">返回</a>
- </div>
- </article>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script th:inline="javascript">
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- function quert() {
- getSelectedItem();
- var ids = [];
- if(null != item_selected_arr){
- console.log("item_selected_arr: "+item_selected_arr[0].id);
- console.log("ids: "+ids);
- ids = getIdsFromItemArr(item_selected_arr);
- }
- var obj = $("input[name='id']:checked");
- if (obj.length == 0) {
- errorMessage("请选择取消人员");
- return false;
- }
- console.log("ids: "+ids);
- layer.confirm('确认要取消吗?', function (index) {
- $.ajax({
- url: pagePath + "/myActivity/abort",
- type: "post",
- data: {
- 'ids': ids
- },
- dataType: "json",
- success: function (result) {
- if (result.success) {
- smileMessage(result.message);
- window.parent.location.reload();
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- });
- }
- </script>
- </body>
- </html>
|