人人商城

sensitive-word.html 2.6KB

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