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

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