|
|
|
|
@@ -0,0 +1,230 @@
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
|
|
<%@ page import="java.util.Date" %>
|
|
|
|
|
<%@ 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 : GoodsQnaBbscttListR.jsp
|
|
|
|
|
Description : 일반 게시글 목록 화면
|
|
|
|
|
Modification Information
|
|
|
|
|
|
|
|
|
|
수정일 수정자 수정내용
|
|
|
|
|
------- -------- ---------------------------
|
|
|
|
|
2023-12-08 김혜지 최초 생성
|
|
|
|
|
--%>
|
|
|
|
|
<section class="content-section">
|
|
|
|
|
<div class="form-control-container">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<div class="search-number">
|
|
|
|
|
<span class="search-number__text">총 <strong><fmt:formatNumber value="${resultMap.paginationInfo.totalRecordCount}" pattern="#,###"/></strong>건</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="center">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div class="select-box">
|
|
|
|
|
<select id="pageUnit" name="pageUnit" title="페이지당 출력될 목록건수" onchange="fn_select_bbsctt_list('1');">
|
|
|
|
|
<c:forEach items="${ resultMap.paginationInfo.pageUnitArr }" var="pageUnit" varStatus="pageUnitStatus">
|
|
|
|
|
<option value="<c:out value="${ pageUnit }"/>" <c:if test="${ resultMap.paginationInfo.recordCountPerPage eq pageUnit }">selected="selected"</c:if>><c:out value="${ pageUnit }"/>개씩</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<form id="listForm">
|
|
|
|
|
<hr class="horizontal-line">
|
|
|
|
|
<div class="form-control-container">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<button type="button" class="btn outline sm" onclick="fn_delete_bbsctt('', 'many');">선택 <spring:message code="button.delete"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="center">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr class="spacing">
|
|
|
|
|
<div class="table-wrapper">
|
|
|
|
|
<table class="table vertical">
|
|
|
|
|
<caption>해당 테이블에 대한 설명</caption>
|
|
|
|
|
<colgroup>
|
|
|
|
|
<col style="width: 3%;">
|
|
|
|
|
<col style="width: 3%;">
|
|
|
|
|
<col style="width: 7%;">
|
|
|
|
|
<col style="width: 7%;">
|
|
|
|
|
<col style="width: 5%;">
|
|
|
|
|
<col style="width: 18%;">
|
|
|
|
|
<col style="width: auto">
|
|
|
|
|
<col style="width: 5%">
|
|
|
|
|
<col style="width: 6%">
|
|
|
|
|
<col style="width: 4%">
|
|
|
|
|
<col style="width: 10%">
|
|
|
|
|
<col style="width: 5%">
|
|
|
|
|
</colgroup>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
<label class="b-checkbox checkbox is-medium check-all" >
|
|
|
|
|
<input type="checkbox" value="" id="listChkA">
|
|
|
|
|
<span class="check"></span>
|
|
|
|
|
</label>
|
|
|
|
|
</th>
|
|
|
|
|
<th>번호</th>
|
|
|
|
|
<th>작성자</th>
|
|
|
|
|
<th>IP</th>
|
|
|
|
|
<th>분류</th>
|
|
|
|
|
<th>주문번호</th>
|
|
|
|
|
<th>제목</th>
|
|
|
|
|
<th>답변상태</th>
|
|
|
|
|
<th>등록일</th>
|
|
|
|
|
<th>조회수</th>
|
|
|
|
|
<th>관리</th>
|
|
|
|
|
<th>삭제</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id ="contentSection">
|
|
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${ not empty resultMap.resultList.resultList }">
|
|
|
|
|
<c:forEach items="${ resultMap.resultList.resultList }" var="resultList" varStatus="status">
|
|
|
|
|
<tr <c:if test = "${empty resultList.answBbscttInnb}">class="sendOut-info__reseller"</c:if>>
|
|
|
|
|
<td>
|
|
|
|
|
<c:if test="${ resultList.useAt eq 'Y' }">
|
|
|
|
|
<label class="b-checkbox checkbox is-medium chkLabel">
|
|
|
|
|
<input type="checkbox" value="${ resultList.bbscttInnb }"
|
|
|
|
|
name="selectedBbscttRow" class='bbscttChk'>
|
|
|
|
|
<span class="check"></span>
|
|
|
|
|
</label>
|
|
|
|
|
</c:if>
|
|
|
|
|
<input type = "hidden" value = "<c:out value="${ resultList.goodsInnb}"/>">
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<c:out value="${resultMap.paginationInfo.totalRecordCount - resultList.rnum+1 }" />
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<c:choose>
|
|
|
|
|
<%--회원--%>
|
|
|
|
|
<c:when test="${resultList.regusrDvCd eq '01'}">
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="crmBtn"
|
|
|
|
|
data-info="info01"
|
|
|
|
|
onclick="fn_select_crm_mini_info(this,
|
|
|
|
|
'<c:out value='${resultList.regusr}'/>'
|
|
|
|
|
,'<c:out value='${resultList.mbrDvCd}'/>'
|
|
|
|
|
,'#modalDiv');">
|
|
|
|
|
<span class="gray-12">
|
|
|
|
|
<c:out value="${resultList.regusrNm}"/>
|
|
|
|
|
</span><br>
|
|
|
|
|
(<c:choose>
|
|
|
|
|
<c:when test="${resultList.joinMthCd eq 'kakao'}"><%--kakao--%>
|
|
|
|
|
<i class="icon icon_word-badge_kakao"></i>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:when test="${resultList.joinMthCd eq 'naver'}"><%--naver--%>
|
|
|
|
|
<i class="icon icon_word-badge_naver"></i>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:when test="${resultList.joinMthCd eq 'pos'}"><%--pos--%>
|
|
|
|
|
<i class="icon icon_word-badge_pos"></i>
|
|
|
|
|
<span class="fw-500 blue-7">
|
|
|
|
|
<c:out value="${resultList.regusrId}"/>
|
|
|
|
|
</span>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<span class="fw-500 blue-7"><c:out value="${resultList.regusrId}"/></span>
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>/
|
|
|
|
|
<span class="fw-500 green-8"><c:out value="${resultList.mbrGradNm}"/></span>)
|
|
|
|
|
</button>
|
|
|
|
|
</c:when>
|
|
|
|
|
<%--관리자--%>
|
|
|
|
|
<c:when test="${resultList.regusrDvCd eq '02'}">
|
|
|
|
|
<c:out value="${ resultList.mngrNm}"/>(<c:out value="${ resultList.maskingRegusrId}"/>)
|
|
|
|
|
</c:when>
|
|
|
|
|
<%--네이버페이--%>
|
|
|
|
|
<c:when test="${resultList.regusrDvCd eq '03'}">
|
|
|
|
|
naverpay
|
|
|
|
|
</c:when>
|
|
|
|
|
<%--비회원--%>
|
|
|
|
|
<c:when test="${resultList.regusrDvCd eq '99'}">
|
|
|
|
|
<c:out value="${resultList.maskingRegusrNm}"/>[비회원]
|
|
|
|
|
</c:when>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</td>
|
|
|
|
|
<td><c:out value="${ resultList.ip}" /></td>
|
|
|
|
|
<td><c:out value="${resultList.answCn}" /></td>
|
|
|
|
|
<td><a class="under-line moveDetil" onclick="fn_comm_go_ordr_dtl('<c:out value="${resultList.ordrInnb}" />');return false;"><c:out value="${resultList.ordrInnb}" /></a></td>
|
|
|
|
|
<td class="left">
|
|
|
|
|
<a class="under-line moveDetil"
|
|
|
|
|
bbsctt-innb = "<c:out value="${ resultList.bbscttInnb }"/>"
|
|
|
|
|
bbs-id ="<c:out value="${ resultList.bbsId }"/>"
|
|
|
|
|
regusr-dv = "02">
|
|
|
|
|
<c:choose>
|
|
|
|
|
<c:when test = "${resultList.useAt eq 'Y'}">
|
|
|
|
|
<c:out value="${ resultList.sj }"/>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<span class="stone-6">삭제된 게시글입니다.[<c:out value="${ resultList.updtDt}"/>]</span>
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</a>
|
|
|
|
|
<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-badge"></i>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${resultList.popularAt eq 'Y'}">
|
|
|
|
|
<i class="icon icon_hot-badge"></i>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${ resultList.secretBbscttAt eq 'Y' }">
|
|
|
|
|
<i class="icon icon_lock"></i>
|
|
|
|
|
</c:if>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<c:if test = "${not empty resultList.answBbscttInnb}">답변완료</c:if>
|
|
|
|
|
<c:if test = "${empty resultList.answBbscttInnb}">답변대기</c:if>
|
|
|
|
|
</td>
|
|
|
|
|
<td><c:out value="${ resultList.registDt }"/></td>
|
|
|
|
|
<td><fmt:formatNumber value="${resultList.inqireCnt}" pattern="#,##0"/></td>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="manage-btn-container">
|
|
|
|
|
<c:if test="${ resultList.useAt eq 'Y' && empty resultList.npayBbscttSnb}">
|
|
|
|
|
<button type ="button" class="btn xsm outline primary" onclick="fn_select_bbsctt_update_pop('<c:out value="${ resultList.bbscttInnb }"/>','<c:out value="${ resultList.bbsId }"/>','');"><spring:message code="button.update"/></button>
|
|
|
|
|
<c:if test = "${resultMap.bbsInfo.answRegist eq 'Y'}">
|
|
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${not empty resultList.answBbscttInnb}">
|
|
|
|
|
<button type ="button" class="btn xsm primary outline" onclick="fn_select_answ_update_pop('<c:out value="${ resultList.bbscttInnb }"/>', '<c:out value="${ resultList.answBbscttInnb}"/>','<c:out value="${ resultList.bbsId }"/>','');">답변 <spring:message code="button.update"/></button>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<button type ="button" class="btn xsm primary" onclick="fn_select_answ_regist_pop('<c:out value="${ resultList.bbscttInnb }"/>','<c:out value="${ resultList.bbsId }"/>','');">답변 <spring:message code="button.insert"/></button>
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:if>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<c:if test="${ resultList.useAt eq 'Y' && empty resultList.npayBbscttSnb}">
|
|
|
|
|
<div class="manage-btn-container">
|
|
|
|
|
<button class="btn xsm dark" type="button" onclick="fn_delete_bbsctt('<c:out value="${ resultList.bbscttInnb }"/>','','<c:out value="${ resultList.goodsInnb }"/>');"><spring:message code="button.delete"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="100%"><spring:message code="common.nodata"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</section>
|
|
|
|
|
<input type="hidden" id="pageIndex" name="pageIndex" value="<c:out value = '${resultMap.bbsctt.pageIndex}'/>"/>
|
|
|
|
|
<div class="pagination__container">
|
|
|
|
|
<ui:pagination paginationInfo="${resultMap.paginationInfo}" type="image" jsFunction="fn_select_bbsctt_list" />
|
|
|
|
|
</div>
|