| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <include file="public@header"/>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="javascript:;">报名列表</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="post" action="{:url('AdminActivityJoin/index')}">
- 关键字:
- <input type="text" class="form-control" name="keyword" style="width: 200px;"
- value="{$keyword|default=''}" placeholder="请输入关键字...">
- 活动id:
- <input type="text" class="form-control" name="activity_id" style="width: 200px;"
- value="{$activity_id|default=''}" placeholder="请输入活动id...">
- 状态:
- <select name="status" class="form-control">
- <option value="">全部</option>
- <option value="0" <if condition="$status === '0'">selected</if> >未签到</option>
- <option value="1" <if condition="$status == 1">selected</if> >已签到</option>
- </select>
- <input type="submit" class="btn btn-primary" value="搜索"/>
- <a class="btn btn-danger" href="{:url('AdminActivityJoin/index')}">清空</a>
- </form>
- <form class="js-ajax-form" action="" method="post">
- <div class="table-actions">
- <button class="btn btn-primary btn-sm export" data-subcheck="true">导出
- </button>
- </div>
- <table class="table table-hover table-bordered table-list">
- <thead>
- <tr>
- <th width="15">
- <label>
- <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
- </label>
- </th>
- <th width="50">ID</th>
- <th width="50">活动id</th>
- <th width="200">活动标题</th>
- <th width="50">用户id</th>
- <th width="100">用户姓名</th>
- <th width="200">用户电话</th>
- <th width="50">状态</th>
- <th width="200">报名时间</th>
- </tr>
- </thead>
- <foreach name="activity" item="vo">
- <tr>
- <td>
- <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids"
- value="{$vo.id}" title="ID:{$vo.id}">
- </td>
- <td><b>{$vo.id}</b></td>
- <td>{$vo.activity_id}</td>
- <td>{$vo.title}</td>
- <td>{$vo.user_id}</td>
- <td>{$vo.user_name}</td>
- <td>{$vo.mobile}</td>
- <td>{$vo.status == 0 ? '未签到' : '已签到'}</td>
- <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
- </tr>
- </foreach>
- </table>
- <ul class="pagination">{$page|default=''}</ul>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- function reloadPage(win) {
- win.location.reload();
- }
- $('.export').click(function(){
- var arr = [];
- $('input[name="ids"]:checked').each(function(i){
- arr[i] = $(this).val();
- });
- window.open("{:url('export')}?keyword={$keyword}&activity_id={$activity_id}&status={$status}&ids=" + arr.splice(','),"_blank");
- return false;
- })
- </script>
- </body>
- </html>
|