Files
sake/src/main/webapp/WEB-INF/views/sopmal_m/csc/CscGalaryTyR.jsp
2025-10-29 17:08:05 +09:00

149 lines
8.6 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 : EvtListR.jsp
Description : 이벤트 목록
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-04-30 김혜인 최초 생성
--%>
<!DOCTYPE html>
<html lang="ko">
<c:set var = "bbscttVO" value = "${resultMap.bbsctt}"/>
<c:set var = "bbsInfo" value = "${resultMap.bbsInfo}"/>
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
<c:choose>
<c:when test="${ not empty resultMap.resultList.resultList }">
<c:set var="rnumAt" value="false"/>
<c:forEach var="resultList" items="${ resultMap.resultList.resultList}">
<div class="progressEvents__item item">
<a class="dtlBtn" style="cursor:pointer">
<input type="hidden" class="passwordAt" value="<c:if test = "${resultList.secretBbscttAt eq 'Y'}">Y</c:if>">
<input type="hidden" class="regusr" value="<c:out value="${ resultList.regusr}"/>">
<input type="hidden" class="bbscttInnb" value="<c:out value="${ resultList.bbscttInnb }"/>">
<div class="progressEvents__image">
<input type = "hidden" value = "<c:out value="${resultList.reprsntImgSysFilNm}"/>"/>
<img src="<c:out value ="${cdnurl}${resultList.reprsntImgSysFilNm}"/>"
onerror= "this.src='/mobile/images/image_placeholder.png'" alt="해당 이미지에 대한 설명">
</div>
<div class="progressEvents__text">
<h4 class="progressEvents__title">
<c:out value ="${resultList.sj}"/>
<c:if test="${resultList.isfiles eq 1}"><%--첨부파일여부--%>
<i class="icon icon_image-badge"></i>
</c:if>
<c:if test="${resultList.newAt eq 'Y'}"><%--새로운게시글여부--%>
<i class="icon icon_new-post"></i>
</c:if>
<c:if test="${resultList.popularAt eq 'Y'}"><%--인기게시글여부--%>
<i class="icon icon_hot-post"></i>
</c:if>
<c:if test="${ resultList.secretBbscttAt eq 'Y' }"><%--비밀글여부--%>
<i class="icon icon_lock"></i>
</c:if>
<c:if test="${resultList.cmtCnt > 0}"><%--댓글개수--%>
(<fmt:formatNumber value="${resultList.cmtCnt}" pattern="#,###"/>)
</c:if>
</h4>
<div class="progressEvents__bottom">
<p class="progressEvents__date">
</p>
</div>
</div>
<ul class="eventList__list">
<c:if test="${bbsInfo.answRegist eq 'Y'}">
<c:choose>
<c:when test="${not empty resultList.answBbscttInnb}">
<li>답변완료</li>
</c:when>
<c:otherwise>
<li>답변대기</li>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${bbsInfo.ntcDeYn eq 'Y'}">
<c:choose>
<c:when test="${resultList.ntcAt eq 'Y' && resultList.ntcPdSetupAt eq 'Y'}">
<li><c:out value="${ resultList.ntcBgnDe }"/> ~ <c:out value="${ resultList.ntcEndDe }"/></li>
</c:when>
<c:when test="${ resultList.ntcAt eq 'Y' && resultList.ntcPdSetupAt eq 'N'}">
<li>상시공지</li>
</c:when>
</c:choose>
</c:if>
<c:if test="${bbsInfo.inqireCntYn eq 'Y'}">
<li>조회수 : <fmt:formatNumber value="${resultList.inqireCnt}" pattern="#,###"/></li>
</c:if>
<c:if test="${bbsInfo.registDtYn eq 'Y'}">
<li><c:out value="${ resultList.sumRegistDt}"/></li>
</c:if>
<c:if test="${bbsInfo.regusrNmYn eq 'Y'}">
<li>
<c:choose>
<c:when test="${resultList.regusrDvCd eq '99'}">
<c:out value="${ resultList.maskingRegusrNm}"/>[비회원]
</c:when>
<c:when test="${resultList.regusrDvCd eq '03'&& not empty resultList.npayBbscttSnb}">
naverpay
</c:when>
<c:when test="${resultList.regusrDvCd eq '02'}">
<c:out value="${ resultList.mngrNm}"/>
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '01' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.regusrId}"/>
(<c:out value="${ resultList.mbrGradNm}"/>)
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '02' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.regusrId}"/>
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '03' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.maskingRegusrNm}"/>(<c:out
value="${ resultList.mbrGradNm}"/>)
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '04' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.maskingRegusrNm}"/>
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '05' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.maskingRegusrNm}"/>
(<c:out value="${ resultList.regusrId}"/>,<c:out
value="${ resultList.mbrGradNm}"/>)
</c:when>
<c:when test="${bbsInfo.wrterIndictTyCd eq '06' && resultList.regusrDvCd eq '01'}">
<c:out value="${ resultList.maskingRegusrNm}"/>(<c:out
value="${ resultList.regusrId}"/>)
</c:when>
</c:choose>
</li>
</c:if>
</ul>
</a>
</div>
<c:if test="${resultList.rnum > 0}">
<c:set var="rnumAt" value="true"/>
</c:if>
<c:if test="${not rnumAt}"><%--조회된 데이터 없을 시 데이터 없음 노출--%>
<div class="progressEvents__item item"><spring:message code="common.nodata"/></div>
</c:if>
</c:forEach>
</c:when>
<c:otherwise>
<div class="sub-box">
<div class="progressEvents">
<div class="noResult">
<div class="noResult__image">
<img src="/mobile/images/icon__no-result.png" alt="상품 이미지">
</div>
<spring:message code="common.nodata"/>
</div>
</div>
</div>
</c:otherwise>
</c:choose>
</html>