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

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