keyword_save.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/chosen/chosen.css')}}" rel="stylesheet">
  4. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  5. @endsection
  6. @section('content')
  7. <body class="gray-bg">
  8. <div class="wrapper wrapper-content animated fadeInRight">
  9. <div class="row">
  10. <div class="col-sm-12">
  11. <div class="ibox float-e-margins">
  12. <div class="ibox-content">
  13. <form method="get" class="form-horizontal" id="form">
  14. {{--<div class="form-group">--}}
  15. {{--<label class="col-sm-2 control-label" for="sn">序号:</label>--}}
  16. {{--<div class="col-sm-8 ">--}}
  17. {{--<input type="text" class="form-control" id="sn" name="sn">--}}
  18. {{--</div>--}}
  19. {{--</div>--}}
  20. {{--<div class="form-group">--}}
  21. {{--<label class="col-sm-2 control-label" for="level">层级:</label>--}}
  22. {{--<div class="col-sm-8 ">--}}
  23. {{--<input type="text" class="form-control" id="level" name="level">--}}
  24. {{--</div>--}}
  25. {{--</div>--}}
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label" for="keyword">关键词:</label>
  28. <div class="col-sm-8 ">
  29. <input type="text" class="form-control" id="keyword" name="keyword">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label" for="chinese_keyword">中文关键词:</label>
  34. <div class="col-sm-8 ">
  35. <input type="text" class="form-control" id="chinese_keyword" name="chinese_keyword">
  36. </div>
  37. </div>
  38. {{--<div class="form-group">--}}
  39. {{--<label class="col-sm-2 control-label" for="page_title">页面标题:</label>--}}
  40. {{--<div class="col-sm-8 ">--}}
  41. {{--<input type="text" class="form-control" id="page_title" name="page_title">--}}
  42. {{--</div>--}}
  43. {{--</div>--}}
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label" for="page_url">着陆页:</label>
  46. <div class="col-sm-8 ">
  47. <input type="text" class="form-control" id="page_url" name="page_url">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label" for="search_num">搜索量:</label>
  52. <div class="col-sm-8 ">
  53. <input type="text" class="form-control" id="search_num" name="search_num">
  54. </div>
  55. </div>
  56. <div class="hr-line-dashed"></div>
  57. <div class="form-group">
  58. <div class="col-sm-4 col-sm-offset-2">
  59. <button class="btn btn-primary" type="button"
  60. onclick="units.save()">
  61. 保存
  62. </button>
  63. <button class="btn btn-white closeLayer" type="button">取消</button>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </body>
  73. @endsection
  74. @section('footer')
  75. <script>
  76. var units = {
  77. save: function () {
  78. var data = tips.getFormValues("#form");
  79. var ajaxConfig = {
  80. url: '/admin/rank/site/' + "{{$siteId}}" + '/keyword-save',
  81. type: 'post',
  82. data: data,
  83. success: function (result) {
  84. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  85. document.getElementById("form").reset();
  86. });
  87. }
  88. };
  89. tips.ajax(ajaxConfig);
  90. }
  91. };
  92. </script>
  93. @endsection