<!-- ############ PAGE START-->
<div class="padding">
    <div class="row">
        <div class="col-sm-12">
            <form action="#" class="m-b-md">
                <div class="input-group input-group-lg">
                    <input id="filter" type="text" class="form-control" placeholder="请输入查询内容...">
                    <span class="input-group-btn">
                        <button class="btn b-a no-shadow white" type="button"><i class="fa fa-search"></i> 查询</button>
                    </span>
                </div>
            </form>
        </div>
        <div class="col-sm-12">
            <div class="box">
                <div class="box-header">
                    <h2>QQ挂机管理</h2>
                    <small>在这里，你可以自由的管理平台里的所有QQ挂机（当前QQ挂机：<code id="qq_count"><?=$GLOBALS['list']?count($GLOBALS['list']):'0'?></code> 个）</small>
                </div>
                <table class="table m-b-none" data-ui-jp="footable" data-filter="#filter" data-page-size="10">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>头像</th>
                            <th>QQ</th>
                            <th>所属用户</th>
                            <th>添加日期</th>
                            <th>更新日期</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody class="user-list">
                    <?php if(!empty($GLOBALS['list'])){ foreach($GLOBALS['list'] as $item){ $index++; ?>
                        <tr>
                            <td uid="<?=$item->qid?>"><?=$index?></td>
                            <td>
                                <span class="avatar w-24">
                                    <img src="http://q2.qlogo.cn/headimg_dl?bs=<?=$item->qq?>&dst_uin=<?=$item->qq?>&dst_uin=<?=$item->qq?>&;dst_uin=<?=$item->qq?>&spec=100&url_enc=0&referer=bu_interface&term_type=PC" class="img-responsive img-circle" width="45" height="45" alt=".">
                                </span>
                            </td>
                            <td><?=$item->qq?></td>
                            <td><?=get_data('users','username',"`only`='{$item->only}'")?></td>
                            <td><?=$item->addtime?></td>
                            <td><?=$item->gxtime?$item->gxtime:'暂无记录'?></td>
                            <td><a href="?Mould=Admin_Qq&action=del&qid=<?=$item->qid?>&only=<?=$item->only?>" onclick="if(!confirm('确认要删除该挂机吗？')){return false;}" class="label danger" title="移除"><i class="fa fa-trash-o"></i> 移除</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>
<!-- ############ PAGE END-->