165 lines
8.5 KiB
HTML
165 lines
8.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
layout:decorate="~{layout/layout}">
|
|
<th:block layout:fragment="script">
|
|
<script type='text/javascript'>
|
|
$(function (){
|
|
$("#dateSelectorDiv").datepicker({
|
|
format: "yyyy-mm-dd",
|
|
language: "ko",
|
|
autoclose: true
|
|
});
|
|
})
|
|
</script>
|
|
</th:block>
|
|
<div layout:fragment="content">
|
|
<main>
|
|
<h4>수신 알람 목록</h4>
|
|
<div class="row mx-0">
|
|
<div class="col-12 card bg-light">
|
|
<div class="card-body">
|
|
<form method="get" th:action="@{/myInfo/myAlarm}">
|
|
<input type="hidden" name="pageIndex" id="pageIndex" th:value="${searchParams.pageIndex}">
|
|
<div class="row justify-content-between py-1">
|
|
<div class="col-auto">
|
|
<select class="form-select form-select-sm" name="rowCnt" id="rowCnt">
|
|
<th:block th:each="num : ${#numbers.sequence(1,5)}">
|
|
<option th:value="${num*10}" th:text="${num*10}" th:selected="${searchParams.rowCnt eq num*10}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<div class="col-8">
|
|
<div class="row">
|
|
<div class="col-11">
|
|
<div class="row justify-content-end pb-1">
|
|
<div class="col-2">
|
|
<select class="form-select form-select-sm" name="viewYn">
|
|
<option value="">열람여부</option>
|
|
<option value="Y" th:selected="${searchParams.viewYn eq 'Y'}">O</option>
|
|
<option value="N" th:selected="${searchParams.viewYn eq 'N'}">X</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group">
|
|
<select class="form-select form-select-sm" name="cat1Cd">
|
|
<option value="">대분류</option>
|
|
<th:block th:each="code:${cat1List}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.cat1Cd}"></option>
|
|
</th:block>
|
|
</select>
|
|
<select class="form-select form-select-sm" name="cat2Cd">
|
|
<option value="">중분류</option>
|
|
<th:block th:each="code:${cat2List}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.cat2Cd}"></option>
|
|
</th:block>
|
|
</select>
|
|
<select class="form-select form-select-sm" name="cat3Cd">
|
|
<option value="">소분류</option>
|
|
<th:block th:each="code:${cat3List}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.cat3Cd}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-end">
|
|
<div class="col-4">
|
|
<input type="text" class="form-control form-control-sm" placeholder="메시지" name="alarmMsg" th:value="${searchParams.alarmMsg}">
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
|
|
<input type="text" class="form-control form-control-sm" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
|
<input type="text" class="form-control form-control-sm" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-1 d-grid gap-0">
|
|
<input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row justify-content-start">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<table class="table table-sm table-hover table-bordered">
|
|
<thead>
|
|
<tr class="table-secondary">
|
|
<th>대분류</th>
|
|
<th>중분류</th>
|
|
<th>소분류</th>
|
|
<th>메시지</th>
|
|
<th>열람여부</th>
|
|
<th>등록일시</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-group-divider">
|
|
<tr class="alarmTr" th:each="alarm:${pageAlarmList}">
|
|
<input type="hidden" class="alarmKey" th:value="${alarm.alarmKey}">
|
|
<input type="hidden" class="userSeq" th:value="${alarm.userSeq}">
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('CAT1')}">
|
|
<th:block th:if="${code.itemCd eq alarm.cat1Cd}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('CAT2')}">
|
|
<th:block th:if="${code.itemCd eq alarm.cat2Cd}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('CAT3')}">
|
|
<th:block th:if="${code.itemCd eq alarm.cat3Cd}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td th:text="${alarm.alarmMsg}"></td>
|
|
<td th:text="${alarm.viewYn eq 'Y'?'O':'X'}"></td>
|
|
<td th:text="${#temporals.format(alarm.wrtDt, 'yyyy-MM-dd HH:mm:ss')}"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-center">
|
|
<div class="col-auto">
|
|
<nav aria-label="Page navigation">
|
|
<ul class="pagination mb-0">
|
|
<th:block th:if="${searchParams.pageIndex>3}">
|
|
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)-3}">
|
|
<a class="page-link" href="#" aria-label="Previous">
|
|
<span aria-hidden="true">«</span>
|
|
</a>
|
|
</li>
|
|
</th:block>
|
|
<th:block th:each="num : ${#numbers.sequence(searchParams.startNum, searchParams.endNum)}">
|
|
<li class="page-item" th:data-pageindex="${num}" th:classappend="${searchParams.pageIndex eq num?'active':''}">
|
|
<a class="page-link" href="#" th:text="${num}"></a>
|
|
</li>
|
|
</th:block>
|
|
<th:block th:if="${searchParams.maxNum>searchParams.endNum+2}">
|
|
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)+3}">
|
|
<a class="page-link" href="#" aria-label="Next">
|
|
<span aria-hidden="true">»</span>
|
|
</a>
|
|
</li>
|
|
</th:block>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</html> |