Files
sake/src/main/webapp/WEB-INF/views/sopmal/mpage/bnef/DwldCouponDtlsR.jsp
2025-10-29 17:08:05 +09:00

129 lines
8.4 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="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
<%--
Class Name : CouponDtlsR.jsp
Description : 마이페이지 쿠폰 내역
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-02-27 추지훈 최초 생성
--%>
<form id="dwldListForm">
<input type="hidden" id="pageIndexDwld" name="pageIndex" value="<c:out value="${ resultMapDwld.paramVO.pageIndex }"/>"/>
<input type="hidden" id="recordCountPerPageDwld" name="recordCountPerPage" value="<c:out value="${ resultMapDwld.paramVO.recordCountPerPage }"/> "/>
<input type="hidden" id="sopmalCdDwld" name="sopmalCd" value=""/>
<input type="hidden" id="mbrInnbDwld" name="mbrInnb" value=""/>
<input type="hidden" id="mbrDvCdDwld" name="mbrDvCd" value=""/>
<c:if test="${ fn:length(resultMapDwld.resultList) > 0 }">
<div class="couponList__btnContainer">
<button type="button" class="btn theme" onclick="fn_regist_dwld_coupon_all();">모든 쿠폰 다운로드</button>
</div>
</c:if>
<c:choose>
<c:when test="${ not empty resultMapDwld.resultList && fn:length(resultMapDwld.resultList) > 0 }">
<div class="couponList">
<c:forEach items="${ resultMapDwld.resultList }" var="couponList" varStatus="status">
<div class="couponList__item">
<div class="couponList__left">
<input type="hidden" name="couponArray" value="<c:out value="${ couponList.couponInnb }"/>" />
<p class="couponList__subTitle">
<c:out value="${ couponList.cupnpkNm }"/>
</p>
<p class="couponList__title">
<c:out value="${ couponList.couponSndngNm }"/><br>
<span class="couponList__date"><c:out value="${ couponList.coupNm }"/></span>
</p>
<p class="couponList__date">
<c:choose>
<c:when test="${ 'Y' eq couponList.dwldPdLmttAt }">
<c:out value="${couponList.dwldBgnDt}" /> ~
<c:out value="${couponList.dwldEndDt}" />
<c:if test="${ 0 lt couponList.validpdDay }"><span class="couponList__dayLeft">(<c:out value="${ couponList.validpdDay }"/>일 남음)</span></c:if>
</c:when>
<c:otherwise>
제한없음
</c:otherwise>
</c:choose>
</p>
<button type="button"
class="btn sm gray2 couponList__checkBtn"
onclick="fn_open_modal_coupon_dtl('#modalDiv', '#coupon-info-pop', '<c:out value="/sopmal/mpage/bnef/selectDwldYCouponDtlInfoInqirePopup"/>', '<c:out value="${ couponList.couponInnb }"/>', '<c:out value="${ couponList.sopmalCd }"/>', '<c:out value="${ couponList.couponSndngInnb }"/>'); return false;"
>
조회
</button>
</div>
<div class="couponList__right">
<div class="couponList__image">
<c:choose>
<c:when test="${ couponList.sopmalCd eq 'NC' }">
<img src="/pc/images/쿠폰이미지01.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'CH' }">
<img src="/pc/images/쿠폰이미지02.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'TZ' }">
<img src="/pc/images/쿠폰이미지03.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'DT' }">
<img src="/pc/images/쿠폰이미지04.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'PL' }">
<img src="/pc/images/쿠폰이미지05.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'LF' }">
<img src="/pc/images/쿠폰이미지06.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'AF' }">
<img src="/pc/images/쿠폰이미지07.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'DL' }">
<img src="/pc/images/쿠폰이미지08.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'JM' }">
<img src="/pc/images/쿠폰이미지09.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'NB' }">
<img src="/pc/images/쿠폰이미지10.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
<c:when test="${ couponList.sopmalCd eq 'BD' }">
<img src="/pc/images/쿠폰이미지11.png" onerror="this.src='/pc/images/image_placeholder.png'" alt="">
</c:when>
</c:choose>
</div>
<button type="button" class="btn sm theme outline"
onclick="fn_regist_dwld_coupon(<c:out value="${ couponList.couponInnb }"/>,
'<c:out value="${ couponList.sopmalCd }"/>',
'<c:out value="${ couponList.couponSndngInnb }"/>',
'<c:out value="${ couponList.cupnpkInnb }"/>',
'<c:out value="${ couponList.cupnpkNm }"/>',
'<c:out value="${ couponList.cupnpkDc }"/>' );">
쿠폰 다운로드
</button>
</div>
</div>
</c:forEach>
</div>
<div class="pagination__container">
<ui:pagination paginationInfo="${resultMapDwld.paginationInfo}" type="image" jsFunction="fn_select_dwld_coupon" />
</div>
</c:when>
<c:otherwise>
<div class="couponList">
<div class="couponList__no-result">
<img src="<c:url value="/pc/images/icon__no-result.png"/>" alt="">
<p class="orderList__no-result-text">다운로드 가능한 쿠폰이 없습니다.</p>
</div>
</div>
</c:otherwise>
</c:choose>
</form>