
<div class="content_wrapper">
<style>
    .btn-name {
        white-space: nowrap;
    }
</style>
    <div class="container-fluid">
        <div id="msg-tip"></div>
        <aside>
            <header><i class="fa fa-fw fa-file"></i>查询排名</header>
            <section>
                <div class="container-fluid">
                    
                    <div class="row">
                        <form class="form-inline" role="form" method="POST" action="<?php echo "/#activitysta/rank/{$id}"; ?>" >
		                    <span class="gap"></span>
		                    
		                    <div class="form-group">
		                        <label>查询玩家排名:</label>
		                        
		                        <input type="text" class="form-control" value="<?php if($uid) echo $uid;?>" placeholder="uid" name="uid" />
		                    </div>
		                    <span class="gap"></span>
		                    <button type="submit" class="btn btn-primary" id="query">查询排名</button>
		                    <span class="gap"></span>
		                </form>
	            	</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">
                                    <table class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                        <thead>
                                        <tr>
                                        	<th>活动ID</th>
                                            <th>UID</th>
                                            <th>房间</th>
                                            <th>排名</th>
                                            <th>奖励</th>
                                            <th>数量</th>
                                            <th>结算时间</th>
                                            <th>领奖时间</th>
                                            <th>领奖状态</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php
                                        if(is_array($rank)  && !empty($rank)){
                                         ?>   
                                            <tr>
                                            	<td><?php echo $rank['aid'];?></td>
                                                <td><?php echo $rank['uid'];?></td>
                                                <td><?php echo $rank['roomId'];?></td>
                                                <td><?php echo $rank['ranking'];?></td>
                                                <td><?php echo $rank['reward'];?></td>
                                                <td><?php echo $rank['num'];?></td>
                                                <td><?php echo date("Y-m-d H:i:s",$rank['time']);?></td>
                                                <td><?php echo date("Y-m-d H:i:s",$receive['rtime']);?></td>
                                                <td><?php 
                                                	if($receive['status'] == 1){
                                                		echo "已领奖";
                                                	}else{
                                                		echo "未领奖";
                                                	}
                                                ?></td>
                                            </tr>
                                            
                                        <?php } else{ ?>
                                            <tr>
                                                <td colspan="10">暂无数据</td>
                                            </tr>
                                        <?php } ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
    </div>
</div>


<script src="<?php echo base_url();?>public/js/common.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/highcharts/highcharts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/highcharts/modules/exporting.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/highcharts/modules/export-data.js"></script>
<script type="text/javascript">
	
</script>