<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/smalot_bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
<script src="<?php echo base_url();?>public/js/vendor/smalot_bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="<?php echo base_url();?>public/js/vendor/smalot_bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.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="container-fluid">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div style="margin-bottom:20px;">
                                        <form action="">
<!--                                            <div class="form-group">-->
<!--                                                <div class="col-sm-3">-->
                                                    <label>uid:</label>
                                                    <input type="text"  name="uid" value="" id="value_uid">
                                                    <button type="button" class="btn btn-success" data-toggle="modal" id="subUid">新增uid</button>
<!--                                                </div>-->
<!--                                            </div>-->
                                        </form>


                                    </div>
                                    <div class="table-responsive">
                                        <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                            <thead>
                                            <tr>
                                                <th>uid</th>
                                                <th>time</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php foreach($list as  $k=>$v) { ?>
                                            <tr>
                                                <td><?php echo $k;?></td>
                                                <td><?php echo date("Y-m-d H:i:s",$v)?></td>
                                            </tr>
                                            <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
    </div>

</div>

<script>
    $("#subUid").click(function () {
        var uid = $("#value_uid").val();
        $.ajax({
            type: "POST",
            url : 'debug/SetClickLogUid',
            dataType: "json",
            data: "uid="+uid,
            success:function(e){
                location.reload();
            },
            error: function () {

            }
        })
    });

</script>