user_participate_form.html 4.6 KB

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