examine.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <include file="public@header"/>
  2. <style type="text/css">
  3. .pic-list li {
  4. margin-bottom: 5px;
  5. }
  6. </style>
  7. </head>
  8. <body>
  9. <div class="wrap js-check-wrap">
  10. <form action="{:url('AdminArticle/addPost')}" method="post" id="form"
  11. class="form-horizontal js-ajax-form margin-top-20">
  12. <input type="hidden" name="ids" value="{$ids}">
  13. <div class="row">
  14. <div class="col-md-12">
  15. <table class="table table-bordered">
  16. <tr>
  17. <th>状态<span class="form-required">*</span></th>
  18. <td>
  19. <label class="radio-inline">
  20. <input type="radio" name="status" value="2" checked> 审核通过
  21. </label>
  22. <label class="radio-inline">
  23. <input type="radio" name="status" value="3"> 审核不通过
  24. </label>
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>备注</th>
  29. <td>
  30. <textarea class="form-control" name="comment" style="height: 50px;"
  31. placeholder="请填写摘要"></textarea>
  32. </td>
  33. </tr>
  34. </table>
  35. <div class="form-group">
  36. <div class="col-sm-offset-2 col-sm-10">
  37. <button type="submit" class="btn btn-primary js-submit">提交</button>
  38. <button class="btn btn-default">关闭</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  46. <script type="text/javascript">
  47. $(function () {
  48. Wind.css('layer');
  49. Wind.use("layer", function () {
  50. $('.js-submit').click(function (e) {
  51. e.preventDefault();
  52. let form = $('#form').serialize();
  53. $.post("{:url('setStatus')}", form, function (data) {
  54. layer.msg(data.msg);
  55. if (data.code == 1) {
  56. setTimeout(() => {
  57. parent.location.reload();
  58. }, 2000);
  59. }
  60. }, 'json')
  61. return false;
  62. });
  63. });
  64. });
  65. </script>
  66. </body>
  67. </html>