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

140 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)
  91. as $record): ?>
  92. <div class="mb-4">
  93. <div>
  94. <?= $record['date_time'] ?>
  95. </div>
  96. <div>
  97. <img src="<?= $record['chat_icon'] ?>" />
  98. <?= $record['chat_name'] ?>
  99. </div>
  100. <div style="color: blue">
  101. &gt; <span style="font-style: italic"><?= $record['chat_message'] ?></span>
  102. </div>
  103. <div>
  104. <?= $record['answer'] ?>
  105. </div>
  106. </div>
  107. <?php endforeach ?>
  108. </div>
  109. <div class="mt-5">
  110. <?php require 'pagination.cmp.php' ?>
  111. </div>
  112. <?php else: ?>
  113. 何も見つかりませんでしたぬ゛ぅ゛ぅ゛ぅ゛ぅ゛ん゛
  114. <?php endif ?>
  115. </div>
  116. <script src="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  117. <script src="./script.js" type="text/javascript"></script>
  118. </body>
  119. </html>