Sin descripción
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.

conf.htm 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit" style="padding-left: 10px;">
  11. <label>URL模式</label>
  12. </dt>
  13. <dd class="opt">
  14. <label>
  15. <input type="radio" name="seo_pseudo" value="1" {if condition="empty($askConfData.data.seo_pseudo) || 1 == $askConfData.data.seo_pseudo"}checked="checked"{/if}>动态URL&nbsp;
  16. </label>
  17. <label>
  18. <input type="radio" name="seo_pseudo" value="3" {if condition="3 == $askConfData.data.seo_pseudo"}checked="checked"{/if}>伪静态化&nbsp;
  19. </label>
  20. </dd>
  21. </dl>
  22. <dl class="row">
  23. <dt class="tit" style="padding-left: 10px;">
  24. <label>SEO配置</label>
  25. </dt>
  26. <dd class="opt">
  27. <a href="javascript:void(0);" onclick="frameEdit(this);" data-url="{:weapp_url('Ask/Ask/seo_edit')}" data-title="主页SEO - 配置" class="ncap-btn ncap-btn-green">主页SEO</a>
  28. </dd>
  29. </dl>
  30. <dl class="row">
  31. <dt class="tit" style="padding-left: 10px;">
  32. <label>频率限制</label>
  33. </dt>
  34. <dd class="opt">
  35. <a href="javascript:void(0);" onclick="frameEdit(this);" data-url="{:weapp_url('Ask/Ask/rate_edit')}" data-title="频率限制 - 设置频率" class="ncap-btn ncap-btn-green">设置频率</a>
  36. </dd>
  37. </dl>
  38. <dl class="row">
  39. <dt class="tit" style="padding-left: 10px;">
  40. <label>悬赏模式</label>
  41. </dt>
  42. <dd class="opt">
  43. <a href="javascript:void(0);" onclick="frameEdit(this)" data-url="{:weapp_url('Ask/Ask/reward_edit')}" data-title="悬赏模式 - 设置" class="ncap-btn ncap-btn-green">设置</a>
  44. </dd>
  45. </dl>
  46. <dl class="row">
  47. <dt class="tit" style="padding-left: 10px;">
  48. <label>敏感词过滤</label>
  49. </dt>
  50. <dd class="opt">
  51. <a href="javascript:void(0);" onclick="frameEdit(this)" data-url="{:weapp_url('Ask/Ask/sensitive_edit')}" data-title="悬赏模式 - 设置" class="ncap-btn ncap-btn-green">设置</a>
  52. </dd>
  53. </dl>
  54. </div>
  55. <div class="hDiv">
  56. <div class="hDivBox">
  57. <table cellspacing="0" cellpadding="0" style="width: 100%">
  58. <thead>
  59. <tr>
  60. <th abbr="article_show" axis="col5" class="w10">
  61. <div class="tc"></div>
  62. </th>
  63. <th abbr="ac_id" axis="col4">
  64. <div class="">会员级别名称</div>
  65. </th>
  66. <th abbr="article_time" axis="col6" class="w100">
  67. <div class="tc">每天提问次数</div>
  68. </th>
  69. <th abbr="article_time" axis="col6" class="w100">
  70. <div class="tc">每天回答次数</div>
  71. </th>
  72. <th abbr="article_time" axis="col6" class="w100">
  73. <div class="tc">允许发布</div>
  74. </th>
  75. <th abbr="article_time" axis="col6" class="w100">
  76. <div class="tc">需要审核</div>
  77. </th>
  78. </tr>
  79. </thead>
  80. </table>
  81. </div>
  82. </div>
  83. <div class="bDiv" style="height: auto;">
  84. <form id="PostForm">
  85. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  86. <table style="width: 100%">
  87. <tbody>
  88. {empty name="list"}
  89. <tr>
  90. <td class="no-data" align="center" axis="col0" colspan="50">
  91. <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
  92. </td>
  93. </tr>
  94. {else/}
  95. {volist name="list" id="vo"}
  96. <tr>
  97. <td class="sort">
  98. <div class="w10 tc">
  99. </div>
  100. </td>
  101. <td style="width: 100%">
  102. <div style="">
  103. {$vo.level_name}
  104. </div>
  105. </td>
  106. <td class="">
  107. <div class="w100 tc">
  108. <input class="tc w70" type="text" onchange="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_count',this);" name="ask_count" value="{$vo.ask_count}" autocomplete="off" />
  109. </div>
  110. </td>
  111. <td class="">
  112. <div class="w100 tc">
  113. <input class="tc w70" type="text" onchange="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','answer_count',this);" name="answer_count" value="{$vo.answer_count}" autocomplete="off" />
  114. </div>
  115. </td>
  116. <td class="">
  117. <div class="w100 tc">
  118. {eq name="$vo['ask_is_release']" value='1'}
  119. <span class="yes" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_release',this);">
  120. <i class="fa fa-check-circle"></i>是
  121. </span>
  122. {else /}
  123. <span class="no" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_release',this);">
  124. <i class="fa fa-ban"></i>否
  125. </span>
  126. {/eq}
  127. </div>
  128. </td>
  129. <td class="">
  130. <div class="w100 tc">
  131. {eq name="$vo['ask_is_review']" value='1'}
  132. <span class="yes" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_review',this);">
  133. <i class="fa fa-check-circle"></i>是
  134. </span>
  135. {else /}
  136. <span class="no" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_review',this);">
  137. <i class="fa fa-ban"></i>否
  138. </span>
  139. {/eq}
  140. </div>
  141. </td>
  142. </tr>
  143. {/volist}
  144. {/empty}
  145. </tbody>
  146. </table>
  147. </div>
  148. </form>
  149. <div class="iDiv" style="display: none;"></div>
  150. </div>
  151. <div class="tDiv">
  152. <div class="tDiv2"><div class="fbutton"></div></div>
  153. <div style="clear:both"></div>
  154. </div>
  155. <!--分页位置-->
  156. </div>
  157. </div>
  158. <script type="text/javascript">
  159. $(document).ready(function(){
  160. // 表格行点击选中切换
  161. $('#flexigrid > table>tbody >tr').click(function(){
  162. $(this).toggleClass('trSelected');
  163. });
  164. // 点击刷新数据
  165. $('.fa-refresh').click(function(){
  166. location.href = location.href;
  167. });
  168. });
  169. $(function(){
  170. $('input[name=seo_pseudo]').click(function(){
  171. layer_loading('正在处理');
  172. var value = $(this).val();
  173. $.ajax({
  174. type: "POST",
  175. url: "{:weapp_url('Ask/Ask/setData')}",
  176. data: {name:'seo_pseudo',value:value,_ajax:1},
  177. dataType: "JSON",
  178. success: function(res){
  179. layer.closeAll();
  180. if(parseInt(res.code) == 1){
  181. layer.msg(res.msg, {icon: 1, time:500}, function(){
  182. window.location.reload();
  183. });
  184. }else{
  185. layer.alert(res.msg, {icon: 5});
  186. }
  187. },
  188. error: function(e){
  189. layer.closeAll();
  190. layer.alert('未知错误,无法继续~', {icon: 5});
  191. }
  192. });
  193. });
  194. $('input[name=reward_switch]').click(function () {
  195. var val= $(this).val();
  196. if (1 == val) {
  197. $('#reward_type_dl').show();
  198. }else {
  199. $('#reward_type_dl').hide();
  200. }
  201. });
  202. });
  203. function frameEdit(obj) {
  204. var url = $(obj).data('url');
  205. var title = $(obj).data('title');
  206. //iframe窗
  207. layer.open({
  208. type: 2,
  209. title: title,
  210. fixed: true,
  211. shadeClose: false,
  212. shade: 0.3,
  213. area: ['700px', '400px'],
  214. content: url
  215. });
  216. }
  217. </script>
  218. {include file="footer.htm" /}