user_feedback.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
  9. <div class="block_10"></div>
  10. <div class="panel panel-default">
  11. <div class="panel-body">
  12. <div class="form-group">
  13. <div>
  14. <table class="table table-hover">
  15. <thead>
  16. <tr>
  17. <th>参与人</th>
  18. <th>UID</th>
  19. <th>反馈时间</th>
  20. <th>反馈图片</th>
  21. <th>反馈内容</th>
  22. <th>是否显示</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <{if $fdData}>
  27. <{foreach from=$fdData item=data}>
  28. <tr>
  29. <td>
  30. <{if $userData[$data.uid].headimgurl}>
  31. <img class="img-rounded" width="48" height="48" src="<{$userData[$data.uid].headimgurl}>" />
  32. <{else}>
  33. <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
  34. <{/if}>
  35. <{if $userData[$data.uid].nickname}><{$userData[$data.uid].nickname}><{else}>游客<{/if}></td>
  36. <td><{$data.uid}></td>
  37. <td><{"Y-m-d H:i:s"|date:$data.create_time}></td>
  38. <td>
  39. <{foreach from=$data.pic key=index item=value}>
  40. <a href="<{$value}>" target="_blank"><img class="img-rounded" width="100" src="<{$value}>" /></a>
  41. <{/foreach}>
  42. </td>
  43. <td><{$data.content}></td>
  44. <th><input type="checkbox" class="status" name="status[<{$data.id}>]" value="<{$data.id}>" <{if $data.status == 1}>checked<{/if}>/></th>
  45. </tr>
  46. <{/foreach}>
  47. <{else}>
  48. <tr>
  49. <td colspan="3" align="center" class="text-muted">无数据</td>
  50. </tr>
  51. <{/if}>
  52. </tbody>
  53. </table>
  54. <div style="float:right" ><input type="checkbox" id="status" value="2" />全选&nbsp;&nbsp;&nbsp;&nbsp;
  55. <a id="status_submit" href="javascript:;" class="button button-default button-rounded">更新显示</a>
  56. </div>
  57. <br /><br /><br />
  58. <div class="page"><{$page_html}></div><p style="float:right" >反馈总数:<{$total_num}></p>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <{include file="./admin/activity/common_right.html"}>
  65. <div style="clear:both;"></div>
  66. </div>
  67. <script>
  68. KISSY.use('node, io, event', function (S, Node, IO, Event) {
  69. var $ = S.all;
  70. });
  71. function checkAll()
  72. {
  73. $("#status").click(function(){
  74. if ($(this).prop('checked')) {
  75. $(".status").prop('checked',true);
  76. } else {
  77. $(".status").prop('checked',false);
  78. }
  79. })
  80. }
  81. function submit()
  82. {
  83. $("#status_submit").click(function()
  84. {
  85. var yes = [];
  86. var no = [];
  87. $(".status").each(function(){
  88. if ($(this).prop('checked')) {
  89. yes.push($(this).val());
  90. } else {
  91. no.push($(this).val());
  92. }
  93. });
  94. var state = true;
  95. if (state) {
  96. var url = '<{$web_cfg.domain}>/?c=Admin_Activity_FeedBack&a=Status';
  97. $.post(url, {yes:yes.join(','),no:no.join(',')}, function(res) {
  98. alert('更新成功');
  99. });
  100. } else {
  101. alert('请选择一个选项');
  102. }
  103. })
  104. }
  105. checkAll();
  106. submit();
  107. </script>
  108. <{include file="./admin/bottom.html"}>