暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

conf.htm 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. {include file="public/layout" /}
  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="ask/bar" /}
  7. <form id="post_form" method="post">
  8. <div class="flexigrid">
  9. <div class="ncap-form-default">
  10. <dl class="row">
  11. <dt class="tit"> <label for="smtp_server">会员限制</label> </dt>
  12. <dd class="opt">
  13. [<a href="javascript:void(0);" data-href="{:U('Ask/level_set')}" onclick="openFullframe(this, '会员限制');">配置</a>]
  14. <p class=""></p>
  15. </dd>
  16. </dl>
  17. </div>
  18. <div class="ncap-form-default">
  19. <dl class="row">
  20. <dt class="tit"> <label>提问步骤</label> </dt>
  21. <dd class="opt">
  22. <textarea rows="5" cols="60" name="ask[ask_ques_steps]" style="height: 200px;">{$askConf.ask_ques_steps|default=''}</textarea>
  23. <p class="notic">展示于发布问题页右侧边</p>
  24. </dd>
  25. </dl>
  26. </div>
  27. <div class="hDiv" id="smtp">
  28. <div class="hDivBox">
  29. <table cellspacing="0" cellpadding="0" style="width: 100%">
  30. <thead>
  31. <tr>
  32. <th class="sign w10" axis="col0">
  33. <div class="tc"></div>
  34. </th>
  35. <th abbr="article_title" axis="col3" class="w10">
  36. <div id="anchor-sms" class="tc">QQ群推广</div>
  37. </th>
  38. <th abbr="ac_id" axis="col4">
  39. <div class=""></div>
  40. </th>
  41. </tr>
  42. </thead>
  43. </table>
  44. </div>
  45. </div>
  46. <div class="ncap-form-default">
  47. <dl class="row">
  48. <dt class="tit" style="padding-left: 10px;">
  49. <label>QQ群号码</label>
  50. </dt>
  51. <dd class="opt">
  52. <input type="text" name="ask[ask_qq]" value="{$askConf.ask_qq|default=''}" class="input-txt">
  53. </dd>
  54. </dl>
  55. <dl class="row">
  56. <dt class="tit" style="padding-left: 10px;">
  57. <label>一键加群链接</label>
  58. </dt>
  59. <dd class="opt">
  60. <input type="text" name="ask[ask_qq_link]" value="{$askConf.ask_qq_link|default=''}" class="input-txt">
  61. </dd>
  62. </dl>
  63. <dl class="row">
  64. <dt class="tit" style="padding-left: 10px;">
  65. <label>加群推广描述</label>
  66. </dt>
  67. <dd class="opt">
  68. <textarea rows="5" cols="60" name="ask[ask_intro]" style="height:60px;">{$askConf.ask_intro|default=''}</textarea>
  69. </dd>
  70. </dl>
  71. </div>
  72. <div class="hDiv">
  73. <div class="hDivBox">
  74. <table cellspacing="0" cellpadding="0" style="width: 100%">
  75. <thead>
  76. <tr>
  77. <th class="sign w10" axis="col0">
  78. <div class="tc"></div>
  79. </th>
  80. <th abbr="article_title" axis="col3" class="w10">
  81. <div class="tc">积分管理</div>
  82. </th>
  83. <th abbr="ac_id" axis="col4">
  84. <div class=""></div>
  85. </th>
  86. </tr>
  87. </thead>
  88. </table>
  89. </div>
  90. </div>
  91. <div class="ncap-form-default">
  92. <dl class="row">
  93. <dt class="tit">
  94. <label>问答送积分</label>
  95. </dt>
  96. <dd class="opt">
  97. <div class="onoff">
  98. <label for="score_ask_status1" class="cb-enable {if condition='isset($score.score_ask_status) AND $score.score_ask_status eq 1'}selected{/if}" onclick="changeStatus('control_ask_status',1);">开启</label>
  99. <label for="score_ask_status0" class="cb-disable {if condition='!isset($score.score_ask_status) OR empty($score.score_ask_status)'}selected{/if}" onclick="changeStatus('control_ask_status',0);">关闭</label>
  100. <input id="score_ask_status1" name="score[score_ask_status]" value="1" type="radio" {if condition="isset($score.score_ask_status) AND $score.score_ask_status eq 1" } checked="checked" {/if}>
  101. <input id="score_ask_status0" name="score[score_ask_status]" value="0" type="radio" {if condition="!isset($score.score_ask_status) OR empty($score.score_ask_status)" } checked="checked" {/if}>
  102. </div>
  103. </dd>
  104. </dl>
  105. <div id="control_ask_status" {empty name="$score.score_ask_status"}style="display:none;"{/empty}>
  106. <dl class="row">
  107. <dt class="tit">
  108. <label>提问加积分</label>
  109. </dt>
  110. <dd class="opt">
  111. <input type="text" name="score[score_ask_score]" value="{$score.score_ask_score|default=2}" class="w80">&nbsp;积分/次
  112. </dd>
  113. </dl>
  114. <dl class="row">
  115. <dt class="tit">
  116. <label>提问加积分次数</label>
  117. </dt>
  118. <dd class="opt">
  119. <input type="text" name="score[score_ask_count]" value="{$score.score_ask_count|default=2}" class="w80">&nbsp;次/天 (0为不限次数)
  120. </dd>
  121. </dl>
  122. <dl class="row">
  123. <dt class="tit">
  124. <label>回答加积分</label>
  125. </dt>
  126. <dd class="opt">
  127. <input type="text" name="score[score_reply_score]" value="{$score.score_reply_score|default=2}" class="w80">&nbsp;积分/次
  128. </dd>
  129. </dl>
  130. <dl class="row">
  131. <dt class="tit">
  132. <label>回答加积分次数</label>
  133. </dt>
  134. <dd class="opt">
  135. <input type="text" name="score[score_reply_count]" value="{$score.score_reply_count|default=2}" class="w80">&nbsp;次/天 (0为不限次数)
  136. </dd>
  137. </dl>
  138. </div>
  139. <div class="ncap-form-default">
  140. <dl class="row">
  141. <div class="bot">
  142. <a href="JavaScript:void(0);" onclick="check_submit();" class="ncap-btn-big ncap-btn-green"
  143. id="submitBtn">确认提交</a>
  144. </div>
  145. </dl>
  146. </div>
  147. </div>
  148. </form>
  149. </div>
  150. <script type="text/javascript">
  151. function check_submit(obj){
  152. layer_loading('正在处理');
  153. $.ajax({
  154. type : 'post',
  155. url : $(obj).attr('data-url'),
  156. data : $('#post_form').serialize(),
  157. dataType : 'json',
  158. success : function(res){
  159. layer.closeAll();
  160. if(res.code == 1){
  161. layer.msg(res.msg, {icon: 1, time:1000}, function(){
  162. window.location.reload();
  163. });
  164. }else{
  165. showErrorAlert(res.msg);
  166. }
  167. },
  168. error : function(e) {
  169. layer.closeAll();
  170. showErrorAlert(e.responseText);
  171. }
  172. })
  173. }
  174. function changeStatus(id,val) {
  175. if (1 == val) {
  176. $("#"+id).show();
  177. }else{
  178. $("#"+id).hide();
  179. }
  180. }
  181. </script>
  182. {include file="public/footer" /}