| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- {% 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">
- <div class="card">
- <div class="card-header">
- <div class="d-flex align-items-center">
- <a href="/newknowledgetopic">
- <button class="btn btn-primary btn-round ml-auto">
- <i class="fa fa-plus"></i>添加新知识专题
- </button>
- </a>
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- {% for message in messages %}
- <p>{{ message }}</p>
- {% endfor %}
- {% endif %}
- {% endwith %}
- </div>
- </div>
- <div class="card-body">
- <div class="table-responsive">
- <table id="add-row" class="display table table-striped table-hover">
- <thead>
- <tr>
- <th style="width: 30px">序号</th>
- <th style="width: 150px">知识专题类别</th>
- <th style="width: 250px">知识专题名称</th>
- <th style="width: 100px">图片</th>
- <th style="width: 50px">显示</th>
- <th style="width: 30px">排序</th>
- <th style="width: 30px">状态</th>
- </tr>
- </thead>
- {% for row in results %}
- <tbody>
- <tr>
- <td>{{row[0]}}</td>
- <td>{{row[1]}}</td>
- <td>{{row[2]}}</td>
- <td><img src="/{{row[3]}}" style="width:100px; height:75px"/></td>
- <td>{{row[4]}}</td>
- <td>{{row[5]}}</td>
- <td>{{row[6]}}</td>
- <td>
- <div class="form-button-action">
- <button type="button" title="" class="btn btn-link btn-primary btn-lg">
- <i class="fa fa-search"></i>
- <a href="/viewknowledgetopic/{{row[0]}}">查看</a>
- </button>
- <button type="submit" title="" class="btn btn-link btn-primary btn-lg">
- <i class="fa fa-edit"></i>
- <a href="/editknowledgetopic/{{row[0]}}">编辑</a>
- </button>
- <form name="delknowledgetopicform" action="/delknowledgetopic/{{row[0]}}"
- method="post">
- <a href="/delknowledgetopic/{{row[0]}}">
- <button type="submit" data-toggle="tooltip"
- class="btn btn-link btn-primary btn-lg"
- value="删除" data-original-title="删除"
- onclick="{if(confirm('确定要删除该知识专题吗?')){delteacherform.submit();return true;}return false;}">
- 删除
- </button>
- </a>
- </form>
- </div>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endblock %}
|