<link rel="stylesheet" href="<?php echo base_url();?>public/js/date/datedropper.min.css">
<script src="<?php echo base_url();?>public/js/date/datedropper.min.js"></script>

<!-- Select2 -->
<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/select2/select2.min.css">
<script src="<?php echo base_url();?>public/js/vendor/select2/select2.full.min.js"></script>

<div class="content_wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>收集活动查询</header>
                    <section>
                        <div class="row">
                            <div class="col-sm-12">
                                <form class="form-inline">
                                    <span class="gap"></span>
                                    <div class="form-group">
                                        <label>玩家id：</label>
                                        <input type="text" class="form-control" placeholder="用户UID" name="userid" id="userid" value="<?php echo $uid ?? '';?>">
                                    </div>
                                    <button type="button" class="btn btn-primary" id="SubmitBtn">查询</button>
                                </form>
                            </div>
                        </div>
                        <br>

                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-bordered table-hover"  width="100%" style="word-break:break-all; word-wrap:break-word; ">
                                            <thead>
                                            <tr>
                                                <th>说明</th>
                                                <th>内容</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php
                                            echo "<tr><td>当前总经验</td><td>{$userActInfo['exp']}</td></tr>";
                                            echo "<tr><td>当前等级</td><td>{$userActInfo['thisLv']}</td></tr>";
                                            echo "<tr><td>当前等级下进度值</td><td>{$userActInfo['thisLvExp']}</td></tr>";
                                            echo "<tr><td>当前已领奖免费层</td><td>{$userActInfo['receive_normal']}</td></tr>";
                                            echo "<tr><td>当前已领奖夫付费层</td><td>{$userActInfo['receive_special']}</td></tr>";
                                            ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>

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


    $('#SubmitBtn').click(function(){
        var userId = $('#userid').val();
        var url = rootPath+"#customer/userActGamePass/"+userId;
        window.location.href = url
    });

</script>