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

161 lines
8.3 KiB

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