%%A1^A1B^A1B92DB5%%user_participate_log.html.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php /* Smarty version 2.6.17, created on 2018-05-28 12:14:07
  2. compiled from admin/activity/user_participate_log.html */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date', 'admin/activity/user_participate_log.html', 83, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  11. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
  12. $this->_tpl_vars = $_smarty_tpl_vars;
  13. unset($_smarty_tpl_vars);
  14. ?>
  15. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  16. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
  17. $this->_tpl_vars = $_smarty_tpl_vars;
  18. unset($_smarty_tpl_vars);
  19. ?>
  20. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  21. $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
  22. $this->_tpl_vars = $_smarty_tpl_vars;
  23. unset($_smarty_tpl_vars);
  24. ?>
  25. <div id="activity_container">
  26. <div class="activity_center">
  27. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  28. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
  29. $this->_tpl_vars = $_smarty_tpl_vars;
  30. unset($_smarty_tpl_vars);
  31. ?>
  32. <input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
  33. ">
  34. 查看:
  35. <?php if ($this->_tpl_vars['action'] == 'all'): ?>
  36. <span class="text-muted">全部</span> &nbsp;
  37. <?php else: ?>
  38. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  39. /?c=Admin_Activity_UserParticipateLog&a=PageList&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  40. &action=all">全部</a> &nbsp;
  41. <?php endif; ?>
  42. <?php if ($this->_tpl_vars['action'] == 'member'): ?>
  43. <span class="text-muted">用户</span> &nbsp;
  44. <?php else: ?>
  45. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  46. /?c=Admin_Activity_UserParticipateLog&a=PageList&groupByUid=true&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  47. &action=member">用户</a> &nbsp;
  48. <?php endif; ?>
  49. <?php if ($this->_tpl_vars['eventData']['forms']): ?>
  50. <?php if ($this->_tpl_vars['action'] == 'form'): ?>
  51. <span class="text-muted">表单</span> &nbsp;
  52. <?php else: ?>
  53. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  54. /?c=Admin_Activity_UserParticipateLog&a=PageEventFormData&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  55. &action=form">表单</a> &nbsp;
  56. <?php endif; ?>
  57. <?php endif; ?>
  58. <?php if ($this->_tpl_vars['isPrizes']): ?>
  59. <?php if ($this->_tpl_vars['action'] == 'win'): ?>
  60. <span class="text-muted">中奖</span> &nbsp;
  61. <?php else: ?>
  62. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  63. /?c=Admin_Activity_UserParticipateLog&a=PageLotteryDataList&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  64. &action=win">中奖</a> &nbsp;
  65. <?php endif; ?>
  66. <?php endif; ?>
  67. <?php if ($this->_tpl_vars['eventData']['type'] == 4): ?>
  68. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  69. /?c=Admin_Activity_UserHelp&a=PageList&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  70. ">助力排行</a> &nbsp;
  71. <?php endif; ?>
  72. <?php if ($this->_tpl_vars['download_url']): ?>
  73. <a href="<?php echo $this->_tpl_vars['download_url']; ?>
  74. " target="_blank" class="" style="padding:0 10px;margin-left:10px;"><i class="fa fa-download"></i> 导出数据</a>
  75. <?php endif; ?>
  76. <?php if ($this->_tpl_vars['eventData']['type'] == 11): ?>
  77. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  78. /?c=Admin_Activity_UserParticipateLog&a=ShowResultSet&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  79. " target="_blank" class="" style="width:; float:right;padding-right: 10px" ><i class="fa fa-download"></i> 问卷报表 </a>
  80. <?php endif; ?>
  81. <div class="block_10"></div>
  82. <div class="panel panel-default">
  83. <div class="panel-body">
  84. <div class="form-group">
  85. <div>
  86. <table class="table table-hover">
  87. <thead>
  88. <tr>
  89. <th>参与人</th>
  90. <th>UID</th>
  91. <th>时间</th>
  92. <th>行为</th>
  93. <?php if ($this->_tpl_vars['audit']): ?>
  94. <th>审核状态</th>
  95. <?php endif; ?>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. <?php if ($this->_tpl_vars['logData']): ?>
  100. <?php $_from = $this->_tpl_vars['logData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  101. foreach ($_from as $this->_tpl_vars['data']):
  102. ?>
  103. <tr>
  104. <td>
  105. <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']): ?>
  106. <img class="img-rounded" width="48" height="48" src="<?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']; ?>
  107. " />
  108. <?php else: ?>
  109. <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
  110. <?php endif; ?>
  111. <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']): ?><?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']; ?>
  112. <?php else: ?>游客<?php endif; ?></td>
  113. <td><?php echo $this->_tpl_vars['data']['uid']; ?>
  114. </td>
  115. <td><?php echo ((is_array($_tmp="Y-m-d H:i:s")) ? $this->_run_mod_handler('date', true, $_tmp, $this->_tpl_vars['data']['create_time']) : date($_tmp, $this->_tpl_vars['data']['create_time'])); ?>
  116. </td>
  117. <td>
  118. <?php $_from = $this->_tpl_vars['data']['other']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  119. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['other']):
  120. ?>
  121. <?php echo $this->_tpl_vars['index']; ?>
  122. <?php echo $this->_tpl_vars['other']; ?>
  123. &nbsp;
  124. <?php endforeach; endif; unset($_from); ?>
  125. </td>
  126. <?php if ($this->_tpl_vars['audit']): ?>
  127. <th><input type="checkbox" class="audit" name="audit[<?php echo $this->_tpl_vars['data']['id']; ?>
  128. ]" value="<?php echo $this->_tpl_vars['data']['id']; ?>
  129. " <?php if ($this->_tpl_vars['data']['audit'] == 2): ?>checked<?php endif; ?>/></th>
  130. <?php endif; ?>
  131. </tr>
  132. <?php endforeach; endif; unset($_from); ?>
  133. <?php else: ?>
  134. <tr>
  135. <td colspan="3" align="center" class="text-muted">无数据</td>
  136. </tr>
  137. <?php endif; ?>
  138. </tbody>
  139. </table>
  140. <?php if ($this->_tpl_vars['audit']): ?>
  141. <div style="float:right" ><input type="checkbox" id="audit" value="2" />全选&nbsp;&nbsp;&nbsp;&nbsp;
  142. <a id="audit_submit" href="javascript:;" class="button button-default button-rounded">更新状态</a>
  143. </div>
  144. <br /><br /><br />
  145. <?php endif; ?>
  146. <div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
  147. </div><p style="float:right" >参与人数:<?php echo $this->_tpl_vars['total_user_num']; ?>
  148. </p>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  155. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
  156. $this->_tpl_vars = $_smarty_tpl_vars;
  157. unset($_smarty_tpl_vars);
  158. ?>
  159. <div style="clear:both;"></div>
  160. </div>
  161. <script>
  162. KISSY.use('node, io, event', function (S, Node, IO, Event) {
  163. var $ = S.all;
  164. });
  165. function checkAll()
  166. {
  167. $("#audit").click(function(){
  168. if ($(this).prop('checked')) {
  169. $(".audit").prop('checked',true);
  170. } else {
  171. $(".audit").prop('checked',false);
  172. }
  173. })
  174. }
  175. function submit()
  176. {
  177. $("#audit_submit").click(function()
  178. {
  179. var yes = [];
  180. var no = [];
  181. $(".audit").each(function(){
  182. if ($(this).prop('checked')) {
  183. yes.push($(this).val());
  184. } else {
  185. no.push($(this).val());
  186. }
  187. });
  188. var state = true;
  189. if (state) {
  190. var url = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  191. /?c=Admin_Activity_UserParticipateLog&a=Audit';
  192. $.post(url, {yes:yes.join(','),no:no.join(',')}, function(res) {
  193. alert('更新成功');
  194. });
  195. } else {
  196. alert('请选择一个选项');
  197. }
  198. })
  199. }
  200. checkAll();
  201. submit();
  202. </script>
  203. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  204. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  205. $this->_tpl_vars = $_smarty_tpl_vars;
  206. unset($_smarty_tpl_vars);
  207. ?>