<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css">
<!--
<script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
-->

<div class="content_wrapper">
    <aside>
        <section>
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12">
                    <form class="form-inline" role="form" method="POST" action="#user/userDiamond">
                        <span class="gap"></span>
                        <div class="form-group">
                            <label>玩家id：</label>
                            <input type="text" class="form-control" value="<?php if($userid) echo $userid;?>" name="userid" />
                        </div>
                        <button type="submit" class="btn btn-primary">查询</button>
                        <div class="form-group">
                            <a type="button" class="btn btn-primary" href="/Export/userDiamond">导出记录</a>
                        </div>

                    </form>
                </div>
            </div>
        </div>
        </section>
    </aside>

<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="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>
                                        <th>星星数量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    if(is_array($list)){
                                        foreach ($list as $key => $val) {
                                    ?>
                                        <tr>
                                            <td><?php echo $val['mid'];?></td>
                                            <td><?php echo $val['levelId'];?></td>
                                            <td><?php echo $val['diamond'];?></td>
                                            <td><?php echo $val['spins'];?></td>
                                            <td><?php echo $val['money'];?></td>
                                            <td><?php echo $val['star'];?></td>
                                        </tr>
                                    <?php } } else{?>
                                        <tr>
                                            <td colspan="10">暂无数据</td>
                                        </tr>
                                    <?php } ?>
                                    </tbody>

                                    </tbody>
                                </table>
                            </div>

                            <nav>
                                <ul class="pagination">
                                    <li class="disabled"><a href="#">共<span class="pagetotal"><?php echo $total;?></span>条</a></li>
                                    <?php echo $pageurl;?>
                                </ul>
                            </nav>

                        </div>
                    </div>

                </div>
            </section>
        </aside>
    </div>
</div>
