<!-- ############ 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>用户管理</h2>
                    <small>在这里，你可以自由的管理平台里的所有用户（当前用户：<code id="user_count"><?=count($GLOBALS['list'])?></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>昵称</th>
                            <th>用户名</th>
                            <th>联系QQ</th>
                            <th>彩虹屁</th>
                            <th>身份</th>
                            <th>挂机数量</th>
                            <th>播放器数量</th>
                            <th>注册时间</th>
                            <th>注册IP</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody class="user-list">
                    <?php if(!empty($GLOBALS['list'])){ foreach($GLOBALS['list'] as $item){ $index++; ?>
                        <tr>
                            <td uid="<?=$item->uid?>"><?=$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->name?></td>
                            <td><?=$item->username?></td>
                            <td><?=$item->qq?></td>
                            <td><code class="text-primary" title="彩虹屁"><?=$item->money?> 个</code></td>
                            <td><?php if(get_isvip($item->vip,$item->vipend)){echo '<code class="text-success title="VIP会员">VIP会员</code>';}else{echo '<code class="text-danger" title="普通会员">普通会员</code>';}?></td>
                            <td><a class="label white query-qq-count" only="<?=$item->only?>">点击查看</a></td>
                            <td>已用 <code class="text-success" title="已用数量"><?=get_count('player',"only='{$item->only}'")?></code> 个 / 共：<code class="text-success" title="共有数量"><?=$item->p_quota?></code> 个</td>
                            <td><?=$item->regtime?></td>
                            <td><?=$item->regip?></td>
                            <td><a class="label info" title="管理" href="?Mould=Admin_Users_Set&only=<?=$item->only?>"><i class="fa fa-edit"></i> 管理</a> / <a href="?Mould=Admin_Users_Set&action=del&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-->