<div class="content_wrapper">
<style>
    .btn-name {
        white-space: nowrap;
    }
</style>
    <div class="container-fluid">
        <div id="msg-tip"></div>
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>用户分组配置</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="btn-group" style="margin-bottom:20px;">
<!--                                        <a class="btn btn-success" href="#activity/add?id=--><?php //echo $max_id+1;?><!--" role="button">分组</a>-->
                                    </div>
                                    <div class="table-responsive">
                                        <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                            <thead>
                                            <tr>
                                                <th>分组ID</th>
                                                <th>分组名称</th>
                                                <th>广告概率</th>
                                                <th>广告总次数</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php
                                            if(is_array($list)  && !empty($list)){
                                                foreach ($list as $key => $vl) { ?>
                                                    <tr>
                                                        <td><?php echo $vl['id'];?></td>
                                                        <td><?php echo $vl['name'];?></td>
                                                        <td><?php echo $vl['adPro']; ?></td>
                                                        <td><?php echo $vl['adTotal']; ?></td>
                                                        <td>
                                                            <a href="#config/editUserGroup/<?php echo $vl['id'];?>" class="btn btn-primary active" role="button">编辑</a>
                                                        </td>
                                                    </tr>
                                                <?php }
                                            } else{?>
                                            <tr>
                                                <td colspan="10">暂无数据</td>
                                            </tr>
                                            <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
    </div>

</div>

