설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

answer.htm 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {include file="header.htm" /}
  2. <body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="min-width: auto;">
  6. {include file="bar.htm" /}
  7. <div class="flexigrid">
  8. <div class="mDiv">
  9. <div class="ftitle">
  10. <h3>答案列表</h3>
  11. <h5>(共{$pageObj->totalRows}条数据)</h5>
  12. </div>
  13. <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
  14. <form class="navbar-form form-inline" action="{:weapp_url('Ask/Ask/answer')}" method="get" onsubmit="layer_loading('正在处理');">
  15. {$searchform.hidden|default=''}
  16. <div class="sDiv">
  17. <div class="sDiv2">
  18. <input type="text" size="30" name="keywords" class="qsbox" placeholder="搜索相关数据...">
  19. <input type="submit" class="btn" value="搜索">
  20. <i class="fa fa-search"></i>
  21. </div>
  22. <div class="sDiv2">
  23. <input type="button" class="btn" value="重置" onClick="window.location.href='{:weapp_url('Ask/Ask/answer')}';">
  24. </div>
  25. </div>
  26. </form>
  27. </div>
  28. <div class="hDiv">
  29. <div class="hDivBox">
  30. <table cellspacing="0" cellpadding="0" style="width: 100%">
  31. <thead>
  32. <tr>
  33. <th class="sign w40" axis="col0">
  34. <div class="tc">选择</div>
  35. </th>
  36. <th abbr="article_show" axis="col5" class="w40">
  37. <div class="tc">ID</div>
  38. </th>
  39. <th abbr="ac_id" axis="col4">
  40. <div style="text-align: left; padding-left: 10px;" class="">答案</div>
  41. </th>
  42. <th abbr="article_time" axis="col6" class="w60">
  43. <div class="tc">已审核</div>
  44. </th>
  45. <th abbr="article_time" axis="col6" class="w150">
  46. <div class="tc">回答时间</div>
  47. </th>
  48. <th abbr="article_time" axis="col6" class="w80">
  49. <div class="tc">回答者</div>
  50. </th>
  51. <th abbr="article_time" axis="col6" class="w60">
  52. <div class="tc">操作</div>
  53. </th>
  54. </tr>
  55. </thead>
  56. </table>
  57. </div>
  58. </div>
  59. <div class="bDiv" style="height: auto;">
  60. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  61. <table style="width: 100%">
  62. <tbody>
  63. {empty name="list"}
  64. <tr>
  65. <td class="no-data" align="center" axis="col0" colspan="50">
  66. <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
  67. </td>
  68. </tr>
  69. {else/}
  70. {volist name="list" id="vo"}
  71. <tr>
  72. <td class="sign">
  73. <div class="w40 tc"><input type="checkbox" name="answer_ids[]" value="{$vo.answer_id}"></div>
  74. </td>
  75. <td class="sort">
  76. <div class="w40 tc">
  77. {$vo.answer_id}
  78. </div>
  79. </td>
  80. <td style="width: 100%">
  81. <div class="tl" style="padding-left: 10px;">
  82. <a href="{$vo.HomeUrl}" target="_blank">
  83. {$vo.content}
  84. </a>
  85. </div>
  86. </td>
  87. <td class="">
  88. <div class="w50 tc">
  89. {eq name="$vo['is_review']" value='1'}
  90. <span class="yes" onclick="changeTableVal('weapp_ask_answer','answer_id','{$vo.answer_id}','is_review',this);">
  91. <i class="fa fa-check-circle"></i>是
  92. </span>
  93. {else /}
  94. <span class="no" onclick="changeTableVal('weapp_ask_answer','answer_id','{$vo.answer_id}','is_review',this);">
  95. <i class="fa fa-ban"></i>否
  96. </span>
  97. {/eq}
  98. </div>
  99. </td>
  100. <td class="">
  101. <div class="w150 tc">
  102. {$vo.add_time|MyDate='Y-m-d H:i:s',###}
  103. </div>
  104. </td>
  105. <td class="">
  106. <div class="w80 tc">
  107. {$vo.nickname|default='———'}
  108. </div>
  109. </td>
  110. <td class="">
  111. <div class="w60 tc">
  112. <a href="javascript:void(0);" data-url="{:weapp_url('Ask/Ask/answer_del')}" onclick="FindDelData(this, '{$vo.answer_id}');" class="btn blue">
  113. <i class="fa fa-pencil-square-o"></i>删除
  114. </a>
  115. </div>
  116. </td>
  117. </tr>
  118. {/volist}
  119. {/empty}
  120. </tbody>
  121. </table>
  122. </div>
  123. <div class="iDiv" style="display: none;"></div>
  124. </div>
  125. <div class="tDiv">
  126. <div class="tDiv2">
  127. <div class="fbutton checkboxall">
  128. <input type="checkbox" onclick="javascript:$('input[name*=answer_ids]').prop('checked',this.checked);">
  129. </div>
  130. <div class="fbutton">
  131. <a onclick="BatchDelData(this, 'answer_ids');" data-url="{:weapp_url('Ask/Ask/answer_del')}">
  132. <div class="add" title="批量删除">
  133. <span><i class="fa fa-close"></i>批量删除</span>
  134. </div>
  135. </a>
  136. </div>
  137. <div class="fbutton">
  138. <a onclick="BatchReview(this, 'answer_ids');" data-url="{:weapp_url('Ask/Ask/answer_review')}">
  139. <div class="add" title="批量审核">
  140. 批量审核</span>
  141. </div>
  142. </a>
  143. </div>
  144. </div>
  145. <div style="clear:both"></div>
  146. </div>
  147. <!--分页位置-->
  148. {$pageStr}
  149. </div>
  150. </div>
  151. <script type="text/javascript">
  152. $(document).ready(function(){
  153. // 表格行点击选中切换
  154. $('#flexigrid > table>tbody >tr').click(function(){
  155. $(this).toggleClass('trSelected');
  156. });
  157. // 点击刷新数据
  158. $('.fa-refresh').click(function(){
  159. location.href = location.href;
  160. });
  161. });
  162. </script>
  163. {include file="footer.htm" /}