ページ化対応
This commit is contained in:
+26
-15
@@ -8,26 +8,37 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php foreach (array_reverse ($log_data) as $record): ?>
|
||||
<div class="mb-4">
|
||||
<div>
|
||||
<?= $record['date_time'] ?>
|
||||
</div>
|
||||
<div class="container container-max-width mt-5">
|
||||
<?php require 'pagination.cmp.php' ?>
|
||||
|
||||
<div>
|
||||
<img src="<?= $record['chat_icon'] ?>" />
|
||||
<?= $record['chat_name'] ?>
|
||||
<?php foreach (array_slice ($log_data,
|
||||
($page - 1) * $length,
|
||||
$length,
|
||||
true) as $record): ?>
|
||||
<div class="mb-4">
|
||||
<div>
|
||||
<?= $record['date_time'] ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<img src="<?= $record['chat_icon'] ?>" />
|
||||
<?= $record['chat_name'] ?>
|
||||
</div>
|
||||
|
||||
<div style="color: blue">
|
||||
> <span style="font-style: italic"><?= $record['chat_message'] ?></span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?= $record['answer'] ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div style="color: blue">
|
||||
> <span style="font-style: italic"><?= $record['chat_message'] ?></span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?= $record['answer'] ?>
|
||||
</div>
|
||||
<?php require 'pagination.cmp.php' ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user