%%C9^C94^C946B145%%user_feedback.html.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 19:57:19
  2. compiled from admin/activity/user_feedback.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_feedback.html', 44, 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. <div class="block_10"></div>
  35. <div class="panel panel-default">
  36. <div class="panel-body">
  37. <div class="form-group">
  38. <div>
  39. <table class="table table-hover">
  40. <thead>
  41. <tr>
  42. <th>参与人</th>
  43. <th>UID</th>
  44. <th>反馈时间</th>
  45. <th>反馈图片</th>
  46. <th>反馈内容</th>
  47. <th>是否显示</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <?php if ($this->_tpl_vars['fdData']): ?>
  52. <?php $_from = $this->_tpl_vars['fdData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  53. foreach ($_from as $this->_tpl_vars['data']):
  54. ?>
  55. <tr>
  56. <td>
  57. <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']): ?>
  58. <img class="img-rounded" width="48" height="48" src="<?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']; ?>
  59. " />
  60. <?php else: ?>
  61. <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
  62. <?php endif; ?>
  63. <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']): ?><?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']; ?>
  64. <?php else: ?>游客<?php endif; ?></td>
  65. <td><?php echo $this->_tpl_vars['data']['uid']; ?>
  66. </td>
  67. <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'])); ?>
  68. </td>
  69. <td>
  70. <?php $_from = $this->_tpl_vars['data']['pic']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  71. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['value']):
  72. ?>
  73. <a href="<?php echo $this->_tpl_vars['value']; ?>
  74. " target="_blank"><img class="img-rounded" width="100" src="<?php echo $this->_tpl_vars['value']; ?>
  75. " /></a>
  76. <?php endforeach; endif; unset($_from); ?>
  77. </td>
  78. <td><?php echo $this->_tpl_vars['data']['content']; ?>
  79. </td>
  80. <th><input type="checkbox" class="status" name="status[<?php echo $this->_tpl_vars['data']['id']; ?>
  81. ]" value="<?php echo $this->_tpl_vars['data']['id']; ?>
  82. " <?php if ($this->_tpl_vars['data']['status'] == 1): ?>checked<?php endif; ?>/></th>
  83. </tr>
  84. <?php endforeach; endif; unset($_from); ?>
  85. <?php else: ?>
  86. <tr>
  87. <td colspan="3" align="center" class="text-muted">无数据</td>
  88. </tr>
  89. <?php endif; ?>
  90. </tbody>
  91. </table>
  92. <div style="float:right" ><input type="checkbox" id="status" value="2" />全选&nbsp;&nbsp;&nbsp;&nbsp;
  93. <a id="status_submit" href="javascript:;" class="button button-default button-rounded">更新显示</a>
  94. </div>
  95. <br /><br /><br />
  96. <div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
  97. </div><p style="float:right" >反馈总数:<?php echo $this->_tpl_vars['total_num']; ?>
  98. </p>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  105. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
  106. $this->_tpl_vars = $_smarty_tpl_vars;
  107. unset($_smarty_tpl_vars);
  108. ?>
  109. <div style="clear:both;"></div>
  110. </div>
  111. <script>
  112. KISSY.use('node, io, event', function (S, Node, IO, Event) {
  113. var $ = S.all;
  114. });
  115. function checkAll()
  116. {
  117. $("#status").click(function(){
  118. if ($(this).prop('checked')) {
  119. $(".status").prop('checked',true);
  120. } else {
  121. $(".status").prop('checked',false);
  122. }
  123. })
  124. }
  125. function submit()
  126. {
  127. $("#status_submit").click(function()
  128. {
  129. var yes = [];
  130. var no = [];
  131. $(".status").each(function(){
  132. if ($(this).prop('checked')) {
  133. yes.push($(this).val());
  134. } else {
  135. no.push($(this).val());
  136. }
  137. });
  138. var state = true;
  139. if (state) {
  140. var url = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  141. /?c=Admin_Activity_FeedBack&a=Status';
  142. $.post(url, {yes:yes.join(','),no:no.join(',')}, function(res) {
  143. alert('更新成功');
  144. });
  145. } else {
  146. alert('请选择一个选项');
  147. }
  148. })
  149. }
  150. checkAll();
  151. submit();
  152. </script>
  153. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  154. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  155. $this->_tpl_vars = $_smarty_tpl_vars;
  156. unset($_smarty_tpl_vars);
  157. ?>