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

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