| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <include file="public@header"/>
- <style type="text/css">
- .pic-list li {
- margin-bottom: 5px;
- }
- </style>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <form action="{:url('AdminArticle/addPost')}" method="post" id="form"
- class="form-horizontal js-ajax-form margin-top-20">
- <input type="hidden" name="ids" value="{$ids}">
- <div class="row">
- <div class="col-md-12">
- <table class="table table-bordered">
- <tr>
- <th>状态<span class="form-required">*</span></th>
- <td>
- <label class="radio-inline">
- <input type="radio" name="status" value="2" checked> 审核通过
- </label>
- <label class="radio-inline">
- <input type="radio" name="status" value="3"> 审核不通过
- </label>
- </td>
- </tr>
- <tr>
- <th>备注</th>
- <td>
- <textarea class="form-control" name="comment" style="height: 50px;"
- placeholder="请填写摘要"></textarea>
- </td>
- </tr>
- </table>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-submit">提交</button>
- <button class="btn btn-default">关闭</button>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
- <script type="text/javascript">
- $(function () {
- Wind.css('layer');
- Wind.use("layer", function () {
- $('.js-submit').click(function (e) {
- e.preventDefault();
- let form = $('#form').serialize();
- $.post("{:url('setStatus')}", form, function (data) {
- layer.msg(data.msg);
- if (data.code == 1) {
- setTimeout(() => {
- parent.location.reload();
- }, 2000);
- }
- }, 'json')
- return false;
- });
- });
- });
- </script>
- </body>
- </html>
|