145 lines
4.5 KiB
Plaintext
145 lines
4.5 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"
|
|
%><%@ include file="/common/taglib.jsp"
|
|
%><%
|
|
/**
|
|
* @Class Name : HmsBrdPostDetail.jsp
|
|
* @Description : HmsBrdPost Detail 화면
|
|
* @Modification Information
|
|
*
|
|
* @author 유병욱
|
|
* @since 2013-10-17
|
|
* @version 1.0
|
|
* @see
|
|
*
|
|
* Copyright (C) All right reserved.
|
|
*/
|
|
%><script type="text/javascript" src="/js/cms/hmsBrdPost.js"></script>
|
|
<div class="contents">
|
|
<form:form commandName="searchVO" id="detailForm" action="${searchVO.parentUrl}">
|
|
<form:hidden path="bmode" />
|
|
<form:hidden path="pageIndex" />
|
|
<form:hidden path="brdPostSeq" />
|
|
<form:hidden path="searchCondition" />
|
|
<form:hidden path="searchKeyword" />
|
|
<form:hidden path="searchCateSeq" />
|
|
<form:hidden path="pageUnit" />
|
|
|
|
<table class="tbl_basic_view">
|
|
<caption>상세</caption>
|
|
<colgroup>
|
|
<col style="width:15%">
|
|
<col style="width:35%">
|
|
<col style="width:15%">
|
|
<col style="width:*">
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">제목</th>
|
|
<td colspan="3" class="left">${hmsBrdPostVO.title}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">작성자</th>
|
|
<td colspan="3" class="left">${hmsBrdPostVO.userNm}</td>
|
|
</tr>
|
|
<c:if test="${!empty hmsBrdCateVO}">
|
|
<tr>
|
|
<th scope="row">카테고리</th>
|
|
<td colspan="3" class="left">${hmsBrdCateVO.cateNm}</td>
|
|
</tr>
|
|
</c:if>
|
|
<tr>
|
|
<th scope="row">작성일</th>
|
|
<td colspan="3" class="left">${hmsBrdPostVO.createDate}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">아이피</th>
|
|
<td colspan="3" class="left">${hmsBrdPostVO.ip}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">첨부파일</th>
|
|
<td colspan="3" class="left">
|
|
<c:import url="/common/fms/selectFileInfs.do" charEncoding="utf-8"
|
|
><c:param name="param_atchFileId" value="${hmsBrdPostVO.atchSeq}"
|
|
/></c:import>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">내용</th>
|
|
<td colspan="3" class="left">
|
|
<c:if test="${hmsBrdPostVO.editorFlag != 'Y'}"><edosiFmt:formatHtml value="${hmsBrdPostVO.contents}"/></c:if>
|
|
<c:if test="${hmsBrdPostVO.editorFlag == 'Y'}">${hmsBrdPostVO.contents}</c:if>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="mt10 tR">
|
|
<c:if test="${checkWriteAuth}">
|
|
<span class="btn_type_blue"><a href="#modify" onclick="return fn_egov_updateView();">수정</a></span>
|
|
<span class="btn_type_blue"><a href="#delete" onclick="return fn_egov_delete('${searchVO.parentUrl}');">삭제</a></span>
|
|
</c:if>
|
|
<c:if test="${hmsBrdMngVO.brdType == 'reply'}">
|
|
<span class="btn_type_blue"><a href="#reply" onclick="return fn_egov_replyView();">답글달기</a></span>
|
|
</c:if>
|
|
<span class="btn_type_gray"><a href="#list" onclick="return fn_egov_selectList();">목록</a></span>
|
|
</div>
|
|
</form:form>
|
|
|
|
<h3>댓글작성</h3>
|
|
<form:form commandName="commentVO" id="commentForm" action="${commentVO.parentUrl}">
|
|
<form:hidden path="brdPostSeq" />
|
|
<form:hidden path="brdReplySeq" />
|
|
<form:hidden path="brdMngSeq" />
|
|
<input type="hidden" name="bmode" />
|
|
|
|
<table class="tbl_basic_view">
|
|
<caption>상세</caption>
|
|
<colgroup>
|
|
<col style="width:15%">
|
|
<col style="width:35%">
|
|
<col style="width:15%">
|
|
<col style="width:*">
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">작성자</th>
|
|
<td colspan="3" class="left"> ${loginVO.name}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">작성자</th>
|
|
<td colspan="4" class="left"><form:textarea path="contents" rows="5" cssStyle="width:99%;" title="댓글내용" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="mt10 tR">
|
|
<span class="btn_type_blue"><a href="#comment" onclick="return fn_egov_comment_add(document.getElementById('commentForm'), '${commentVO.parentUrl}');">등록</a></span>
|
|
</div>
|
|
</form:form>
|
|
|
|
<h3>댓글목록</h3>
|
|
<table class="tbl_basic_view">
|
|
<caption>상세</caption>
|
|
<colgroup>
|
|
<col style="width:15%">
|
|
<col style="width:35%">
|
|
<col style="width:15%">
|
|
<col style="width:*">
|
|
</colgroup>
|
|
<tbody>
|
|
<c:forEach var="list" items="${commentList }">
|
|
<tr>
|
|
<th class="left" colspan="3">
|
|
등록자 : ${list.userNm } | 등록일시 :
|
|
<fmt:parseDate value="${list.createDate}" pattern="yyyy-MM-dd'T'HH:mm:ss" var="parsedCreateDate"/>
|
|
<fmt:formatDate value="${parsedCreateDate}" pattern="yyyy.MM.dd HH:mm"/>
|
|
<c:if test="${loginVO.name eq list.userNm }"> <a href="#" onclick="fn_egov_comment_delete('${list.brdReplySeq }', '${commentVO.parentUrl}');">[삭제]</a></c:if>
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="left" colspan="3"><edosiFmt:formatHtml value="${list.contents }"/></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div> |