%%C3^C33^C3389195%%user_participate_form.html.php 7.9 KB

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