Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

sensitive_edit.htm 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {include file="header.htm" /}
  2. <body class="bodystyle" style=" padding:0; overflow: hidden;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. <form class="form-horizontal" id="editpostForm">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit" style="padding-left: 10px;">
  11. <label>过滤规则</label>
  12. </dt>
  13. <dd class="opt">
  14. <label>
  15. <input type="radio" name="sensitive[sensitive_switch]" value="1" {if condition="!empty($data.sensitive.sensitive_switch) && 1 == $data.sensitive.sensitive_switch"}checked="checked"{/if}>替换敏感词为 ***&nbsp;
  16. </label>
  17. <label>
  18. <input type="radio" name="sensitive[sensitive_switch]" value="2" {if condition="!empty($data.sensitive.sensitive_switch) && 2 == $data.sensitive.sensitive_switch"}checked="checked"{/if}>进入审核&nbsp;
  19. </label>
  20. <label>
  21. <input type="radio" name="sensitive[sensitive_switch]" value="3" {if condition="!empty($data.sensitive.sensitive_switch) && 3 == $data.sensitive.sensitive_switch"}checked="checked"{/if}>禁止发帖&nbsp;
  22. </label>
  23. <label>
  24. <input type="radio" name="sensitive[sensitive_switch]" value="4" {if condition="!empty($data.sensitive.sensitive_switch) && 4 == $data.sensitive.sensitive_switch"}checked="checked"{/if}>自动拉黑用户&nbsp;
  25. </label>
  26. </dd>
  27. </dl>
  28. <dl class="row">
  29. <dt class="tit" style="padding-left: 10px;">
  30. <label>敏感词</label>
  31. </dt>
  32. <dd class="opt">
  33. <textarea rows="5" cols="60" name="sensitive[sensitive_data]" id="seo_description" style="height: 60px;">{$data.sensitive.sensitive_data|default=''}</textarea>
  34. <p class="notic">多个过滤词汇中间用“,”隔开,提问、回答内容包括这些内容时将被过滤</p>
  35. </dd>
  36. </dl>
  37. <div class="bot">
  38. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green">确认提交</a>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. <script type="text/javascript">
  44. $(function(){
  45. });
  46. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  47. // 判断输入框是否为空
  48. function checkForm() {
  49. layer_loading('正在处理');
  50. $.ajax({
  51. url : "{:weapp_url('Ask/Ask/sensitive_edit', ['_ajax'=>1])}",
  52. data: $('#editpostForm').serialize(),
  53. type: 'POST',
  54. success:function(res) {
  55. layer.closeAll();
  56. if (1 == res.code) {
  57. parent.layer.msg(res.msg, {shade: 0.3, time: 1000}, function(){
  58. parent.window.location.reload();
  59. parent.layer.close(parentObj);
  60. });
  61. } else {
  62. showErrorMsg(res.msg);
  63. }
  64. },
  65. error: function(e) {
  66. layer.closeAll();
  67. showErrorMsg(ey_unknown_error);
  68. }
  69. });
  70. }
  71. </script>
  72. {include file="footer.htm" /}