sensitive-word.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {template 'common/header'}
  2. <div class="sensitive-word" ng-controller="sensitiveWord" ng-cloak>
  3. <div class="search-box we7-margin-bottom">
  4. <form action="{php url('system/sensitiveword')}" method="post" class="search-form">
  5. <div class="input-group" >
  6. <input type="text" name="keyword" value="{$keyword}" class="form-control" placeholder="输入要搜索的敏感词汇">
  7. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  8. </div>
  9. </form>
  10. <a href="#" class="btn btn-primary we7-padding-horizontal" data-toggle="modal" data-target="#myModalSensitive">添加敏感词</a>
  11. </div>
  12. <div class="modal fade" id="myModalSensitive" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  13. <div class="modal-dialog">
  14. <div class="modal-content">
  15. <div class="modal-header">
  16. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  17. <h4 class="modal-title" id="myModalLabel">添加敏感词汇</h4>
  18. </div>
  19. <div class="modal-body we7-padding">
  20. <div class="we7-margin-bottom-sm">请输入要过滤的敏感词汇</div>
  21. <div class="panel panel-default">
  22. <div class="panel-body">
  23. <textarea name="" ng-model="word" id="" rows="5" class="form-control" style="border: none; outline:none; box-shadow: none; resize:none; "></textarea>
  24. </div>
  25. <div class="panel-footer text-right color-gray">
  26. 按"回车"添加多个
  27. </div>
  28. </div>
  29. </div>
  30. <div class="modal-footer">
  31. <button type="button" class="btn btn-primary" ng-click="saveWords()">确定</button>
  32. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="panel we7-panel panel-table">
  38. <div class="panel-heading">敏感词汇</div>
  39. <div class="panel-body">
  40. <div class="sensitive-list">
  41. <div class="item" ng-repeat="list in lists">
  42. {{list}}
  43. <a href="javascript:;" class="del" ng-click="del(list)"><span class="wi wi-error-sign"></span></a>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <script type="text/javascript">
  50. angular.module('systemApp').value('config', {
  51. 'lists': {php echo !empty($lists) ? json_encode($lists) : 'null'},
  52. 'links' : {
  53. 'add_word_link': "{php echo url('system/sensitiveword/add')}",
  54. 'del_word_link': "{php echo url('system/sensitiveword/delete')}"
  55. },
  56. });
  57. angular.bootstrap($('.sensitive-word'), ['systemApp']);
  58. </script>
  59. {template 'common/footer'}