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

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