212 lines
7.8 KiB
Plaintext
212 lines
7.8 KiB
Plaintext
<%--
|
|
Class Name : EgovNoticeInqire.jsp
|
|
Description : (사용자)게시물 조회 화면
|
|
Modification Information
|
|
|
|
수정일 수정자 수정내용
|
|
---------- -------- ---------------------------
|
|
2009.03.23 이삼섭 최초 생성
|
|
2009.06.26 한성곤 2단계 기능 추가 (댓글관리, 만족도조사)
|
|
2011.08.31 JJY 경량환경 버전 생성
|
|
2013.05.23 이기하 상세보기 오류수정
|
|
|
|
author : 공통서비스 개발팀 이삼섭
|
|
since : 2009.03.23
|
|
--%>
|
|
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
|
<%@ 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"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
<%pageContext.setAttribute("crlf", "\r\n"); %>
|
|
<%pageContext.setAttribute("crlt", "<"); %>
|
|
<%pageContext.setAttribute("crgt", ">"); %>
|
|
<%
|
|
response.setHeader("Cache-Control","no-store");
|
|
response.setHeader("Pragma","no-cache");
|
|
response.setDateHeader("Expires",0);
|
|
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
|
|
%>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
});
|
|
var listPage = $(location).attr('href').split($(location).attr('host'))[1].split('Detail.do')[0]+'List.do'+"?bbsId=<c:out value='${brdMstrVO.bbsId}' />" ;
|
|
var listPage1 = $(location).attr('href').split($(location).attr('host'))[1].split('Detail.do')[0]+'List.do'
|
|
var detailPage = $(location).attr('href').split($(location).attr('host'))[1].split('?')[0] ;
|
|
function fn_egov_select_noticeList(pageNo) {
|
|
document.searchForm.mblDn.value = "";
|
|
//공통사용위해 detail > list로 변경
|
|
if(listPage.indexOf("contentBbsList.do") > 0){ //컨텐츠 bbs 페이지경우
|
|
listPage = "/web/content.do?proFn="+$('#menuNo').val();
|
|
location.href = listPage ;
|
|
return;
|
|
}
|
|
document.searchForm.action = listPage1;
|
|
document.searchForm.submit();
|
|
}
|
|
|
|
function fn_egov_select_detail(bbsId , nttId) { //이전/다음글 상세
|
|
if(listPage.indexOf("contentBbsList.do") > 0){ //컨텐츠 bbs 페이지경우
|
|
location.href=detailPage+"?bbsId="+bbsId + "&nttId="+nttId+"&menuNo="+$('#menuNo').val() ;
|
|
return
|
|
}
|
|
location.href=detailPage+"?bbsId="+bbsId + "&nttId="+nttId ;
|
|
}
|
|
|
|
function fn_egov_delete_notice() {
|
|
if (confirm('<spring:message code="common.delete.msg" />')) {
|
|
document.searchForm.action = "<c:url value='/web/cop/bbs/deleteBoardArticle.do'/>";
|
|
document.searchForm.submit();
|
|
}
|
|
}
|
|
|
|
function fn_egov_moveUpdt_notice(){
|
|
document.searchForm.action = "<c:url value='/web/cop/bbs/forUpdateBoardArticle.do'/>";
|
|
document.searchForm.method = "post";
|
|
document.searchForm.submit();
|
|
}
|
|
</script>
|
|
|
|
<!-- 댓글 작성 스크립트 -->
|
|
<c:if test="${brdMstrVO.addYn == 'Y'}">
|
|
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
|
|
<validator:javascript formName="articleComment" staticJavascript="false" xhtml="true" cdata="false" />
|
|
<script type="text/javascript">
|
|
// 댓글 등록
|
|
function fn_egov_insert_commentList() {
|
|
var form = document.getElementById("articleCommentVO");
|
|
if (!validateArticleComment(form)){
|
|
return;
|
|
}
|
|
if (confirm('<spring:message code="common.regist.msg" />')) {
|
|
form.submit();
|
|
}
|
|
}
|
|
|
|
// 댓글 수정
|
|
function fn_egov_updt_commentList() {
|
|
var form = document.getElementById("articleCommentVO");
|
|
if (!validateArticleComment(form)){
|
|
return;
|
|
}
|
|
|
|
if (confirm('<spring:message code="common.update.msg" />')) {
|
|
form.modified.value = "true";
|
|
form.action = "<c:url value='/web/cop/cmt/updateArticleComment.do'/>";
|
|
form.submit();
|
|
}
|
|
}
|
|
|
|
// 댓글 수정 화면
|
|
function fn_egov_selectCommentForupdt(commentNo) {
|
|
var form = document.getElementById("articleCommentVO");
|
|
//form.subPageIndex.value = pageNo;
|
|
form.commentNo.value = commentNo;
|
|
form.action = "<c:url value='/web/cop/bbsWeb/selectBoardArticle.do'/>";
|
|
form.submit();
|
|
}
|
|
|
|
// 댓글 삭제
|
|
function fn_egov_deleteCommentList(commentNo) {
|
|
var form = document.getElementById("articleCommentVO");
|
|
if (confirm('<spring:message code="common.delete.msg" />')) {
|
|
form.modified.value = "true";
|
|
form.commentNo.value = commentNo;
|
|
form.action = "<c:url value='/web/cop/cmt/deleteArticleComment.do'/>";
|
|
form.submit();
|
|
}
|
|
}
|
|
|
|
/* 댓글페이징 */
|
|
function fn_egov_select_commentList(pageNo) {
|
|
var form = document.getElementById("articleCommentVO");
|
|
// form.subPageIndex.value = pageNo;
|
|
form.commentNo.value = '';
|
|
form.action = "<c:url value='/${siteId}/web/cop/bbsWeb/selectBoardArticle.do'/>";
|
|
form.submit();
|
|
}
|
|
</script>
|
|
</c:if>
|
|
<!-- contents 영역 -->
|
|
<form:form commandName="searchForm" name="searchForm" method="post" action="<c:url value='/web/cop/bbsWeb/selectBoardList.do'/>">
|
|
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
|
|
<input name="searchCnd" type="hidden" value="<c:out value='${searchVO.searchCnd}'/>"/>
|
|
<input name="searchWrd" type="hidden" value="<c:out value='${searchVO.searchWrd}'/>"/>
|
|
<input name="password" type="hidden" value="<c:out value='${searchVO.password}'/>"/>
|
|
<input name="bbsId" type="hidden" value="<c:out value='${result.bbsId}'/>" />
|
|
<input name="nttId" type="hidden" value="<c:out value='${result.nttId}'/>" />
|
|
<input type="hidden" id= "mblDn" name="mblDn" value="<c:out value='${usrMblDn}' />"/>
|
|
<input type="hidden" id= "ntcrNm" name="ntcrNm" value=""/>
|
|
<input type="hidden" id= "menuNo" name="menuNo" value="<c:out value='${masterVO.menuNo}'/>" />
|
|
</form:form>
|
|
<!-- cont -->
|
|
<div class="sub_content">
|
|
|
|
<!-- page_location -->
|
|
<ul class="page_location">
|
|
<li><i class="icon home"></i></li>
|
|
<li>분쟁조정 안내</li>
|
|
<li>분쟁조정 안내</li>
|
|
<li>분쟁조정 관련 서식</li>
|
|
</ul>
|
|
<!-- //page_location -->
|
|
<h3 class="sub_con_tit"><c:out value="${brdMstrVO.bbsNm}"/></h3>
|
|
|
|
<div class="list_view">
|
|
<div class="list_view_wrap">
|
|
<h4 class="list_view_tit">
|
|
<c:out value="${result.nttSj}" />
|
|
</h4>
|
|
<ul class="view_info">
|
|
<li>
|
|
<p class="view_info_tit">· 작성일 : </p>
|
|
<i class="icon td_calendar"></i>
|
|
<c:out value="${result.frstRegisterPnttm}" />
|
|
</li>
|
|
<li>
|
|
<p class="view_info_tit">· 작성자 : </p>
|
|
<i class="icon td_writer"></i>
|
|
<c:out value="${result.ntcrNm}"/>
|
|
</li>
|
|
<li>
|
|
<p class="view_info_tit">· 조회수 : </p>
|
|
<i class="icon td_view"></i>
|
|
<c:out value="${result.inqireCo}" />
|
|
</li>
|
|
<li>
|
|
<p class="view_info_tit">· URL : </p>
|
|
<c:out value="${result.linkUrl}"/>
|
|
</li>
|
|
</ul>
|
|
<c:if test="${not empty result.atchFileId}">
|
|
<ul class="view_file_list">
|
|
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
|
|
<c:param name="param_atchFileId" value="${result.atchFileId}" />
|
|
<c:param name="pdf_view" value="Y" />
|
|
</c:import>
|
|
</ul>
|
|
</c:if>
|
|
<div class="view_content">
|
|
<c:out value="${fn:replace(fn:replace(fn:replace(result.nttCn, crlt , '<'), crgt , '>'), crlf , '<br/>')}" escapeXml="false"/>
|
|
</div>
|
|
|
|
<div class="btn_wrap right">
|
|
<button type="button" class="btn btn_text btn_40 gray_fill" onclick="javascript:fn_egov_select_noticeList(); return false;">목록</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 댓글 -->
|
|
<c:if test="${brdMstrVO.addYn == 'Y'}">
|
|
<c:import url="/web/cop/cmt/selectArticleCommentList.do" charEncoding="utf-8">
|
|
<c:param name="siteId" value="${brdMstrVO.siteId}" />
|
|
</c:import>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
<!-- //cont -->
|