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

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