user_participate_log.html 4.8 KB

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