暫無描述
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.

ask_list.htm 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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/ask_list')}" 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/ask_list')}';">
  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_title" axis="col3" class="w150">
  43. <div class="tc">提问时间</div>
  44. </th>
  45. <th abbr="article_time" axis="col6" class="w50">
  46. <div class="tc">推荐</div>
  47. </th>
  48. <th abbr="article_time" axis="col6" class="w60">
  49. <div class="tc">已审核</div>
  50. </th>
  51. <th abbr="article_time" axis="col6" class="w100">
  52. <div class="tc">所属栏目</div>
  53. </th>
  54. <th axis="col1" class="w40">
  55. <div class="tc">回答数</div>
  56. </th>
  57. <th abbr="article_show" axis="col5" class="w80">
  58. <div class="tc">问题状态</div>
  59. </th>
  60. <th abbr="nickname" axis="col6" class="w80">
  61. <div class="tc">提问者</div>
  62. </th>
  63. <th abbr="article_show" axis="col5" class="w60">
  64. <div class="tc">操作</div>
  65. </th>
  66. </tr>
  67. </thead>
  68. </table>
  69. </div>
  70. </div>
  71. <div class="bDiv" style="height: auto;">
  72. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  73. <table style="width: 100%">
  74. <tbody>
  75. {empty name="list"}
  76. <tr>
  77. <td class="no-data" align="center" axis="col0" colspan="50">
  78. <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
  79. </td>
  80. </tr>
  81. {else/}
  82. {volist name="list" id="vo"}
  83. <tr>
  84. <td class="sign">
  85. <div class="w40 tc"><input type="checkbox" name="ask_ids[]" value="{$vo.ask_id}"></div>
  86. </td>
  87. <td class="sort">
  88. <div class="w40 tc">
  89. {$vo.ask_id}
  90. </div>
  91. </td>
  92. <td style="width: 100%">
  93. <div class="tl" style="padding-left: 10px;">
  94. <a href="{$vo.HomeUrl}" target="_blank">
  95. {$vo.ask_title}
  96. </a>
  97. </div>
  98. </td>
  99. <td class="">
  100. <div class="w150 tc">
  101. {$vo.add_time|MyDate='Y-m-d H:i:s',###}
  102. </div>
  103. </td>
  104. <td class="">
  105. <div class="w50 tc">
  106. {eq name="$vo['is_recom']" value='1'}
  107. <span class="yes" onclick="changeTableVal('weapp_ask','ask_id','{$vo.ask_id}','is_recom',this);">
  108. <i class="fa fa-check-circle"></i>是
  109. </span>
  110. {else /}
  111. <span class="no" onclick="changeTableVal('weapp_ask','ask_id','{$vo.ask_id}','is_recom',this);">
  112. <i class="fa fa-ban"></i>否
  113. </span>
  114. {/eq}
  115. </div>
  116. </td>
  117. <td class="">
  118. <div class="w60 tc">
  119. {eq name="$vo['is_review']" value='1'}
  120. <span class="yes" onclick="changeTableVal('weapp_ask','ask_id','{$vo.ask_id}','is_review',this);">
  121. <i class="fa fa-check-circle"></i>是
  122. </span>
  123. {else /}
  124. <span class="no" onclick="changeTableVal('weapp_ask','ask_id','{$vo.ask_id}','is_review',this);">
  125. <i class="fa fa-ban"></i>否
  126. </span>
  127. {/eq}
  128. </div>
  129. </td>
  130. <td class="">
  131. <div class="w100 tc">
  132. {$vo.type_name}
  133. <br/>
  134. {$vo.sub_type_name}
  135. </div>
  136. </td>
  137. <td>
  138. <div class="w40 tc">
  139. {$vo.replies}
  140. </div>
  141. </td>
  142. <td class="sort">
  143. <div class="w80 tc">
  144. {$vo.status}
  145. </div>
  146. </td>
  147. <td class="">
  148. <div class="w80 tc">
  149. {$vo.nickname|default='———'}
  150. </div>
  151. </td>
  152. <td class="sort">
  153. <div class="w60 tc">
  154. <a href="javascript:void(0);" data-url="{:weapp_url('Ask/Ask/ask_del')}" onclick="FindDelData(this, '{$vo.ask_id}');" class="btn blue">
  155. <i class="fa fa-pencil-square-o"></i>删除
  156. </a>
  157. </div>
  158. </td>
  159. </tr>
  160. {/volist}
  161. {/empty}
  162. </tbody>
  163. </table>
  164. </div>
  165. <div class="iDiv" style="display: none;"></div>
  166. </div>
  167. <div class="tDiv">
  168. <div class="tDiv2">
  169. <div class="fbutton checkboxall">
  170. <input type="checkbox" onclick="javascript:$('input[name*=ask_ids]').prop('checked',this.checked);">
  171. </div>
  172. <div class="fbutton">
  173. <a onclick="BatchDelData(this, 'ask_ids');" data-url="{:weapp_url('Ask/Ask/ask_del')}">
  174. <div class="add" title="批量删除">
  175. <span><i class="fa fa-close"></i>批量删除</span>
  176. </div>
  177. </a>
  178. </div>
  179. <div class="fbutton">
  180. <a onclick="BatchReview(this, 'ask_ids');" data-url="{:weapp_url('Ask/Ask/ask_review')}">
  181. <div class="add" title="批量审核">
  182. 批量审核</span>
  183. </div>
  184. </a>
  185. </div>
  186. <div class="fbutton">
  187. <a onclick="BatchRecom(this, 'ask_ids');" data-url="{:weapp_url('Ask/Ask/ask_recom')}">
  188. <div class="add" title="批量推荐">
  189. 批量推荐</span>
  190. </div>
  191. </a>
  192. </div>
  193. </div>
  194. <div style="clear:both"></div>
  195. </div>
  196. <!--分页位置-->
  197. {$pageStr}
  198. </div>
  199. </div>
  200. <script type="text/javascript">
  201. $(document).ready(function(){
  202. // 表格行点击选中切换
  203. $('#flexigrid > table>tbody >tr').click(function(){
  204. $(this).toggleClass('trSelected');
  205. });
  206. // 点击刷新数据
  207. $('.fa-refresh').click(function(){
  208. location.href = location.href;
  209. });
  210. });
  211. </script>
  212. {include file="footer.htm" /}