index.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="javascript:;">报名列表</a></li>
  7. </ul>
  8. <form class="well form-inline margin-top-20" method="post" action="{:url('AdminActivityJoin/index')}">
  9. 关键字:
  10. <input type="text" class="form-control" name="keyword" style="width: 200px;"
  11. value="{$keyword|default=''}" placeholder="请输入关键字...">
  12. 活动id:
  13. <input type="text" class="form-control" name="activity_id" style="width: 200px;"
  14. value="{$activity_id|default=''}" placeholder="请输入活动id...">
  15. 状态:
  16. <select name="status" class="form-control">
  17. <option value="">全部</option>
  18. <option value="0" <if condition="$status === '0'">selected</if> >未签到</option>
  19. <option value="1" <if condition="$status == 1">selected</if> >已签到</option>
  20. </select>
  21. <input type="submit" class="btn btn-primary" value="搜索"/>
  22. <a class="btn btn-danger" href="{:url('AdminActivityJoin/index')}">清空</a>
  23. </form>
  24. <form class="js-ajax-form" action="" method="post">
  25. <div class="table-actions">
  26. <button class="btn btn-primary btn-sm export" data-subcheck="true">导出
  27. </button>
  28. </div>
  29. <table class="table table-hover table-bordered table-list">
  30. <thead>
  31. <tr>
  32. <th width="15">
  33. <label>
  34. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  35. </label>
  36. </th>
  37. <th width="50">ID</th>
  38. <th width="50">活动id</th>
  39. <th width="200">活动标题</th>
  40. <th width="50">用户id</th>
  41. <th width="100">用户姓名</th>
  42. <th width="200">用户电话</th>
  43. <th width="50">状态</th>
  44. <th width="200">报名时间</th>
  45. </tr>
  46. </thead>
  47. <foreach name="activity" item="vo">
  48. <tr>
  49. <td>
  50. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids"
  51. value="{$vo.id}" title="ID:{$vo.id}">
  52. </td>
  53. <td><b>{$vo.id}</b></td>
  54. <td>{$vo.activity_id}</td>
  55. <td>{$vo.title}</td>
  56. <td>{$vo.user_id}</td>
  57. <td>{$vo.user_name}</td>
  58. <td>{$vo.mobile}</td>
  59. <td>{$vo.status == 0 ? '未签到' : '已签到'}</td>
  60. <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
  61. </tr>
  62. </foreach>
  63. </table>
  64. <ul class="pagination">{$page|default=''}</ul>
  65. </form>
  66. </div>
  67. <script src="__STATIC__/js/admin.js"></script>
  68. <script>
  69. function reloadPage(win) {
  70. win.location.reload();
  71. }
  72. $('.export').click(function(){
  73. var arr = [];
  74. $('input[name="ids"]:checked').each(function(i){
  75. arr[i] = $(this).val();
  76. });
  77. window.open("{:url('export')}?keyword={$keyword}&activity_id={$activity_id}&status={$status}&ids=" + arr.splice(','),"_blank");
  78. return false;
  79. })
  80. </script>
  81. </body>
  82. </html>