a_researchtopic_manage.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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">
  7. 研究课题管理</h4>
  8. </div>
  9. <div class="row">
  10. <div class="col-md-12">
  11. {% with messages = get_flashed_messages() %}
  12. {% if messages %}
  13. {% for message in messages %}
  14. <p>{{ message }}</p>
  15. {% endfor %}
  16. {% endif %}
  17. {% endwith %}
  18. <div class="card">
  19. <div class="card-header">
  20. <div class="d-flex align-items-center">
  21. <a href="/newresearchtopic">
  22. <button class="btn btn-primary btn-round ml-auto">
  23. <i class="fa fa-plus"></i>添加新研究课题
  24. </button>
  25. </a>
  26. </div>
  27. </div>
  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: 50px; text-align: center">
  33. 编号
  34. </th>
  35. <th style="width: 150px; text-align: center">
  36. 所属领域
  37. </th>
  38. <th style="width: 200px; text-align: center">
  39. 中文名称
  40. </th>
  41. <th style="width: 20px; text-align: center">
  42. 英文名称
  43. </th>
  44. <th style="width: 100px; text-align: center">
  45. 封面图片
  46. </th>
  47. <th style="text-align: center">
  48. 排序
  49. </th>
  50. <th style="text-align: center">
  51. 状态
  52. </th>
  53. <th style="text-align: center">
  54. 操作
  55. </th>
  56. </tr>
  57. </thead>
  58. {% for row in results %}
  59. <tbody>
  60. <tr>
  61. <td>
  62. {{row[0]}}
  63. </td>
  64. <td>
  65. {{row[1]}}
  66. </td>
  67. <td>
  68. {{row[2]}}
  69. </td>
  70. <td>
  71. {{row[3]}}
  72. </td>
  73. <td>
  74. <img src="{{row[4]}}" style="width:100px; height:75px">
  75. </td>
  76. <td>
  77. {{row[5]}}
  78. </td>
  79. <td>
  80. {% if row[6]==1 %}启用 {% else %} 禁用 {% endif %}
  81. </td>
  82. <td>
  83. <div class="form-button-action">
  84. <a href="/viewresearchtopic/{{row[0]}}"><button type="button" title="" class="btn btn-link btn-primary btn-lg" data-original-title="查看研究课题">
  85. 查看
  86. </button></a>
  87. <a href="/loadresearchtopicforedit/{{row[0]}}"><button type="submit" title="" class="btn btn-link btn-primary btn-lg" data-original-title="编辑研究课题">
  88. 编辑
  89. </button></a>
  90. <form name="delresearchtopicform" action="/delresearchtopic/{{row[0]}}" method="post">
  91. <a href="/delresearchtopic/{{row[0]}}"> <button type="submit" data-toggle="tooltip" title="" class="btn btn-link btn-primary btn-lg"
  92. data-original-title="删除" onclick="{if(confirm('确定要删除该研究课题吗?')){delresearchtopicform.submit();return true;}return false;}" >
  93. 删除
  94. </button> </a>
  95. </form>
  96. </div>
  97. </td>
  98. </tr>
  99. {% endfor %}
  100. </tbody>
  101. </table>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. {% endblock %}