a_knowledgetopic_manage.html 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {% extends 'admin/a_admindefault.html' %}
  2. {% block middle %}
  3. <div class="content">
  4. <div class="page-inner">
  5. <div class="page-header">
  6. <h4 class="page-title">知识专题管理</h4>
  7. </div>
  8. <div class="row">
  9. <div class="col-md-12">
  10. <div class="card">
  11. <div class="card-header">
  12. <div class="d-flex align-items-center">
  13. <a href="/newknowledgetopic">
  14. <button class="btn btn-primary btn-round ml-auto">
  15. <i class="fa fa-plus"></i>添加新知识专题
  16. </button>
  17. </a>
  18. {% with messages = get_flashed_messages() %}
  19. {% if messages %}
  20. {% for message in messages %}
  21. <p>{{ message }}</p>
  22. {% endfor %}
  23. {% endif %}
  24. {% endwith %}
  25. </div>
  26. </div>
  27. <div class="card-body">
  28. <div class="table-responsive">
  29. <table id="add-row" class="display table table-striped table-hover">
  30. <thead>
  31. <tr>
  32. <th style="width: 30px">序号</th>
  33. <th style="width: 150px">知识专题类别</th>
  34. <th style="width: 250px">知识专题名称</th>
  35. <th style="width: 100px">图片</th>
  36. <th style="width: 50px">显示</th>
  37. <th style="width: 30px">排序</th>
  38. <th style="width: 30px">状态</th>
  39. </tr>
  40. </thead>
  41. {% for row in results %}
  42. <tbody>
  43. <tr>
  44. <td>{{row[0]}}</td>
  45. <td>{{row[1]}}</td>
  46. <td>{{row[2]}}</td>
  47. <td><img src="/{{row[3]}}" style="width:100px; height:75px"/></td>
  48. <td>{{row[4]}}</td>
  49. <td>{{row[5]}}</td>
  50. <td>{{row[6]}}</td>
  51. <td>
  52. <div class="form-button-action">
  53. <button type="button" title="" class="btn btn-link btn-primary btn-lg">
  54. <i class="fa fa-search"></i>
  55. <a href="/viewknowledgetopic/{{row[0]}}">查看</a>
  56. </button>
  57. <button type="submit" title="" class="btn btn-link btn-primary btn-lg">
  58. <i class="fa fa-edit"></i>
  59. <a href="/editknowledgetopic/{{row[0]}}">编辑</a>
  60. </button>
  61. <form name="delknowledgetopicform" action="/delknowledgetopic/{{row[0]}}"
  62. method="post">
  63. <a href="/delknowledgetopic/{{row[0]}}">
  64. <button type="submit" data-toggle="tooltip"
  65. class="btn btn-link btn-primary btn-lg"
  66. value="删除" data-original-title="删除"
  67. onclick="{if(confirm('确定要删除该知识专题吗?')){delteacherform.submit();return true;}return false;}">
  68. 删除
  69. </button>
  70. </a>
  71. </form>
  72. </div>
  73. </td>
  74. </tr>
  75. {% endfor %}
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. {% endblock %}