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

150 lines
7.7 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" 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" class="form-control" placeholder="YYYY-MM-DD" id="filter-date-start"
  64. value="<?= $date_start ?>" />
  65. <span class="input-group-text">〜</span>
  66. <input type="text" class="form-control" placeholder="YYYY-MM-DD" id="filter-date-end"
  67. value="<?= $date_end ?>" />
  68. </div>
  69. </div>
  70. <div class="row d-flex align-items-center my-2">
  71. <div class="col-sm-4 fw-bold">
  72. フリーワード
  73. </div>
  74. <div class="col-sm">
  75. <input type="text" class="form-control" placeholder="<?= $april_fool ? 'ムムムム!! クサタベテル!!!!!' : 'ぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛' ?>" id="filter-keyword"
  76. value="<?= $keyword ?>"/>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="mt-3 row">
  81. <div class="col-sm gap-2 d-grid my-1">
  82. <button type="button" class="btn btn-secondary" id="btn-reset">元に戻す</button>
  83. </div>
  84. <div class="col-sm gap-2 d-grid my-1">
  85. <button type="button" class="btn btn-primary" id="btn-filter">絞り込む</button>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <?php if (count ($log_data) > 0): ?>
  93. <div class="mb-4">
  94. <?php require 'pagination.cmp.php' ?>
  95. </div>
  96. <div>
  97. <?php foreach (array_slice ($log_data,
  98. ($page - 1) * $length,
  99. $length,
  100. true)
  101. as $record): ?>
  102. <div class="mb-4">
  103. <div>
  104. <?= $record['date_time'] ?>
  105. </div>
  106. <div>
  107. <img src="<?= $record['chat_icon'] ?>" width="64" height="64" />
  108. <?= $record['chat_name'] ?>
  109. </div>
  110. <div style="color: blue">
  111. &gt; <span style="font-style: italic"><?= $record['chat_message'] ?></span>
  112. </div>
  113. <div>
  114. <?= $record['answer'] ?>
  115. </div>
  116. </div>
  117. <?php endforeach ?>
  118. </div>
  119. <div class="mt-5">
  120. <?php require 'pagination.cmp.php' ?>
  121. </div>
  122. <?php else: ?>
  123. 何も見つかりませんでしたぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛
  124. <?php endif ?>
  125. </div>
  126. <script src="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  127. <script src="./script.js" type="text/javascript"></script>
  128. </body>
  129. </html>