<!-- ############ PAGE START-->
<div class="padding">
    <div class="row">
        <div class="col-sm-4">
            <form data-ui-jp="parsley" action="?Mould=Admin_Leader" method="post">
                <input type="hidden" name="action" value="add">
                <div class="box">
                    <div class="box-header">
                        <h2>新增客服</h2>
                    </div>
                    <div class="box-body">
                        <p class="text-muted">在这里，你可以新增网站客服，用于解决问题。</p>
                        <div class="form-group">
                            <label>昵称</label>
                            <input type="text" class="form-control" name="name" placeholder="请输入昵称" required>
                        </div>
                        <div class="form-group">
                            <label>联系QQ</label>
                            <input type="text" class="form-control" name="qq" placeholder="请输入联系QQ" required>
                        </div>
                    </div>
                    <div class=" p-a text-right">
                        <button type="submit" class="btn info">点击添加</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-sm-8">
            <div class="box">
                <div class="box-header">
                    <span class="pull-right">
                        查询: <input id="filter" type="text" class="form-control input-sm w-auto inline m-r" placeholder="请输入内容..."/>
                    </span>
                    <h2>客服列表</h2>
                    <small>在这里，你可以自由的管理网站客服 (数量：<code>0</code> 个)</small>
                </div>
                <div>
                    <table class="table m-b-none" data-ui-jp="footable" data-filter="#filter" data-page-size="5">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>昵称</th>
                                <th>QQ</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php if(!empty($GLOBALS['list'])){ foreach($GLOBALS['list'] as $item){ $index++; ?>
                            <tr>
                                <td><?=$index++?></td>
                                <td><?=$item->name?></td>
                                <td><?=$item->qq?></td>
                                <td><a class="label danger" href="?Mould=Admin_Leader&action=del&id=<?=$item->id?>" title="Active">删除</a></td>
                            </tr>
                        <?php } }?>
                        </tbody>
                        <tfoot class="hide-if-no-paging">
                            <tr>
                                <td colspan="5" class="text-center">
                                    <ul class="pagination"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ############ PAGE END-->