ニジカもんすたぁ!! トップ・ページ 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.
 
 
 
 

134 lines
6.6 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. <script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
  7. <script src="//code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script>
  8. <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
  9. <link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
  10. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.min.css" />
  11. <link href="./style.css" rel="stylesheet" />
  12. <title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
  13. </head>
  14. <body>
  15. <div class="container my-5">
  16. <div class="accordion mb-5" id="accordion-filter">
  17. <div class="accordion-item">
  18. <h2 class="accordion-header">
  19. <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-filter" aria-expanded="true" aria-controls="collapse-filter">
  20. 絞り込み
  21. </button>
  22. </h2>
  23. <div id="collapse-filter" class="accordion-collapse collapse show" data-bs-parent="#accordion-filter">
  24. <div class="accordion-body mx-5">
  25. <div>
  26. <div class="row d-flex align-items-center my-2">
  27. <div class="col-4 fw-bold">
  28. 順序
  29. </div>
  30. <div class="col-3 form-check">
  31. <input class="form-check-input" type="radio" name="order" id="order-desc"<?= $asc ? '' : ' checked="checked"' ?> />
  32. <label class="form-check-label" for="order-desc">
  33. 新しい順
  34. </label>
  35. </div>
  36. <div class="col-3 form-check">
  37. <input class="form-check-input" type="radio" name="order" id="order-asc"<?= $asc ? ' checked="checked"' : '' ?> />
  38. <label class="form-check-label" for="order-asc">
  39. 古い順
  40. </label>
  41. </div>
  42. </div>
  43. <div class="row d-flex align-items-center my-2">
  44. <div class="col-4 fw-bold">
  45. 日時ニジカ
  46. </div>
  47. <div class="col input-group">
  48. <input type="text" class="form-control" placeholder="YYYY-MM-DD" id="filter-date-start"
  49. value="<?= $date_start ?>" />
  50. <span class="input-group-text">〜</span>
  51. <input type="text" class="form-control" placeholder="YYYY-MM-DD" id="filter-date-end"
  52. value="<?= $date_end ?>" />
  53. </div>
  54. </div>
  55. <div class="row d-flex align-items-center my-2">
  56. <div class="col-4 fw-bold">
  57. フリーワード
  58. </div>
  59. <div class="col">
  60. <input type="text" class="form-control" placeholder="ぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛" id="filter-keyword"
  61. value="<?= $keyword ?>"/>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="mt-3 row">
  66. <div class="col gap-2 d-grid">
  67. <button type="button" class="btn btn-secondary" id="btn-reset">元に戻す</button>
  68. </div>
  69. <div class="col gap-2 d-grid">
  70. <button type="button" class="btn btn-primary" id="btn-filter">絞り込む</button>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <?php if (count ($log_data) > 0): ?>
  78. <div class="mb-4">
  79. <?php require 'pagination.cmp.php' ?>
  80. </div>
  81. <div>
  82. <?php foreach (array_slice ($log_data,
  83. ($page - 1) * $length,
  84. $length,
  85. true) as $record): ?>
  86. <div class="mb-4">
  87. <div>
  88. <?= $record['date_time'] ?>
  89. </div>
  90. <div>
  91. <img src="<?= $record['chat_icon'] ?>" />
  92. <?= $record['chat_name'] ?>
  93. </div>
  94. <div style="color: blue">
  95. &gt; <span style="font-style: italic"><?= $record['chat_message'] ?></span>
  96. </div>
  97. <div>
  98. <?= $record['answer'] ?>
  99. </div>
  100. </div>
  101. <?php endforeach ?>
  102. </div>
  103. <div class="mt-5">
  104. <?php require 'pagination.cmp.php' ?>
  105. </div>
  106. <?php else: ?>
  107. 何も見つかりませんでしたぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛
  108. <?php endif ?>
  109. </div>
  110. <script src="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  111. <script src="./script.js" type="text/javascript"></script>
  112. </body>
  113. </html>