news_review.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>新经资讯后台管理</title>
  6. <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
  7. <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
  8. <link rel="stylesheet" href="../../static/admin/css/jquery.pagination.css">
  9. <script type="text/javascript" src="../../static/admin/js/jquery-1.12.4.min.js"></script>
  10. <script type="text/javascript" src="../../static/admin/js/jquery.pagination.min.js"></script>
  11. </head>
  12. <body>
  13. <div class="breadcrub">
  14. 当前位置:新闻管理>新闻审核
  15. <form class="news_filter_form">
  16. <input name="keywords" type="text" placeholder="请输入关键字" class="input_txt">
  17. <input type="submit" value="搜 索" class="input_sub">
  18. </form>
  19. </div>
  20. <div class="pannel">
  21. <table class="common_table">
  22. <tr>
  23. <th width="3%">id</th>
  24. <th width="70%">标题</th>
  25. <th width="15%">发布时间</th>
  26. <th width="5%">状态</th>
  27. <th width="8%">管理操作</th>
  28. </tr>
  29. {% for news in data.news_list %}
  30. <tr>
  31. <td>{{ news.id }}</td>
  32. <td class="tleft">{{ news.title }}</td>
  33. <td>{{ news.create_time }}</td>
  34. <td>{% if news.status == 0 %}
  35. 已通过
  36. {% elif news.status == -1 %}
  37. 未通过
  38. {% else %}
  39. 未审核
  40. {% endif %}</td>
  41. <td>
  42. <a href="{{ url_for("admin.news_review_detail")}}?news_id={{ news.id }} " class="review">审核</a>
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </table>
  47. </div>
  48. <div class="box">
  49. <div id="pagination" class="page"></div>
  50. </div>
  51. <script>
  52. $(function () {
  53. $("#pagination").pagination({
  54. currentPage: {{ data.current_page }},
  55. totalPage: {{ data.current_page }},
  56. callback: function (current) {
  57. window.location = '/admin/news_review?p=' + current
  58. }
  59. });
  60. });
  61. </script>
  62. </body>
  63. </html>