ニジカもんすたぁ!! トップ・ページ https://nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

110 lines
5.1 KiB

  1. <!DOCTYPE html>
  2. <html lang="ja">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
  7. <link href="./style.css" rel="stylesheet" />
  8. <title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
  9. </head>
  10. <body>
  11. <div class="container my-5">
  12. <div class="accordion mb-5" id="accordion-filter">
  13. <div class="accordion-item">
  14. <h2 class="accordion-header">
  15. <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-filter" aria-expanded="true" aria-controls="collapse-filter">
  16. 絞り込み
  17. </button>
  18. </h2>
  19. <div id="collapse-filter" class="accordion-collapse collapse show" data-bs-parent="#accordion-filter">
  20. <div class="accordion-body mx-5">
  21. <div>
  22. <div class="row d-flex align-items-center my-2">
  23. <div class="col-4 fw-bold">
  24. 順序
  25. </div>
  26. <div class="col-3 form-check">
  27. <input class="form-check-input" type="radio" name="order" id="order-desc"<?= $asc ? '' : ' checked="checked"' ?> />
  28. <label class="form-check-label" for="order-desc">
  29. 新しい順
  30. </label>
  31. </div>
  32. <div class="col-3 form-check">
  33. <input class="form-check-input" type="radio" name="order" id="order-asc"<?= $asc ? ' checked="checked"' : '' ?> />
  34. <label class="form-check-label" for="order-asc">
  35. 古い順
  36. </label>
  37. </div>
  38. </div>
  39. <div class="row d-flex align-items-center my-2">
  40. <div class="col-4 fw-bold">
  41. フリーワード
  42. </div>
  43. <div class="col">
  44. <input type="text" class="form-control" placeholder="ぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛" id="filter-keyword"
  45. value="<?= $keyword ?>"/>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="d-grid gap-2 mt-3">
  50. <button type="button" class="btn btn-primary" id="btn-filter">絞り込む</button>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <?php if (count ($log_data) > 0): ?>
  57. <div class="mb-4">
  58. <?php require 'pagination.cmp.php' ?>
  59. </div>
  60. <div>
  61. <?php foreach (array_slice ($log_data,
  62. ($page - 1) * $length,
  63. $length,
  64. true) as $record): ?>
  65. <div class="mb-4">
  66. <div>
  67. <?= $record['date_time'] ?>
  68. </div>
  69. <div>
  70. <img src="<?= $record['chat_icon'] ?>" />
  71. <?= $record['chat_name'] ?>
  72. </div>
  73. <div style="color: blue">
  74. &gt; <span style="font-style: italic"><?= $record['chat_message'] ?></span>
  75. </div>
  76. <div>
  77. <?= $record['answer'] ?>
  78. </div>
  79. </div>
  80. <?php endforeach ?>
  81. </div>
  82. <div class="mt-5">
  83. <?php require 'pagination.cmp.php' ?>
  84. </div>
  85. <?php else: ?>
  86. 何も見つかりませんでしたぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛
  87. <?php endif ?>
  88. </div>
  89. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  90. <script src="./script.js" type="text/javascript"></script>
  91. </body>
  92. </html>