{% extends "fladmin/public/base.html" %}
{% block title %}菜单管理{% endblock %}

{% block content %}
<h5 class="sub-header">[ <a href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/admin/add">添加管理员</a> ]</h5>

<form name="listarc">
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>邮箱</th>
                    <th>状态</th>
                    <th>管理</th>
                </tr>
            </thead>
            <tbody>
                {% for row in list %}<tr>
                    <td>{{row.id}}</td>
                    <td>{{row.name}}</td>
                    <td>{{row.email}}</td>
                    <td>{{row.status_text}}</td>
                    <td><a href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/admin/edit?id={{row.id}}">修改</a>
                        {% if row.id != 1 %} | <a
                            onclick="delconfirm('{{"CMS_BASEHOST"|sysconfig}}/fladmin/admin/delete?id={{row.id}}')"
                            href="javascript:;">删除</a>
                        {% endif %}
                    </td>
                </tr>
                     {% endfor %}
            </tbody>
        </table>
    </div><!-- 表格结束 -->
</form><!-- 表单结束 -->
<ul class="pagination" style="margin: 0 20px 0 20px;">
</ul>
<script>
    //进行查询
    function query(e,page){
            window.location.href= '?page='+page
    };
    //这里回调
    $(".pagination").unbind();
    $(".pagination").pagination({
        total_pages:{{ page.total_page }},
        current_page:{{ page.current_page }},
        callback:query
    });
</script>
{% endblock %}