Files
sake/src/main/webapp/WEB-INF/views/mngr/stats/marktAnals/couponStatsTable.jsp
2025-10-29 17:08:05 +09:00

66 lines
2.1 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<script>
$(document).ready(function() {
$('th[class^="reorder_"]').click(function() {
var className = $(this).attr('class');
var ordrStand = className.replace('reorder_', '');
fn_select_table_data(null, null, ordrStand);
});
});
</script>
<style>
th[class^="reorder_"] {
cursor: pointer;
}
</style>
<section class="content-section">
<table class="table vertical">
<caption>해당 테이블에 대한 설명</caption>
<colgroup>
<col style="width: auto;">
</colgroup>
<thead id="tableHeader">
<tr>
<th class="reorder_coupNm">쿠폰명</th>
<th class="reorder_gubun">쿠폰구분</th>
<th class="reorder_discountAmt">쿠폰할인금액</th>
<th class="reorder_couponDwldCnt">발급건수</th>
<th class="reorder_couponUseDcnt">사용건수</th>
</tr>
</thead>
<tbody id="tableBody">
<c:choose>
<c:when test="${ empty resultMap.resultList }">
<tr>
<td class="row-no-data" colspan="20">조회된 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach items="${ resultMap.resultList }" var="list" varStatus="status">
<tr>
<td>${ list.coupNm }</td>
<td>${ list.gubun }</td>
<td><fmt:formatNumber value="${ list.discountAmt }" pattern="#,###"/></td>
<td>${ list.couponDwldCnt }</td>
<td>${ list.couponUseDcnt }</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</tbody>
</table>
</section>
<div class="pagination__container">
<ui:pagination paginationInfo="${ resultMap.paginationInfo }" type="image" jsFunction="fn_select_table_data" />
</div>