| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- @page
- @model Admin.Pages.Member.Log.IntroModel
- @{
- ViewData["Title"] = "자기소개 변경 내역";
- }
- <div class="container-fluid">
- <h3>@ViewData["Title"]</h3>
- <hr />
- <partial name="/Pages/Member/_navTabs.cshtml" />
- <partial name="_StatusMessage" />
- <div class="row g-2 align-items-end mt-3">
- <div class="col">
- Total : @Model.Total
- </div>
- <div class="col text-end">
- <select name="perPage" id="perPage" class="form-select w-auto d-inline-block" form="fAdminSearch">
- <option value="10" selected="@(Model.Query.PerPage == 10)">10</option>
- <option value="20" selected="@(Model.Query.PerPage == 20)">20</option>
- <option value="50" selected="@(Model.Query.PerPage == 50)">50</option>
- <option value="100" selected="@(Model.Query.PerPage == 100)">100</option>
- </select>
- </div>
- </div>
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover mt-3">
- <colgroup>
- <col style="width: 5%;" />
- <col style="width: 8%;" />
- <col style="width: 12%;" />
- <col />
- <col />
- <col style="width: 10%;" />
- <col style="width: 12%;" />
- </colgroup>
- <thead>
- <tr>
- <th>ID</th>
- <th>회원ID</th>
- <th>회원명</th>
- <th>변경 전 자기소개</th>
- <th>변경 후 자기소개</th>
- <th>IP</th>
- <th>일시</th>
- </tr>
- </thead>
- <tbody>
- @if (Model.List == null || Model.Total <= 0)
- {
- <tr>
- <td colspan="7">No Data.</td>
- </tr>
- }
- else
- {
- @foreach (var row in Model.List)
- {
- <tr>
- <td>@row.ID</td>
- <td>@row.MemberID</td>
- <td class="text-start">@(row.MemberName ?? "-")</td>
- <td class="text-start text-truncate" style="max-width: 200px;" title="@row.BeforeIntro">@(row.BeforeIntro ?? "-")</td>
- <td class="text-start text-truncate" style="max-width: 200px;" title="@row.AfterIntro">@(row.AfterIntro ?? "-")</td>
- <td>@(row.IpAddress ?? "-")</td>
- <td>@row.CreatedAt</td>
- </tr>
- }
- }
- </tbody>
- </table>
- <partial name="_Pagination" model="@Model.Pagination" />
- </div>
- </div>
- <form id="fAdminSearch" method="get" accept-charset="utf-8">
- <input type="hidden" name="pageNum" value="@Model.Query.PageNum" />
- </form>
- @section Scripts {
- <script>
- let searchForm = document.getElementById("fAdminSearch");
- $(document).on("change", "#perPage", function () {
- searchForm.submit();
- });
- </script>
- }
|