irrigation.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @extends('admin/public/layout')
  2. @section('title')防灌水设置@endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>
  6. 防灌水设置
  7. <small>全站防灌水策略设置</small>
  8. </h1>
  9. </section>
  10. <section class="content">
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <form role="form" name="addForm" method="POST" action="{{ route('admin.setting.irrigation') }}">
  14. {{ csrf_field() }}
  15. <div class="box box-default">
  16. <div class="box-header with-border">
  17. <h3 class="box-title">审核策略</h3>
  18. </div>
  19. <div class="box-body">
  20. <div class="form-group">
  21. <label for="website_url">开启问题审核</label>
  22. <span class="text-muted">(开启后,用户发起的问题需要在问题管理中审核才能正常显示)</span>
  23. <div class="radio">
  24. <label><input type="radio" name="verify_question" value="1" @if(Setting()->get('verify_question') == 1) checked @endif > 开启 </label>
  25. <label class="ml-20"><input type="radio" name="verify_question" value="0" @if(Setting()->get('verify_question') != 1) checked @endif > 关闭 </label>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label for="website_url">开启回答审核</label>
  30. <span class="text-muted">(开启后,用户的回答需要在回答管理中审核才能正常显示)</span>
  31. <div class="radio">
  32. <label><input type="radio" name="verify_answer" value="1" @if(Setting()->get('verify_answer') == 1) checked @endif > 开启 </label>
  33. <label class="ml-20"><input type="radio" name="verify_answer" value="0" @if(Setting()->get('verify_answer') != 1) checked @endif > 关闭 </label>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label for="website_url">开启文章审核</label>
  38. <span class="text-muted">(开启后,用户撰写的文章需要在文章管理中审核才能正常显示)</span>
  39. <div class="radio">
  40. <label><input type="radio" name="verify_article" value="1" @if(Setting()->get('verify_article') == 1) checked @endif > 开启 </label>
  41. <label class="ml-20"><input type="radio" name="verify_article" value="0" @if(Setting()->get('verify_article') != 1) checked @endif > 关闭 </label>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="website_url">开启课程审核</label>
  46. <span class="text-muted">(开启后,用户发布的课程要在课程管理中审核才能正常显示)</span>
  47. <div class="radio">
  48. <label><input type="radio" name="verify_course" value="1" @if(Setting()->get('verify_course') == 1) checked @endif > 开启 </label>
  49. <label class="ml-20"><input type="radio" name="verify_course" value="0" @if(Setting()->get('verify_course') != 1) checked @endif > 关闭 </label>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="website_url">开启视频审核</label>
  54. <span class="text-muted">(开启后,用户发布的视频要在视频管理中审核才能正常显示)</span>
  55. <div class="radio">
  56. <label><input type="radio" name="verify_video" value="1" @if(Setting()->get('verify_video') == 1) checked @endif > 开启 </label>
  57. <label class="ml-20"><input type="radio" name="verify_video" value="0" @if(Setting()->get('verify_video') != 1) checked @endif > 关闭 </label>
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label for="website_url">开启评论审核</label>
  62. <span class="text-muted">(开启后,用户的评论需要在评论管理中审核才能正常显示)</span>
  63. <div class="radio">
  64. <label><input type="radio" name="verify_comment" value="1" @if(Setting()->get('verify_comment') == 1) checked @endif > 开启 </label>
  65. <label class="ml-20"><input type="radio" name="verify_comment" value="0" @if(Setting()->get('verify_comment') != 1) checked @endif> 关闭 </label>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="box box-default">
  71. <div class="box-header with-border">
  72. <h3 class="box-title">验证码策略</h3>
  73. </div>
  74. <div class="box-body">
  75. <div class="form-group">
  76. <label for="website_url">启用验证码</label>
  77. <span class="text-muted">(验证码可以避免恶意注册及恶意灌水,请选择需要打开验证码的操作)</span>
  78. <div class="checkbox">
  79. <input type="checkbox" name="code_login" value="1" @if(Setting()->get('code_login') == 1) checked @endif /> 登录
  80. <label><input type="checkbox" name="code_register" value="1" @if(Setting()->get('code_register') == 1) checked @endif /> 注册</label>
  81. <label><input type="checkbox" name="code_create_question" value="1" @if(Setting()->get('code_create_question') == 1) checked @endif /> 发起提问</label>
  82. <label><input type="checkbox" name="code_create_answer" value="1" @if(Setting()->get('code_create_answer') == 1) checked @endif /> 回答问题</label>
  83. <label><input type="checkbox" name="code_create_article" value="1" @if(Setting()->get('code_create_article') == 1) checked @endif /> 发布文章</label>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="box box-default">
  89. <div class="box-header with-border">
  90. <h3 class="box-title">内容写入限制策略</h3>
  91. </div>
  92. <div class="box-body">
  93. <div class="form-group">
  94. <label for="website_url">1小时内最大提问数</label>
  95. <span class="text-muted">(设置为0则不做任何限制)</span>
  96. <input type="text" class="form-control" name="question_limit_num" placeholder="0为不限制" value="{{ old('question_limit_num',Setting()->get('question_limit_num' , 0)) }}" />
  97. </div>
  98. <div class="form-group">
  99. <label for="website_url">1小时内最大回答数</label>
  100. <span class="text-muted">(设置为0则不做任何限制)</span>
  101. <input type="text" class="form-control" name="answer_limit_num" placeholder="0为不限制" value="{{ old('answer_limit_num',Setting()->get('answer_limit_num' , 0)) }}" />
  102. </div>
  103. <div class="form-group">
  104. <label for="website_url">1小时内最大文章发表次数</label>
  105. <span class="text-muted">(设置为0则不做任何限制)</span>
  106. <input type="text" class="form-control" name="article_limit_num" placeholder="0为不限制" value="{{ old('article_limit_num',Setting()->get('article_limit_num' , 0)) }}" />
  107. </div>
  108. <hr />
  109. <div class="form-group">
  110. <label for="website_url">提问后编辑内容时效</label>
  111. <span class="text-muted">(默认单位是分钟,设置后用户只能在编辑时间有效期内进行修改,设置为0则不做任何限制)</span>
  112. <input type="text" class="form-control" name="edit_question_timeout" placeholder="0为不限制" value="{{ old('edit_question_timeout',Setting()->get('edit_question_timeout' , 0)) }}" />
  113. </div>
  114. <div class="form-group">
  115. <label for="website_url">发起文章后编辑内容时效</label>
  116. <span class="text-muted">(默认单位是分钟,设置后用户只能在编辑时间有效期内进行修改,设置为0则不做任何限制)</span>
  117. <input type="text" class="form-control" name="edit_article_timeout" placeholder="0为不限制" value="{{ old('edit_article_timeout',Setting()->get('edit_article_timeout' , 0)) }}" />
  118. </div>
  119. <div class="form-group">
  120. <label for="website_url">发布视频教程后编辑内容时效</label>
  121. <span class="text-muted">(默认单位是分钟,设置后用户只能在编辑时间有效期内进行修改,设置为0则不做任何限制)</span>
  122. <input type="text" class="form-control" name="edit_video_timeout" placeholder="0为不限制" value="{{ old('edit_video_timeout',Setting()->get('edit_video_timeout' , 0)) }}" />
  123. </div>
  124. <div class="form-group">
  125. <label for="website_url">撰写回答后编辑内容时效</label>
  126. <span class="text-muted">(默认单位是分钟,设置后用户只能在编辑时间有效期内进行修改,设置为0则不做任何限制)</span>
  127. <input type="text" class="form-control" name="edit_answer_timeout" placeholder="0为不限制" value="{{ old('edit_answer_timeout',Setting()->get('edit_answer_timeout' , 0)) }}" />
  128. </div>
  129. </div>
  130. </div>
  131. <div>
  132. <button type="submit" class="btn btn-primary" >保存</button>
  133. <button type="reset" class="btn btn-success">重置</button>
  134. </div>
  135. </form>
  136. </div>
  137. </div>
  138. </section>
  139. @endsection
  140. @section('script')
  141. <script type="text/javascript">
  142. set_active_menu('global',"{{ route('admin.setting.irrigation') }}");
  143. </script>
  144. @endsection