Name.cshtml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. @page
  2. @model Admin.Pages.Member.Log.NameModel
  3. @{
  4. ViewData["Title"] = "별명 변경 내역";
  5. }
  6. <div class="container-fluid">
  7. <h3>@ViewData["Title"]</h3>
  8. <hr />
  9. <partial name="/Pages/Member/_navTabs.cshtml" />
  10. <partial name="_StatusMessage" />
  11. <div class="row g-2 align-items-end mt-3">
  12. <div class="col">
  13. Total : @Model.Total
  14. </div>
  15. <div class="col text-end">
  16. <select name="perPage" id="perPage" class="form-select w-auto d-inline-block" form="fAdminSearch">
  17. <option value="10" selected="@(Model.Query.PerPage == 10)">10</option>
  18. <option value="20" selected="@(Model.Query.PerPage == 20)">20</option>
  19. <option value="50" selected="@(Model.Query.PerPage == 50)">50</option>
  20. <option value="100" selected="@(Model.Query.PerPage == 100)">100</option>
  21. </select>
  22. </div>
  23. </div>
  24. <div class="table-responsive">
  25. <table class="table table-striped table-bordered table-hover mt-3">
  26. <colgroup>
  27. <col style="width: 5%;" />
  28. <col style="width: 8%;" />
  29. <col style="width: 20%;" />
  30. <col style="width: 18%;" />
  31. <col style="width: 18%;" />
  32. <col style="width: 12%;" />
  33. <col style="width: 12%;" />
  34. </colgroup>
  35. <thead>
  36. <tr>
  37. <th>ID</th>
  38. <th>회원ID</th>
  39. <th>회원 이메일</th>
  40. <th>변경 전 별명</th>
  41. <th>변경 후 별명</th>
  42. <th>IP</th>
  43. <th>일시</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @if (Model.List == null || Model.Total <= 0)
  48. {
  49. <tr>
  50. <td colspan="7">No Data.</td>
  51. </tr>
  52. }
  53. else
  54. {
  55. @foreach (var row in Model.List)
  56. {
  57. <tr>
  58. <td>@row.ID</td>
  59. <td>@row.MemberID</td>
  60. <td class="text-start">@(row.MemberEmail ?? "-")</td>
  61. <td class="text-start">@(row.BeforeName ?? "-")</td>
  62. <td class="text-start">@(row.AfterName ?? "-")</td>
  63. <td>@(row.IpAddress ?? "-")</td>
  64. <td>@row.CreatedAt</td>
  65. </tr>
  66. }
  67. }
  68. </tbody>
  69. </table>
  70. <partial name="_Pagination" model="@Model.Pagination" />
  71. </div>
  72. </div>
  73. <form id="fAdminSearch" method="get" accept-charset="utf-8">
  74. <input type="hidden" name="pageNum" value="@Model.Query.PageNum" />
  75. </form>
  76. @section Scripts {
  77. <script>
  78. let searchForm = document.getElementById("fAdminSearch");
  79. $(document).on("change", "#perPage", function () {
  80. searchForm.submit();
  81. });
  82. </script>
  83. }