<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
<style type="text/css">
    *{
        padding: 0;
        margin: 0;
        font-family: "microsoft yahei";
    }
    ul li {
        list-style-type: none;
    }
    .box {
        width: 200px;
        /*border: 1px solid red;*/
    }
    ul {
        margin-left: 20px;
        /*border: 1px solid blue;*/
    }

    .menuUl li {
        margin: 10px 0;
    }

    .menuUl li span:hover {
        text-decoration: underline;
        cursor: pointer;
    }

    .menuUl li i { margin-right: 10px; top: 0px; cursor: pointer; color: #161616; 			}
</style>

<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="container-fluid" style="margin-bottom: 2%;">
                            <div class="row">
                                <div class="col-sm-12">
                                    <form class="form-inline" onkeydown="if(event.keyCode==13){ $('#submit').click(); return false; }" role="form" method="post" action="user/searchuser"  data-validate="validateUser" data-callBack="showuserinfo" data-useDefaultCallBack="on" data-sendingText="查询中">
                                        <span class="gap"></span>
                                        <div class="form-group">
                                            <label>数据量:</label>
                                            <input type="text" class="form-control" placeholder="数据量" name="keys" id="keys" value="<?php echo $key ?? '';?>">
                                        </div>
                                        <span class="gap"></span>
                                        <button type="button" class="btn btn-primary" id="submit">查询</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div id="tHtml" style=" word-break: break-word">
                                        <?php
                                            foreach ($data as $row){
                                                echo '<div class="panel panel-default">
<div class="panel-heading">时间：'.date('Y-m-d H:i:s',$row['time']).'</div>
<div class="panel-body">用户:'.$row['uid'].'获取RichestKing失敗，追加机器人：'.$row['robotId'].' 金币：'.$row['money'].'</div></div>';
                                            }
                                        ?>

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

<script src="<?php echo base_url();?>public/js/proTree.js"></script>
<script type="text/javascript">
    //后台传入的 标题列表
    $('#submit').click(function () {
        var keys = $('#keys').val();
        if(keys != ''){
            window.location.href = "/#debug/warning?len="+keys
        }else{
            window.location.href = "/#debug/warning"
        }
    });
</script>