python学习
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table class="table table-bordered m-t">
|
||||
<table class="table table-bordered m-t">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
@@ -56,24 +56,37 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if list %}
|
||||
{% for item in list %}
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>编程浪子2</td>
|
||||
<td>11012031511</td>
|
||||
<td>apanly@163.com</td>
|
||||
<td>{{ item.uid }}</td>
|
||||
<td>{{ item.nickname }}</td>
|
||||
<td>{{ item.mobile }}</td>
|
||||
<td>{{ item.email }}</td>
|
||||
<td>
|
||||
<a href="{{ buildUrl('/account/info') }}">
|
||||
<a href="{{ buildUrl('/account/info' ) }}?id={{ item.uid }}">
|
||||
<i class="fa fa-eye fa-lg"></i>
|
||||
</a>
|
||||
<a class="m-l" href="{{ buildUrl('/account/set') }}">
|
||||
|
||||
{% if item.status == 1 %}
|
||||
<a class="m-l" href="{{ buildUrl('/account/set') }}?id={{ item.uid }}">
|
||||
<i class="fa fa-edit fa-lg"></i>
|
||||
</a>
|
||||
|
||||
<a class="m-l remove" href="javascript:void(0);">
|
||||
<a class="m-l remove" href="javascript:void(0);" data="{{ item.uid }}">
|
||||
<i class="fa fa-trash fa-lg"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<a class="m-l recover" href="javascript:void(0);" data="{{ item.uid }}">
|
||||
<i class="fa fa-rotate-left fa-lg"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr><td colspan="5">暂无数据~~</td></tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
25
web/templates/common/pagenation.html
Normal file
25
web/templates/common/pagenation.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<span class="pagination_count" style="line-height: 40px;">共{{ pages.total }}条记录 | 每页{{pages.page_size}}条</span>
|
||||
<ul class="pagination pagination-lg pull-right" style="margin: 0 0 ;">
|
||||
{% if pages.is_prev == 1 %}
|
||||
<li>
|
||||
<a href="{{ pages.url }}&p=1" ><span>首页</span></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% for idx in pages.range %}
|
||||
{% if idx == pages.current %}
|
||||
<li class="active"><a href="javascript:void(0);">{{ idx }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ pages.url }}&p={{idx}}">{{ idx }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if pages.is_next == 1 %}
|
||||
<li>
|
||||
<a href="{{ pages.url }}&p={{ pages.total_pages }}" ><span>尾页</span></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user