| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- @using bitforum.Helpers;
- @{
- ViewData["Title"] = "팝업 관리";
- var data = ViewBag.Data as IEnumerable<dynamic>;
- var total = ViewBag.Total.ToString("N0");
- var pagination = ViewBag.Pagination as Pagination;
- }
- <div class="container-fluid">
- <h3>@ViewData["Title"]</h3>
- <hr />
- <partial name="_StatusMessage" />
- <div class="row g-2 align-items-end">
- <div class="col">
- Total : @total
- </div>
- <div class="col text-end">
- <button type="button" id="btnListDelete" class="btn btn-sm btn-danger" form="fAdminList" data-action="/Page/Popup/Delete">삭제</button>
- <a class="btn btn-sm btn-success" href="/Page/Popup/Write">추가</a>
- </div>
- </div>
- <form name="f_admin_list" id="fAdminList" method="post" accept-charset="utf-8" autocomplete="off"></form>
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover mt-3">
- <colgroup>
- <col width="2%"/>
- <col width="5%"/>
- <col width="*"/>
- <col width="*"/>
- <col width="10%"/>
- <col width="10%"/>
- <col width="9%"/>
- <col width="9%"/>
- <col width="8%"/>
- </colgroup>
- <thead>
- <tr>
- <th><input type="checkbox" id="checkedAll" class="form-check-input" value="1" form="fAdminList" /></th>
- <th>ID</th>
- <th>제목</th>
- <th>주소</th>
- <th>조회 수</th>
- <th>사용 여부</th>
- <th>등록일시</th>
- <th>수정일시</th>
- <th>비고</th>
- </tr>
- </thead>
- <tbody>
- @if (data == null || !data.Any())
- {
- <tr>
- <td colspan="9">No Data.</td>
- </tr>
- }
- else
- {
- @foreach (var row in data)
- {
- <tr>
- <td>
- <input type="checkbox" name="ids[]" class="form-check-input list-check-box" value="@row.ID" form="fAdminList" />
- </td>
- <td>@row.ID</td>
- <td>
- <strong>@row.Subject</strong><br/>
- <small>
- 사용 기한:@row.Expired
- </small>
- </td>
- <td>
- @if (row.Link is not null) {
- <a href="@row.Link" target="_blank" rel="external">
- @row.Link
- </a>
- } else {
- <text>-</text>
- }
- </td>
- <td>@row.Views</td>
- <td>@row.IsActive</td>
- <td>@row.CreatedAt</td>
- <td>@row.UpdatedAt</td>
- <td>
- <div class="d-grid gap-2 d-block d-xxl-inline">
- <a class="btn btn-sm btn-outline-info" href="@row.EditURL">수정</a>
- <a class="btn btn-sm btn-outline-danger btn-row-delete" href="@row.DeleteURL">삭제</a>
- </div>
- </td>
- </tr>
- }
- }
- </tbody>
- </table>
- <partial name="_Pagination" model="pagination" />
- </div>
- </div>
|