163 lines
6.7 KiB
Plaintext
163 lines
6.7 KiB
Plaintext
<%
|
|
/**
|
|
* <pre>
|
|
* @Class Name : selectAncmntArticle.jsp
|
|
*
|
|
* @Description : 공지사항 상세내용을 조회한다.
|
|
*
|
|
*
|
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
*
|
|
* </pre>
|
|
*
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 수정일 수정자 수정내용
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 2021. 9. 14. KNKIM 최초 생성
|
|
*
|
|
*
|
|
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
* @since 2021. 9. 14.
|
|
* @version 1.0
|
|
*
|
|
*/
|
|
%>
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
|
|
<c:set var="pageTitle">공지사항 - 상세조회</c:set>
|
|
|
|
<script>
|
|
|
|
$( document ).ready(function() {
|
|
fn_setPageTitle("<c:out value='${pageTitle}'/>");
|
|
|
|
if(!gfn_isEmpty("<c:out value='${message}'/>")) {
|
|
alert("<c:out value='${message}'/>");
|
|
}
|
|
});
|
|
|
|
// 목록으로 이동
|
|
function fn_list() {
|
|
$("#articleForm").submit();
|
|
}
|
|
|
|
|
|
// 파일 다운로드
|
|
function fn_downloadFile(attachFileId, fileSn) {
|
|
|
|
if(attachFileId == null || attachFileId.trim().length < 1) {
|
|
alert("파일정보를 확인해 주시기 바랍니다.[1]");
|
|
return;
|
|
}
|
|
|
|
if(fileSn == null) {
|
|
alert("파일정보를 확인해 주시기 바랍니다.[3]");
|
|
return;
|
|
}
|
|
|
|
$("#attachFileId").val(attachFileId);
|
|
$("#fileSn").val(fileSn);
|
|
|
|
$("#downloadFileForm").submit();
|
|
|
|
}
|
|
</script>
|
|
|
|
|
|
<!-- 공지사항 보기 섹션 -->
|
|
<div class="location noti-data">
|
|
<h2 class="blind">공지사항 보기 섹션영역</h2>
|
|
<div class="inner">
|
|
<div class="row-top">
|
|
<div class="location-box">
|
|
<ul class="loc">
|
|
<li>HOME</li>
|
|
<li>고객지원</li>
|
|
<li class="on"><c:out value='${pageTitle }'/></li>
|
|
</ul>
|
|
<div class="tit">
|
|
<h2><span><c:out value='${pageTitle }'/></span></h2>
|
|
</div>
|
|
</div>
|
|
<div class="arr"><img src="/images/icon/icon-join-arr2.png" alt=""></div>
|
|
</div>
|
|
<div class="contents row-bottom">
|
|
|
|
<div class="community notice">
|
|
<div class="contents-frame inner-center">
|
|
<div class="view-notice">
|
|
<div class="view-tit">
|
|
<h2><span class="type"><c:if test='${article.notiYn == "Y"}'><span>공지</span></c:if></span><c:out value='${article.title}'/>
|
|
</h2>
|
|
<span class="v-info">
|
|
<em><c:out value='${article.regNm }'/></em>
|
|
<em><c:out value='${article.regDd }'/></em>
|
|
</span>
|
|
</div>
|
|
|
|
|
|
<c:if test="${article.attachFileCnt > 0}">
|
|
<div class="file-box">
|
|
<%
|
|
// 파일정보 : 저장파일ID=원파일명
|
|
%>
|
|
<c:forEach var="attachFile" items="${article.attachFiles }">
|
|
<div class="file-list">
|
|
<span><img src="/images/icon/icon-file.png" alt="파일 아이콘"></span>
|
|
<span><button type="button" onclick="fn_downloadFile('${attachFile.attachFileId}', ${attachFile.fileSn})">${attachFile.orignlFileNm}, ${attachFile.fileSize} byte(s)</button></span>
|
|
<span><button type="button" onclick="fn_downloadFile('${attachFile.attachFileId}', ${attachFile.fileSn})">다운로드</button></span>
|
|
</div>
|
|
</c:forEach>
|
|
</div>
|
|
</c:if>
|
|
|
|
<div class="view-body">
|
|
<div class="view-con">
|
|
<div class="view-txt">
|
|
<c:out value='${article.content}'/>
|
|
</div>
|
|
</div>
|
|
<ul class="attachments">
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="btn-box">
|
|
<a href="javascript:void(0)" class="btn btn-black" onclick="fn_list()">목록보기</a>
|
|
</div>
|
|
</div>
|
|
</div><!-- //contents-frame -->
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<form name="articleForm" id="articleForm"
|
|
action="${pageContext.request.contextPath}/bbs/listAncmnts.do"
|
|
method="post">
|
|
<input type="hidden" name="pageIndex" id="pageIndex" title="페이지번호" value="<c:out value='${searchArticle.pageIndex}'/>" />
|
|
<input type="hidden" name="pageSize" id="pageSize" title="목록에 보여줄 글개수" value="<c:out value='${searchArticle.pageSize}'/>" />
|
|
<input type="hidden" name="searchType" id="searchType" title="검색구분" value="<c:out value='${searchArticle.searchType}'/>" />
|
|
<input type="hidden" name="searchKeyword" id="searchKeyword" title="검색어" value="<c:out value='${searchArticle.searchKeyword}'/>" />
|
|
<input type="hidden" name="articleId" id="articleId" title="선택글번호" value="<c:out value='${searchArticle.articleId}'/>" />
|
|
</form>
|
|
|
|
<!-- 첨부파일 다운로드용 폼 -->
|
|
<form name="downloadFileForm" id="downloadFileForm"
|
|
action="${pageContext.request.contextPath}/fileupload/downloadAttachFile.do"
|
|
method="post">
|
|
<input type="hidden" name="bdType" id="bdType" value="ANCMNT" />
|
|
<input type="hidden" name="attachFileId" id="attachFileId" value="" />
|
|
<input type="hidden" name="streFileNm" id="streFileNm" value="" />
|
|
<input type="hidden" name="fileSn" id="fileSn" value="" />
|
|
<input type="hidden" name="orignlFileNm" id="orignlFileNm" value="" />
|
|
|
|
</form> |