<?php 
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/5/005
 * Time: 11:33
 */
?>
<div class="wrapper wrapper-content animated fadeInRight">
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <form>
        <input type="hidden" name="batch_no" value="<?= $batch_no ?>">
    </form>

    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <h3>操作日志</h3>
                    <div class="table-responsive">
                        <table id="logs" class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>操作时间</th>
                                <th>操作人</th>
                                <th>详细操作备注</th>
                                <th>登录IP</th>
                            </tr>
                            </thead>
                            <?php if ($data) { ?>
                                <?php foreach ($data as $item) { ?>
                                    <tr>
                                        <td><?= date('Y-m-d H:i:s', $item['create_time']) ?></td>
                                        <td><?=  $item['admin_name'] ?></td>
                                        <td><?=  $item['memo'] ?></td>
                                        <td><?=  $item['admin_ip'] ?></td>
                                    </tr>
                                <?php } ?>
                            <?php } else { ?>
                                <tr>
                                    <td colspan="4">暂无数据</td>
                                </tr>
                            <?php } ?>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



