<?php
/**
 * 我的日志
 */
$title = '我的日志';
include 'header.php';
$data_arr = reward::user_journal($USERDATA);
?>
<link href="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/css/vendor/dataTables.bootstrap4.css" rel="stylesheet"
      type="text/css"/>
<link href="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/css/vendor/responsive.bootstrap4.css" rel="stylesheet"
      type="text/css"/>
<!-- third party css end -->
<!-- App css -->

<link href="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/css/app.min.css" rel="stylesheet" type="text/css"/>

<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title mb-3">我的平台操作日志</h4>

                <table id="datatable-buttons" class="table table-striped dt-responsive nowrap"
                       style="white-space: nowrap">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>日志类型</th>
                        <th>数量</th>
                        <th>日志内容</th>
                        <th>触发时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($data_arr as $v) { ?>
                        <tr>
                            <td><?= $v['id'] ?></td>
                            <td><?= $v['name'] ?></td>
                            <td><?= $v['count'] ?></td>
                            <td><?= $v['content'] ?></td>
                            <td><?= $v['date'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

            </div> <!-- end card body-->
        </div> <!-- end card -->
    </div><!-- end col-->
</div>
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/app.min.js"></script>
<!-- third party js -->
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/jquery.dataTables.min.js"></script>
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/dataTables.bootstrap4.js"></script>
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/dataTables.responsive.min.js"></script>

<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/dataTables.buttons.min.js"></script>
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/buttons.bootstrap4.min.js"></script>
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/buttons.html5.min.js"></script>

<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/vendor/buttons.print.min.js"></script>


<!-- third party js ends -->
<!-- demo app -->
<script src="<?= $cdnserver == null ? '../' : $cdnserver ?>assets/js/pages/demo.datatable-init.js"></script>