user_participate_log.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <{include file="./admin/header.html"}>
  2. <{include file="./admin/left.html"}>
  3. <{include file="./admin/nav.html"}>
  4. <{include file="get_kindeditor.html"}>
  5. <div id="activity_container">
  6. <div class="activity_center">
  7. <{include file="./admin/activity/common_nav.html"}>
  8. <input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
  9. 查看:
  10. <{if $action == 'all'}>
  11. <span class="text-muted">全部</span> &nbsp;
  12. <{else}>
  13. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageList&events_id=<{$eventData.id}>&action=all">全部</a> &nbsp;
  14. <{/if}>
  15. <{if $action == 'member'}>
  16. <span class="text-muted">用户</span> &nbsp;
  17. <{else}>
  18. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageList&groupByUid=true&events_id=<{$eventData.id}>&action=member">用户</a> &nbsp;
  19. <{/if}>
  20. <{if $eventData.forms}>
  21. <{if $action == 'form'}>
  22. <span class="text-muted">表单</span> &nbsp;
  23. <{else}>
  24. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageEventFormData&events_id=<{$eventData.id}>&action=form">表单</a> &nbsp;
  25. <{/if}>
  26. <{/if}>
  27. <{if $isPrizes}>
  28. <{if $action == 'win'}>
  29. <span class="text-muted">中奖</span> &nbsp;
  30. <{else}>
  31. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageLotteryDataList&events_id=<{$eventData.id}>&action=win">中奖</a> &nbsp;
  32. <{/if}>
  33. <{/if}>
  34. <{if $eventData.type == 4}>
  35. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserHelp&a=PageList&events_id=<{$eventData.id}>">助力排行</a> &nbsp;
  36. <{/if}>
  37. <{if $download_url}>
  38. <a href="<{$download_url}>" target="_blank" class="" style="padding:0 10px;margin-left:10px;"><i class="fa fa-download"></i> 导出数据</a>
  39. <{/if}>
  40. <{if $eventData.type==11}>
  41. <a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=ShowResultSet&events_id=<{$eventData.id}>" target="_blank" class="" style="width:; float:right;padding-right: 10px" ><i class="fa fa-download"></i> 问卷报表 </a>
  42. <{/if}>
  43. <div class="block_10"></div>
  44. <div class="panel panel-default">
  45. <div class="panel-body">
  46. <div class="form-group">
  47. <div>
  48. <table class="table table-hover">
  49. <thead>
  50. <tr>
  51. <th>参与人</th>
  52. <th>UID</th>
  53. <th>时间</th>
  54. <th>行为</th>
  55. <{if $audit}>
  56. <th>审核状态</th>
  57. <{/if}>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <{if $logData}>
  62. <{foreach from=$logData item=data}>
  63. <tr>
  64. <td>
  65. <{if $userData[$data.uid].headimgurl}>
  66. <img class="img-rounded" width="48" height="48" src="<{$userData[$data.uid].headimgurl}>" />
  67. <{else}>
  68. <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
  69. <{/if}>
  70. <{if $userData[$data.uid].nickname}><{$userData[$data.uid].nickname}><{else}>游客<{/if}></td>
  71. <td><{$data.uid}></td>
  72. <td><{"Y-m-d H:i:s"|date:$data.create_time}></td>
  73. <td>
  74. <{foreach from=$data.other key=index item=other}>
  75. <{$index}><{$other}> &nbsp;
  76. <{/foreach}>
  77. </td>
  78. <{if $audit}>
  79. <th><input type="checkbox" class="audit" name="audit[<{$data.id}>]" value="<{$data.id}>" <{if $data.audit == 2}>checked<{/if}>/></th>
  80. <{/if}>
  81. </tr>
  82. <{/foreach}>
  83. <{else}>
  84. <tr>
  85. <td colspan="3" align="center" class="text-muted">无数据</td>
  86. </tr>
  87. <{/if}>
  88. </tbody>
  89. </table>
  90. <{if $audit}>
  91. <div style="float:right" ><input type="checkbox" id="audit" value="2" />全选&nbsp;&nbsp;&nbsp;&nbsp;
  92. <a id="audit_submit" href="javascript:;" class="button button-default button-rounded">更新状态</a>
  93. </div>
  94. <br /><br /><br />
  95. <{/if}>
  96. <div class="page"><{$page_html}></div><p style="float:right" >参与人数:<{$total_user_num}></p>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <{include file="./admin/activity/common_right.html"}>
  103. <div style="clear:both;"></div>
  104. </div>
  105. <script>
  106. KISSY.use('node, io, event', function (S, Node, IO, Event) {
  107. var $ = S.all;
  108. });
  109. function checkAll()
  110. {
  111. $("#audit").click(function(){
  112. if ($(this).prop('checked')) {
  113. $(".audit").prop('checked',true);
  114. } else {
  115. $(".audit").prop('checked',false);
  116. }
  117. })
  118. }
  119. function submit()
  120. {
  121. $("#audit_submit").click(function()
  122. {
  123. var yes = [];
  124. var no = [];
  125. $(".audit").each(function(){
  126. if ($(this).prop('checked')) {
  127. yes.push($(this).val());
  128. } else {
  129. no.push($(this).val());
  130. }
  131. });
  132. var state = true;
  133. if (state) {
  134. var url = '<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=Audit';
  135. $.post(url, {yes:yes.join(','),no:no.join(',')}, function(res) {
  136. alert('更新成功');
  137. });
  138. } else {
  139. alert('请选择一个选项');
  140. }
  141. })
  142. }
  143. checkAll();
  144. submit();
  145. </script>
  146. <{include file="./admin/bottom.html"}>