| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- {% extends 'admin/a_admindefault.html' %}
- {% block middle %}
- <div class="content">
- <div class="page-inner">
- <div class="page-header">
- <h4 class="page-title">
- 研究课题管理</h4>
- </div>
- <div class="row">
- <div class="col-md-12">
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- {% for message in messages %}
- <p>{{ message }}</p>
- {% endfor %}
- {% endif %}
- {% endwith %}
- <div class="card">
- <div class="card-header">
- <div class="d-flex align-items-center">
- <a href="/newresearchtopic">
- <button class="btn btn-primary btn-round ml-auto">
- <i class="fa fa-plus"></i>添加新研究课题
- </button>
- </a>
- </div>
- </div>
- <div class="table-responsive">
- <table id="add-row" class="display table table-striped table-hover">
- <thead>
- <tr>
- <th style="width: 50px; text-align: center">
- 编号
- </th>
- <th style="width: 150px; text-align: center">
- 所属领域
- </th>
- <th style="width: 200px; text-align: center">
- 中文名称
- </th>
- <th style="width: 20px; text-align: center">
- 英文名称
- </th>
- <th style="width: 100px; text-align: center">
- 封面图片
- </th>
- <th style="text-align: center">
- 排序
- </th>
- <th style="text-align: center">
- 状态
- </th>
- <th style="text-align: center">
- 操作
- </th>
- </tr>
- </thead>
- {% for row in results %}
- <tbody>
- <tr>
- <td>
- {{row[0]}}
- </td>
- <td>
- {{row[1]}}
- </td>
- <td>
- {{row[2]}}
- </td>
- <td>
- {{row[3]}}
- </td>
- <td>
- <img src="{{row[4]}}" style="width:100px; height:75px">
- </td>
- <td>
- {{row[5]}}
- </td>
- <td>
- {% if row[6]==1 %}启用 {% else %} 禁用 {% endif %}
- </td>
- <td>
- <div class="form-button-action">
- <a href="/viewresearchtopic/{{row[0]}}"><button type="button" title="" class="btn btn-link btn-primary btn-lg" data-original-title="查看研究课题">
- 查看
- </button></a>
- <a href="/loadresearchtopicforedit/{{row[0]}}"><button type="submit" title="" class="btn btn-link btn-primary btn-lg" data-original-title="编辑研究课题">
- 编辑
- </button></a>
- <form name="delresearchtopicform" action="/delresearchtopic/{{row[0]}}" method="post">
- <a href="/delresearchtopic/{{row[0]}}"> <button type="submit" data-toggle="tooltip" title="" class="btn btn-link btn-primary btn-lg"
- data-original-title="删除" onclick="{if(confirm('确定要删除该研究课题吗?')){delresearchtopicform.submit();return true;}return false;}" >
- 删除
- </button> </a>
- </form>
- </div>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endblock %}
|