Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
15c8bbc80e
@ -17,6 +17,9 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import nlib.bbs.service.ArticleVO;
|
||||
import nlib.bbs.service.BoardService;
|
||||
import nlib.bbs.service.QnaService;
|
||||
import nlib.cmm.NlibCommonController;
|
||||
import nlib.cmm.service.CodeService;
|
||||
import nlib.cmm.service.MainService;
|
||||
@ -65,6 +68,12 @@ public class MainController extends NlibCommonController {
|
||||
@Resource(name = "mainService")
|
||||
private MainService mainService;
|
||||
|
||||
@Resource(name = "ancmntService")
|
||||
private BoardService ancmntService;
|
||||
|
||||
@Resource(name = "qnaService")
|
||||
private QnaService qnaService;
|
||||
|
||||
@RequestMapping( {"/index.do"} )
|
||||
public String setContent(
|
||||
HttpServletRequest request,
|
||||
@ -78,6 +87,10 @@ public class MainController extends NlibCommonController {
|
||||
|
||||
String mngOrgCd = getCurCouncilCd(request);
|
||||
|
||||
//------------------------------------------------
|
||||
// 추천 자료 관련
|
||||
//------------------------------------------------
|
||||
|
||||
// 추천키워드
|
||||
List<Map<String, String>> listKeywords = mainService.listKeywords(mngOrgCd);
|
||||
model.addAttribute("listKeywords", listKeywords);
|
||||
@ -107,10 +120,27 @@ public class MainController extends NlibCommonController {
|
||||
model.addAttribute("listPops", listPops);
|
||||
model.addAttribute("listTypeDivCodes", listTypeDivCodes);
|
||||
|
||||
|
||||
// 온라인자료관
|
||||
model.addAttribute("listOnline", mainService.listOnline(mngOrgCd));
|
||||
|
||||
//------------------------------------------------
|
||||
// 게시판관련
|
||||
//------------------------------------------------
|
||||
ArticleVO searchArticleVO = new ArticleVO();
|
||||
searchArticleVO.setPageIndex(1);
|
||||
searchArticleVO.setPageSize(3);
|
||||
searchArticleVO.setMngOrgCd(getCurCouncilCd(request));
|
||||
|
||||
// 공지사항
|
||||
List<ArticleVO> listAncmnt = ancmntService.listArticles(searchArticleVO);
|
||||
model.addAttribute("listAncmnt", listAncmnt);
|
||||
|
||||
// Q&A
|
||||
String mbInfoId = getMbInfoId(request);
|
||||
searchArticleVO.setLoginedMbInfoId(mbInfoId);
|
||||
List<ArticleVO> listQna = qnaService.listArticles(searchArticleVO);
|
||||
model.addAttribute("listQna", listQna);
|
||||
|
||||
return "nlib/cmm/home";
|
||||
}
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ public interface ReadService {
|
||||
* @param mngOrgCd
|
||||
* @return
|
||||
*/
|
||||
public List<CollectionVO> insertReadItems(List<CollectionVO> list, String mbInfoId, CollectionVO readVO) throws Exception;
|
||||
public List<CollectionVO> insertReadItems(List<CollectionVO> list, String mbInfoId, CollectionVO readVO, boolean fromCart) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -27,6 +27,9 @@ public class ReadServiceImpl implements ReadService {
|
||||
@Resource(name="readDAO")
|
||||
private ReadDAO readDAO;
|
||||
|
||||
@Resource(name="cartDAO")
|
||||
private CartDAO cartDAO;
|
||||
|
||||
@Resource(name="informService")
|
||||
private InformService informService;
|
||||
|
||||
@ -53,7 +56,7 @@ public class ReadServiceImpl implements ReadService {
|
||||
* @param mngOrgCd
|
||||
* @return
|
||||
*/
|
||||
public List<CollectionVO> insertReadItems(List<CollectionVO> list, String mbInfoId, CollectionVO readVO) throws Exception {
|
||||
public List<CollectionVO> insertReadItems(List<CollectionVO> list, String mbInfoId, CollectionVO readVO, boolean fromCart) throws Exception {
|
||||
|
||||
if(list == null || list.size() < 1) {
|
||||
log.error("insertReadItems > 열람 신청 대상 목록이 없습니다.");
|
||||
@ -130,9 +133,26 @@ public class ReadServiceImpl implements ReadService {
|
||||
|
||||
reqVO.putInfoItem("jsonMasterId", jsonMasterId);
|
||||
resVO = dataApi.request(reqVO);
|
||||
CollectionVO rVO = null;
|
||||
cVO.setResult(resVO.getResultCode(), resVO.getResultMessage());
|
||||
|
||||
// 카트에서 신청하여 성공한 경우, 카트 처리완료 변경 작업
|
||||
if(resVO != null && resVO.getResultCode() != null && resVO.getResultCode().startsWith("S") && fromCart) {
|
||||
CollectionVO vVO = null;
|
||||
for(int i=0; i<list.size(); i++) {
|
||||
vVO = list.get(i);
|
||||
if(StringUtil.isEmpty(vVO.getMasterId())) continue;
|
||||
|
||||
// 카트에서의 처리 여부 업데이트
|
||||
if(fromCart) {
|
||||
vVO.setMbInfoId(mbInfoId);
|
||||
vVO.setCartProcDivCd("V"); // 방문열람신청완료
|
||||
vVO.setModId(mbInfoId);
|
||||
int retUpdateProc = cartDAO.changeCartProcDivCd(vVO);
|
||||
log.debug("insertReadItems > changeCartProcDivCd=" + retUpdateProc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
readVO.setResultCode(resVO.getResultCode());
|
||||
readVO.setResultMessage(resVO.getResultMessage());
|
||||
|
||||
@ -140,8 +160,8 @@ public class ReadServiceImpl implements ReadService {
|
||||
if(StringUtil.startsWithIgnoreCase(resVO.getResultCode(), "S")) {
|
||||
readVO.setHopeReqPridDtmFrom(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmFrom", ""),""));
|
||||
readVO.setHopeReqPridDtmTo(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmTo", ""),""));
|
||||
readVO.setRsrvId(resVO.getInfoItem("reqId", "")); // 열람신청번호
|
||||
readVO.setRsrvId(resVO.getInfoItem("reqDd", "")); // 열람신청일자
|
||||
readVO.setReqId(resVO.getInfoItem("reqId", "")); // 열람신청번호
|
||||
readVO.setReqDd(resVO.getInfoItem("reqDd", "")); // 열람신청일자
|
||||
readVO.setSelItems(resVO.getInfoItem("masterId")); // 자료번호
|
||||
} else {
|
||||
readVO.setRsrvId(null); // 열람신청번호
|
||||
|
||||
@ -149,7 +149,7 @@ public class ReadController extends NlibCommonController {
|
||||
|
||||
List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems);
|
||||
|
||||
list = readService.insertReadItems(list, mbInfoId, readVO);
|
||||
list = readService.insertReadItems(list, mbInfoId, readVO, fromCart);
|
||||
list = collectionService.setDetailInfoForList(list, mbInfoId, NlibProperty.getString("thumbnail.image.url.small"));
|
||||
|
||||
model.addAttribute("readVO", readVO);
|
||||
@ -267,15 +267,15 @@ public class ReadController extends NlibCommonController {
|
||||
resultMessage = "로그인하신 후, 이용바랍니다.";
|
||||
}
|
||||
|
||||
if(StringUtil.isEmpty(searchVO.getMngOrgCd())) {
|
||||
if(resultMessage != null && StringUtil.isEmpty(searchVO.getMngOrgCd())) {
|
||||
resultMessage = "문화원정보가 부적합합니다. 다시 요청하여 주시기 바랍니다.";
|
||||
}
|
||||
|
||||
if(StringUtil.isEmpty(searchVO.getReqId())) {
|
||||
if(resultMessage != null && StringUtil.isEmpty(searchVO.getReqId())) {
|
||||
resultMessage = "취소할 방문열람신청번호 정보가 부적합합니다. 다시 요청하여 주시기 바랍니다.";
|
||||
}
|
||||
|
||||
if(StringUtil.isEmpty(searchVO.getMasterId())) {
|
||||
if(resultMessage != null && StringUtil.isEmpty(searchVO.getMasterId())) {
|
||||
resultMessage = "취소할 자료정보 정보가 부적합합니다. 다시 요청하여 주시기 바랍니다.";
|
||||
}
|
||||
|
||||
|
||||
@ -273,11 +273,9 @@ public class StringUtil extends StringUtils {
|
||||
if(isEmpty(dateStr)) return defaultStr;
|
||||
|
||||
String tmpDateStr = dateStr.trim();
|
||||
switch(tmpDateStr.length()) {
|
||||
case 4 : return dateStr; // 연도만 있는 경우
|
||||
case 6 : return tmpDateStr.substring(0, 4) + "-" + tmpDateStr.substring(4); // YYYY-MM
|
||||
case 8 : return tmpDateStr.substring(0, 4) + "-" + tmpDateStr.substring(4, 6) + "-" + tmpDateStr.substring(6); // YYYY-MM-DD
|
||||
}
|
||||
if(4 <= tmpDateStr.length() && tmpDateStr.length() < 6) return tmpDateStr.substring(0, 4); // 연도만 있는 경우
|
||||
else if(6 <= tmpDateStr.length() && tmpDateStr.length() < 8) return tmpDateStr.substring(0, 4) + "-" + tmpDateStr.substring(4, 6); // YYYY-MM
|
||||
else if(8 <= tmpDateStr.length()) return tmpDateStr.substring(0, 4) + "-" + tmpDateStr.substring(4, 6) + "-" + tmpDateStr.substring(6, 8); // YYYY-MM-DD
|
||||
|
||||
return defaultStr;
|
||||
}
|
||||
|
||||
@ -21,7 +21,6 @@
|
||||
AND RM.REG_STATUS = 'REG_OK'
|
||||
AND RM.USE_FLAG = 'Y'
|
||||
AND RM.OPER_READ_RANGE_CD IN ('01','02')
|
||||
AND IFNULL(RM.BOOKCASE_ID, '') != '' /* 서가배치자료 */
|
||||
) T
|
||||
GROUP BY T.KEY_NAME
|
||||
ORDER BY CNT DESC, T.KEY_NAME
|
||||
@ -137,32 +136,28 @@
|
||||
, M.DTLS_TYPE_DIV_CD
|
||||
, C2.S_CODE_NM DTLS_TYPE_DIV_NM
|
||||
, M.SUBJECT_CODE
|
||||
, CONCAT(
|
||||
NVL((
|
||||
SELECT CONCAT(CLSF_NM, ' > ')
|
||||
, ( SELECT CLSF_NM
|
||||
FROM CT_CLSF
|
||||
WHERE CLSF_ID = (
|
||||
SELECT UP_CLSF_ID FROM CT_CLSF
|
||||
WHERE CLSF_ID = CAST(M.SUBJECT_CODE AS CHAR(35)) )
|
||||
AND UP_CLSF_ID = '2') , '')
|
||||
, (SELECT CLSF_NM FROM CT_CLSF WHERE CLSF_ID = CAST(M.SUBJECT_CODE AS CHAR(35)))
|
||||
) AS SUBJECT_NM
|
||||
AND UP_CLSF_ID = '2') AS SUBJECT_NM_UP
|
||||
, (SELECT CLSF_NM FROM CT_CLSF WHERE CLSF_ID = CAST(M.SUBJECT_CODE AS CHAR(35))) AS SUBJECT_NM
|
||||
, M.MOD_DD
|
||||
, M.ORG_NM
|
||||
, M.CREAT_YYYY
|
||||
, M.RPRS_THUMB_URL
|
||||
, IFNULL(M.M_INTERFACE_ID, IFNULL(M.INTERFACE_ID, '')) AS INTERFACE_ID
|
||||
, IFNULL(M.M_INTERFACE_ID, '') AS INTERFACE_ID
|
||||
FROM RG_MASTER M
|
||||
LEFT OUTER JOIN SM_CODE_S C1 ON M.TYPE_DIV_CD = C1.S_CODE_ID AND C1.L_CODE_ID = 'MASTER_TYPE_DIV_CD'
|
||||
LEFT OUTER JOIN SM_CODE_S C2 ON M.DTLS_TYPE_DIV_CD = C2.S_CODE_ID AND C2.L_CODE_ID = 'DTLS_TYPE_DIV_CD'
|
||||
WHERE M.MNG_ORG_CD = #{mngOrgCd}
|
||||
AND M.OPEN_DIV_CD = '1' /* 공개구분 : 공개 */
|
||||
AND M.REG_STATUS = 'REG_OK' /* 등록상태 : 등록완료 */
|
||||
/* AND M.REG_STATUS = 'REG_OK' -- DDDDDDDDDDDDDDDDD 확인데이터 없어서 임시 주석 막음 */ /* 등록상태 : 등록완료 */
|
||||
AND M.USE_FLAG = 'Y'
|
||||
AND IFNULL(M.PE_STATUS, '') = '' /* 보존상태 */
|
||||
AND M.DIGITAL_READ_YN = 'Y' /* 디지탈열람여부 */
|
||||
/* AND IFNULL(M.RPRS_THUMB_URL, '') != '' */ /* 썸네일존재하는 건 */
|
||||
AND IFNULL(M.M_INTERFACE_ID, IFNULL(M.INTERFACE_ID, '')) != ''/* IF존재하는 건 */
|
||||
AND IFNULL(M.M_INTERFACE_ID, '') != ''/* IF존재하는 건 */
|
||||
ORDER BY M.MOD_DD DESC
|
||||
LIMIT 10
|
||||
]]>
|
||||
|
||||
@ -57,6 +57,7 @@
|
||||
WHERE MB_INFO_ID = #{mbInfoId}
|
||||
AND MASTER_ID = #{masterId}
|
||||
AND DELETE_YN = 'N'
|
||||
AND IFNULL(A.CART_PROC_DIV_CD, 'N') = 'N'
|
||||
</select>
|
||||
|
||||
<insert id="insertCartItem" parameterType="CollectionVO">
|
||||
|
||||
@ -85,9 +85,9 @@ list.paging.page.size = 10
|
||||
#----------------------------------------
|
||||
# \ucca8\ubd80\ud30c\uc77c \ucd5c\uc0c1\uc704 \uc704\uce58
|
||||
# \ub85c\uceec LLLLLLLLLLLLLLL
|
||||
fileupload.base.path = C:/iams/workspace/nlib/data/fileupload
|
||||
#fileupload.base.path = C:/iams/workspace/nlib/data/fileupload
|
||||
# \uac1c\ubc1c\uc11c\ubc84
|
||||
#fileupload.base.path = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/data/fileupload
|
||||
fileupload.base.path = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/data/fileupload
|
||||
|
||||
# \uc784\uc2dc \uc800\uc7a5 \uc704\uce58
|
||||
fileupload.temp.subpath = /temp
|
||||
@ -98,13 +98,13 @@ fileupload.bbs.ancmnt.subpath = /bbs/ancmnt
|
||||
|
||||
# \uba54\uc77c \uacbd\ub85c
|
||||
# \ub85c\uceec LLLLLLLLLLLLLLL
|
||||
mailing.sender.membership.signUpTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/signUp_mail_template.html
|
||||
mailing.sender.membership.pwdTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/pwd_mail_template.html
|
||||
mailing.sender.membership.certTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/cert_mail_template.html
|
||||
#mailing.sender.membership.signUpTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/signUp_mail_template.html
|
||||
#mailing.sender.membership.pwdTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/pwd_mail_template.html
|
||||
#mailing.sender.membership.certTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/cert_mail_template.html
|
||||
# \uac1c\ubc1c\uc11c\ubc84
|
||||
#mailing.sender.membership.signUpTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/signUp_mail_template.html
|
||||
#mailing.sender.membership.pwdTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/pwd_mail_template.html
|
||||
#mailing.sender.membership.certTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/cert_mail_template.html
|
||||
mailing.sender.membership.signUpTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/signUp_mail_template.html
|
||||
mailing.sender.membership.pwdTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/pwd_mail_template.html
|
||||
mailing.sender.membership.certTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/cert_mail_template.html
|
||||
|
||||
#\uba54\uc77c \uc774\ubbf8\uc9c0 \uacbd\ub85c
|
||||
# \ub85c\uceec
|
||||
|
||||
@ -1,83 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : getSampleInfo.jsp
|
||||
*
|
||||
* @Description : RESTful API 호출 샘플
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 6. 15.
|
||||
* @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">QRCode 회원정보</c:set>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<!-- W2UI -->
|
||||
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/w2ui/w2ui-nlib.css" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/js/w2ui/w2ui-1.5.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- javascript warning tag -->
|
||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
||||
<form:form commandName="reqInfo"
|
||||
action="${pageContext.request.contextPath}/sample/barcode/getMemberQRCode.do" method="post"
|
||||
target="_blank"
|
||||
onSubmit="fncAuthorInsert(document.forms[0]); return false;">
|
||||
|
||||
<div id="grid" style="width: 100%; height: 250px;"></div>
|
||||
|
||||
</form:form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(function () {
|
||||
$('#grid').w2grid({
|
||||
name: 'grid',
|
||||
header: 'List of Names',
|
||||
columns: [
|
||||
{ field: 'fname', text: '이름', size: '30%' },
|
||||
{ field: 'lname', text: '성명', size: '30%' },
|
||||
{ field: 'email', text: '이메일', size: '40%' },
|
||||
{ field: 'sdate', text: '시작일자', size: '120px' }
|
||||
],
|
||||
records: [
|
||||
{ recid: 1, fname: "Peter", lname: "Jeremia", email: 'peter@mail.com', sdate: '2/1/2010' },
|
||||
{ recid: 2, fname: "Bruce", lname: "Wilkerson", email: 'bruce@mail.com', sdate: '6/1/2010' },
|
||||
{ recid: 3, fname: "John", lname: "McAlister", email: 'john@mail.com', sdate: '1/16/2010' },
|
||||
{ recid: 4, fname: "Ravi", lname: "Zacharies", email: 'ravi@mail.com', sdate: '3/13/2007' },
|
||||
{ recid: 5, fname: "William", lname: "Dembski", email: 'will@mail.com', sdate: '9/30/2011' },
|
||||
{ recid: 6, fname: "David", lname: "Peterson", email: 'david@mail.com', sdate: '4/5/2010' }
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,207 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : insertQnAForm.jsp
|
||||
*
|
||||
* @Description : 묻고답하기 등록화면을 표출한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 7. 13. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 7. 13.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<!-- File Upload : 시작 -->
|
||||
<link rel="stylesheet" href="${pageContext.request.contextPath}/js/fileupload/dropzone.css" />
|
||||
<link rel="stylesheet" href="${pageContext.request.contextPath}/js/fileupload/style.css" />
|
||||
<script src="${pageContext.request.contextPath}/js/fileupload/dropzone.js"></script>
|
||||
<!-- File Upload : 종료 -->
|
||||
|
||||
<script type="text/javaScript">
|
||||
var myDropzone = null; <% // 파일드롭다운 객체 %>
|
||||
var fileList = new Array(); <% // 업로드된 파일 정보 %>
|
||||
var IN_PROC = false; <% // 현재 상태가 업로드처리중에 있는지 여부 %>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
// 파일업로드 객체 생성
|
||||
myDropzone = new Dropzone("form#myDropzone", { url: "${pageContext.request.contextPath}/fileupload/uploadFilesAjax.do?subPathKey=fileupload.bbs.qna.subpath"});
|
||||
|
||||
// 각 파일별 업로드 성공시 호출됨 (1th called)
|
||||
myDropzone.on("success", function(file, responseText) {
|
||||
var jobj = JSON.parse(responseText);
|
||||
console.log("file upload success : responseText = " + responseText);
|
||||
console.log("fileUpDone count : " + fileList.length);
|
||||
var idx = fileList.length;
|
||||
fileList[idx] = {
|
||||
"orignlFileNm" : jobj[0].orignlFileNm,
|
||||
"streFileNm" : jobj[0].streFileNm,
|
||||
"fileMg" : jobj[0].fileMg,
|
||||
};
|
||||
console.log("success : " + file.name + " -> " + "data > " + jobj[0].streFileNm);
|
||||
//alert("file : status " + file.status);
|
||||
});
|
||||
|
||||
// 각 파일별 업로드 처리 완료 시 호출됨 (2th called)
|
||||
myDropzone.on("complete", function(file) {
|
||||
console.log("개별 파일 처리 완료 > file = " + JSON.stringify(file));
|
||||
});
|
||||
|
||||
// 모든 업로드 처리 완료 시 호출됨
|
||||
myDropzone.on("queuecomplete", function() {
|
||||
var targetCnt = this.getAcceptedFiles().length;
|
||||
var uploadCnt = fileList.length;
|
||||
|
||||
if(uploadCnt > 0) {
|
||||
$("#fileList").val(JSON.stringify(JSON.stringify(fileList)));
|
||||
}
|
||||
if(IN_PROC) {
|
||||
if(targetCnt > 0 && targetCnt != uploadCnt) {
|
||||
alert("총 " + targetCnt + "건의 첨부파일 중 " + uploadCnt + "건이 정상적으로 업로드 되었습니다. 게시물 등록을 계속 진행합니다.");
|
||||
}
|
||||
|
||||
fn_insertSubmit();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// 목록으로 이동
|
||||
function fn_list() {
|
||||
$('#articleForm').removeAttr('onsubmit');
|
||||
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/listQnAs.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 등록 처리
|
||||
function fn_insert() {
|
||||
if(!validEmail($("#email").val())) {
|
||||
alert("이메일 형식에 맞지 않습니다. 다시 확인하여 주시기 바랍니다.");
|
||||
$("#email").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/insertQnA.do");
|
||||
if(!confirm("저장하시겠습니까?")) return false;
|
||||
|
||||
IN_PROC = true;
|
||||
|
||||
// 파일 업로드 처리
|
||||
if(myDropzone.getAcceptedFiles().length > 0) {
|
||||
myDropzone.processQueue();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//등록 처리
|
||||
function fn_insertSubmit() {
|
||||
$('#articleForm').removeAttr('onsubmit');
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/insertQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : <span style="color:red;">${message }</span>
|
||||
<br />
|
||||
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/insertQnA.do"
|
||||
method="post"
|
||||
onsubmit="return fn_insert();">
|
||||
|
||||
<!-- HIDDEN 영역 : 시작 -->
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex}" readonly />
|
||||
<input type="text" name="pageSize" id="pageSize" title="목록에 보여줄 글 개수" value="${pageSize}" readonly />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword}" readonly />
|
||||
|
||||
<input type="text" name="fileList" id="fileList" title="업로드파일목록" value="" readonly />
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<table class="table_content" style="width:100% !important;">
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td><input type="text" name="title" id="title" title="제목" value="${title}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>작성자</th>
|
||||
<td><input type="text" name="regUserName" id="regUserName" title="작성자" value="${regUserName}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호</th>
|
||||
<td><input type="text" name="articlePassword" id="articlePassword" title="비밀번호" value="${articlePassword}" size="100" maxlength="200" required /><br/>
|
||||
* 비밀번호 : SHA-256 암호화 처리 후, DB에 저장되며, 웹 화면에 표출될 때는 Aria로 AuthKey를 Salt값으로 하여 재암호화처리하고 BASE64로 다시한번 인코딩하여 표출함
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" name="email" id="email" title="이메일" value="${email}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>질문내용</th>
|
||||
<td><textarea name="contentQeust" id="contentQeust" cols="80" rows="10" required >${contentQeust}</textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<input type="button" name="btnCancel" id="btnCancel" title="취소버튼" class="float" value="취소"
|
||||
onclick="fn_list()" />
|
||||
<input type="submit" name="btnSave" id="btnSave" title="저장버튼" class="float" value="저장" />
|
||||
|
||||
</form>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<div id="dropzone">
|
||||
<form id="myDropzone" name="myDropzone"
|
||||
action="${pageContext.request.contextPath}/fileupload/uploadFile.do"
|
||||
class="dropzone needsclick" >
|
||||
<div class="dz-message needsclick">
|
||||
<button type="button" class="dz-button">Drop files here or click to select files.</button><br />
|
||||
<span class="note needsclick">이곳에 파일을 끌어다 놓거나, 클릭하여 올릴 파일을 선택하세요.</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,253 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : listFAQs.jsp
|
||||
*
|
||||
* @Description : FAQ 목록 화면
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 8. 3. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 8. 3.
|
||||
* @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">FAQ</c:set>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<!-- GRID -->
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.css" />
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid-theme.css" />
|
||||
<script src="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.js"></script>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
//=======================================================
|
||||
// 그리드 생성 환경설정
|
||||
//=======================================================
|
||||
$("#jsGrid").jsGrid({
|
||||
pageSize : $("#pageSize").val(),
|
||||
scrollOffset:0,
|
||||
controller: {
|
||||
loadData: function (filter) { // 그리드에 데이터를 가져올 때 실팽되는 함수
|
||||
var data = $.Deferred();
|
||||
//======================================
|
||||
// 요청 정보 구성 : 시작 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
var reqUrl = "${pageContext.request.contextPath}/board/listFAQsAjax.do";
|
||||
var faqType = document.articleForm.faqType.value;
|
||||
var searchKeyword = document.articleForm.searchKeyword.value;
|
||||
var pageIndex = ( filter && filter.pageIndex ? filter.pageIndex : $("#pageIndex").val());
|
||||
var pageSize = ( filter && filter.pageSize ? filter.pageSize : $("#pageSize").val());
|
||||
|
||||
$("#pageIndex").val(pageIndex);
|
||||
|
||||
var inputData = {
|
||||
"searchKeyword" : searchKeyword
|
||||
, "pageIndex" : pageIndex
|
||||
, "pageSize": pageSize
|
||||
, "faqType": faqType};
|
||||
|
||||
|
||||
//--------------------------------------
|
||||
// 요청 처리
|
||||
//--------------------------------------
|
||||
$.ajax({
|
||||
type: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
url: reqUrl,
|
||||
dataType: "json",
|
||||
data: JSON.stringify(inputData),
|
||||
}).done(function(response){
|
||||
<%
|
||||
// 그리드 데이터 예시 :
|
||||
// (1) 페이징 클라이언트에서 수행하는 경우(pageloading = false) : [{ "articleNo": 1, "articleType": "01" }, { "articleNo": 2, "articleType": "02" }]
|
||||
// (2) 페이징 서버에서 수행하는 경우(pageloading = true) : {data: [{...}], itemsCount: 255}
|
||||
%>
|
||||
data.resolve(JSON.parse(response));
|
||||
});
|
||||
return data.promise();
|
||||
} // loadData
|
||||
},
|
||||
|
||||
rowClick: function(args) { // 행 클릭 시, 실행되는 이벤트 함수
|
||||
|
||||
// 클릭된 행의 자료 객체
|
||||
var getData = args.item;
|
||||
|
||||
// 추출할 컬럼의 데이터 가져오기
|
||||
var articleNo = getData["articleNo"];
|
||||
var selectedRow = $("#jsGrid").find('table tr.jsgrid-selected-row');
|
||||
|
||||
// 상세 내용 보기
|
||||
fn_viewDetail(articleNo, selectedRow);
|
||||
},
|
||||
|
||||
//======================================
|
||||
// 그리드 컬럼 정의 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
fields: [
|
||||
{ title:"구분", name: "articleGubun" , type: "text", width: 100, align: "center"},
|
||||
{ title:"유형", name: "faqType" , type: "text", width: 100, align: "center"},
|
||||
{ title:"제목", name: "title" , type: "text", width: 200, align: "left" }
|
||||
]
|
||||
});
|
||||
|
||||
// 페이지 크기 변경시 재조회
|
||||
$("#pageSize").on("change", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
|
||||
// 유형 변경시 재조회
|
||||
$("#faqType").on("change", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
// 검색 버튼 클릭
|
||||
$("#btnSearch").on("click", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
//초기 자료 조회
|
||||
fn_searchArticle();
|
||||
|
||||
}); // document ready
|
||||
|
||||
|
||||
// 선택한 게시글 상세 보기로 이동
|
||||
function fn_viewDetail(articleNo, selectedRow) {
|
||||
|
||||
var $selectedRow = $(selectedRow);
|
||||
var reqUrl = "${pageContext.request.contextPath}/board/selectFAQAjax.do";
|
||||
|
||||
var searchKeyword = document.articleForm.searchKeyword.value;
|
||||
var pageIndex = $("#pageIndex").val();
|
||||
var pageSize = $("#pageSize").val();
|
||||
var faqType = document.articleForm.faqType.value;
|
||||
var inputData = {
|
||||
"searchKeyword" : searchKeyword
|
||||
, "pageIndex" : pageIndex
|
||||
, "pageSize": pageSize
|
||||
, "faqType": faqType};
|
||||
|
||||
//--------------------------------------
|
||||
// 요청 처리
|
||||
//--------------------------------------
|
||||
$.ajax({
|
||||
type: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
url: reqUrl,
|
||||
dataType: "json",
|
||||
data: JSON.stringify(inputData),
|
||||
}).done(function(response){
|
||||
var jsonObj = JSON.parse(response);
|
||||
$("#jsGrid").find('table tr.answer').remove();
|
||||
//alert("DDDDDDDD remove = " + $("#jsGrid")[0].scrollHeight);
|
||||
$selectedRow.after("<tr class='answer'><td colspan='3'>" + jsonObj.content
|
||||
+ "<br/>" + jsonObj.content
|
||||
+ "<br/>" + jsonObj.content
|
||||
+ "<br/>" + jsonObj.content
|
||||
+ "<br/>" + jsonObj.content
|
||||
+ "</td></tr>");
|
||||
//alert("DDDDDDDD add = " + $("#jsGrid")[0].scrollHeight);
|
||||
//$("#jsGrid").find('table.jsgrid-table.jsgrid-grid-body').height($("#jsGrid").find('table.jsgrid-table')[0].scrollHeight + 100);
|
||||
});
|
||||
|
||||
$("#jsGrid").closest('.ui-jqgrid-bdiv').width($("#jsGrid").closest('.ui-jqgrid-bdiv').width() + 1);
|
||||
|
||||
}
|
||||
|
||||
// 게시글 작성으로 이동
|
||||
function fn_newArticle() {
|
||||
$("#articleNo").val("");
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/insertFAQForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 그리드 데이터 조회 호출
|
||||
function fn_searchArticle(pageSize, pageIndex) {
|
||||
$("#jsGrid").jsGrid("search"
|
||||
, {'pageSize' : (pageSize ? pageSize : fn_getIntValue("pageSize", ${pageSize}) ),
|
||||
'pageIndex' : (pageIndex ? pageIndex : fn_getIntValue("pageIndex", 1))
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function fn_changeFaqType(selectedFaqType) {
|
||||
|
||||
$('#faqType').val(selectedFaqType).trigger('change');
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : ${message}
|
||||
<br/>
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/listFAQs.do"
|
||||
method="post">
|
||||
|
||||
<!-- 검색조건 -->
|
||||
<select name="pageSize" id="pageSize" title="목록에 보여줄 글 개수">
|
||||
<c:forEach var="pageSizeItem" items="${pageSizeCodes}" varStatus="status">
|
||||
<option value="<c:out value="${pageSizeItem.code }" />" <c:if test="${pageSizeItem.code == pageSize }">selected</c:if> ><c:out value="${pageSizeItem.name }" /></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<select name="faqType" id="faqType" title="공지사항 유형">
|
||||
<option value="">유형</option>
|
||||
<c:forEach var="faqTypeItem" items="${faqTypeCodes}" varStatus="status">
|
||||
<option value="<c:out value="${faqTypeItem.code }" />" <c:if test="${faqTypeItem.code == faqType }">selected</c:if> ><c:out value="${faqTypeItem.name }" /></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex }" size="5" maxlength="5" />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword }" size="35" maxlength="50" />
|
||||
<input type="button" name="btnSearch" id="btnSearch" title="검색버튼" value="검색" />
|
||||
|
||||
<br/>
|
||||
<a href="javascript:void(0)" onclick="fn_changeFaqType('')" <c:if test="${'' == faqType }"> class="selected" </c:if> >전체</a>
|
||||
<c:forEach var="faqTypeItem" items="${faqTypeCodes}" varStatus="status">
|
||||
<a href="javascript:void(0)" onclick="fn_changeFaqType('<c:out value="${faqTypeItem.code }" />')" <c:if test="${faqTypeItem.code == faqType }"> class="selected" </c:if> ><c:out value="${faqTypeItem.name }" /></a>
|
||||
</c:forEach>
|
||||
|
||||
|
||||
<div id="jsGrid" name="jsGrid" style="height: 100%"></div>
|
||||
|
||||
|
||||
<input type="text" name="articleNo" id="articleNo" value="" title="선택글번호" readonly />
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,236 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : listNotices.jsp
|
||||
*
|
||||
* @Description : 공지사항 목록을 조회한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 6. 15.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<!-- GRID -->
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.css" />
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid-theme.css" />
|
||||
<script src="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.js"></script>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(function() {
|
||||
alert("ok");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
var MyDateField = function(config) {
|
||||
jsGrid.Field.call(this, config);
|
||||
};
|
||||
|
||||
MyDateField.prototype = new jsGrid.Field({
|
||||
sorter: function(date1, date2) {
|
||||
return new Date(date1) - new Date(date2);
|
||||
},
|
||||
|
||||
itemTemplate: function(value) {
|
||||
return new Date(value).toDateString();
|
||||
},
|
||||
|
||||
insertTemplate: function(value) {
|
||||
return this._insertPicker = $("<input>").datepicker({ defaultDate: new Date() });
|
||||
},
|
||||
|
||||
editTemplate: function(value) {
|
||||
return this._editPicker = $("<input>").datepicker().datepicker("setDate", new Date(value));
|
||||
},
|
||||
|
||||
insertValue: function() {
|
||||
return this._insertPicker.datepicker("getDate").toISOString();
|
||||
},
|
||||
|
||||
editValue: function() {
|
||||
return this._editPicker.datepicker("getDate").toISOString();
|
||||
}
|
||||
});
|
||||
|
||||
jsGrid.fields.myDateField = MyDateField;
|
||||
|
||||
//=======================================================
|
||||
// 그리드 생성 환경설정
|
||||
//=======================================================
|
||||
$("#jsGrid").jsGrid({
|
||||
pageSize : $("#pageSize").val(),
|
||||
controller: {
|
||||
loadData: function (filter) { // 그리드에 데이터를 가져올 때 실팽되는 함수
|
||||
var data = $.Deferred();
|
||||
//======================================
|
||||
// 요청 정보 구성 : 시작 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
var reqUrl = "${pageContext.request.contextPath}/board/listNoticesAjax.do";
|
||||
var articleType = document.articleForm.articleType.value;
|
||||
var searchKeyword = document.articleForm.searchKeyword.value;
|
||||
var pageIndex = ( filter && filter.pageIndex ? filter.pageIndex : $("#pageIndex").val());
|
||||
var pageSize = ( filter && filter.pageSize ? filter.pageSize : $("#pageSize").val());
|
||||
|
||||
$("#pageIndex").val(pageIndex);
|
||||
|
||||
var inputData = {
|
||||
"searchKeyword" : searchKeyword
|
||||
, "pageIndex" : pageIndex
|
||||
, "pageSize": pageSize
|
||||
, "articleType": articleType};
|
||||
|
||||
|
||||
//--------------------------------------
|
||||
// 요청 처리
|
||||
//--------------------------------------
|
||||
$.ajax({
|
||||
type: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
url: reqUrl,
|
||||
dataType: "json",
|
||||
data: JSON.stringify(inputData),
|
||||
}).done(function(response){
|
||||
<%
|
||||
// 그리드 데이터 예시 :
|
||||
// (1) 페이징 클라이언트에서 수행하는 경우(pageloading = false) : [{ "articleNo": 1, "articleType": "01" }, { "articleNo": 2, "articleType": "02" }]
|
||||
// (2) 페이징 서버에서 수행하는 경우(pageloading = true) : {data: [{...}], itemsCount: 255}
|
||||
%>
|
||||
data.resolve(JSON.parse(response));
|
||||
});
|
||||
return data.promise();
|
||||
} // loadData
|
||||
},
|
||||
|
||||
rowClick: function(args) { // 행 클릭 시, 실행되는 이벤트 함수
|
||||
|
||||
// 클릭된 행의 자료 객체
|
||||
var getData = args.item;
|
||||
|
||||
// 추출할 컬럼의 데이터 가져오기
|
||||
var articleNo = getData["articleNo"];
|
||||
|
||||
// 상세 내용 보기
|
||||
fn_viewDetail(articleNo);
|
||||
},
|
||||
|
||||
//======================================
|
||||
// 그리드 컬럼 정의 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
fields: [
|
||||
{ title:"상시공지", name: "noticeTop", type: "text", width: 50, align: "center"},
|
||||
{ title:"번호", name: "articleNo" , type: "number", width: 50, align: "center"},
|
||||
{ title:"유형", name: "articleType" , type: "text", width: 100, align: "center"},
|
||||
{ title:"제목", name: "title" , type: "text", width: 200, align: "left" },
|
||||
{ title:"작성자", name: "regUserName", type: "text", width: 50, align: "center" },
|
||||
{ title:"등록일", name: "regDate" , type: "text", width: 100, align: "center"},
|
||||
{ title:"최근", name: "new" , type: "text", width: 100, align: "center"}
|
||||
]
|
||||
});
|
||||
|
||||
// 페이지 크기 변경시 재조회
|
||||
$("#pageSize").on("change", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
// 검색 버튼 클릭
|
||||
$("#btnSearch").on("click", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
//초기 자료 조회
|
||||
fn_searchArticle();
|
||||
|
||||
}); // document ready
|
||||
|
||||
|
||||
// 선택한 게시글 상세 보기로 이동
|
||||
function fn_viewDetail(articleNo) {
|
||||
$("#articleNo").val(articleNo);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/selectNotice.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 게시글 작성으로 이동
|
||||
function fn_newArticle() {
|
||||
$("#articleNo").val("");
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/insertNoticeForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 그리드 데이터 조회 호출
|
||||
function fn_searchArticle(pageSize, pageIndex) {
|
||||
$("#jsGrid").jsGrid("search"
|
||||
, {'pageSize' : (pageSize ? pageSize : fn_getIntValue("pageSize", ${pageSize}) ),
|
||||
'pageIndex' : (pageIndex ? pageIndex : fn_getIntValue("pageIndex", 1))
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : ${message}
|
||||
<br/>
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/listNotices.do"
|
||||
method="post">
|
||||
|
||||
<!-- 검색조건 -->
|
||||
<select name="pageSize" id="pageSize" title="목록에 보여줄 글 개수">
|
||||
<c:forEach var="pageSizeItem" items="${pageSizeCodes}" varStatus="status">
|
||||
<option value="<c:out value="${pageSizeItem.code }" />" <c:if test="${pageSizeItem.code == pageSize }">selected</c:if> ><c:out value="${pageSizeItem.name }" /></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<select name="articleType" id="articleType" title="공지사항 유형">
|
||||
<option value="">유형</option>
|
||||
<c:forEach var="articleTypeItem" items="${articleTypeCodes}" varStatus="status">
|
||||
<option value="<c:out value="${articleTypeItem.code }" />" <c:if test="${articleTypeItem.code == articleType }">selected</c:if> ><c:out value="${articleTypeItem.name }" /></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex }" size="5" maxlength="5" />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword }" size="35" maxlength="50" />
|
||||
<input type="button" name="btnSearch" id="btnSearch" title="검색버튼" value="검색" />
|
||||
|
||||
<div id="jsGrid" name="jsGrid" style="height: 100%"></div>
|
||||
|
||||
|
||||
<input type="text" name="articleNo" id="articleNo" value="" title="선택글번호" readonly />
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,192 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : listQnAs.jsp
|
||||
*
|
||||
* @Description : 묻고답하기 목록을 조회한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 7. 13. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 7. 13.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<!-- GRID -->
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.css" />
|
||||
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid-theme.css" />
|
||||
<script src="${pageContext.request.contextPath}/js/jsgrid/nlib-jsgrid.js"></script>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$( document ).ready(function() {
|
||||
//=======================================================
|
||||
// 그리드 생성 환경설정
|
||||
//=======================================================
|
||||
$("#jsGrid").jsGrid({
|
||||
pageSize : $("#pageSize").val(),
|
||||
controller: {
|
||||
loadData: function (filter) { // 그리드에 데이터를 가져올 때 실팽되는 함수
|
||||
var data = $.Deferred();
|
||||
//======================================
|
||||
// 요청 정보 구성 : 시작 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
var reqUrl = "${pageContext.request.contextPath}/board/listQnAsAjax.do";
|
||||
var searchKeyword = document.articleForm.searchKeyword.value;
|
||||
var pageIndex = ( filter && filter.pageIndex ? filter.pageIndex : $("#pageIndex").val());
|
||||
var pageSize = ( filter && filter.pageSize ? filter.pageSize : $("#pageSize").val());
|
||||
|
||||
$("#pageIndex").val(pageIndex);
|
||||
|
||||
var inputData = {
|
||||
"searchKeyword" : searchKeyword
|
||||
, "pageIndex" : pageIndex
|
||||
, "pageSize": pageSize};
|
||||
|
||||
|
||||
//--------------------------------------
|
||||
// 요청 처리
|
||||
//--------------------------------------
|
||||
$.ajax({
|
||||
type: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
url: reqUrl,
|
||||
dataType: "json",
|
||||
data: JSON.stringify(inputData),
|
||||
}).done(function(response){
|
||||
<%
|
||||
// 그리드 데이터 예시 :
|
||||
// (1) 페이징 클라이언트에서 수행하는 경우(pageloading = false) : [{ "articleNo": 1, "articleType": "01" }, { "articleNo": 2, "articleType": "02" }]
|
||||
// (2) 페이징 서버에서 수행하는 경우(pageloading = true) : {data: [{...}], itemsCount: 255}
|
||||
%>
|
||||
data.resolve(JSON.parse(response));
|
||||
});
|
||||
return data.promise();
|
||||
} // loadData
|
||||
},
|
||||
|
||||
rowClick: function(args) { // 행 클릭 시, 실행되는 이벤트 함수
|
||||
|
||||
// 클릭된 행의 자료 객체
|
||||
var getData = args.item;
|
||||
|
||||
// 추출할 컬럼의 데이터 가져오기
|
||||
var articleNo = getData["articleNo"];
|
||||
|
||||
// 상세 내용 보기
|
||||
fn_viewDetail(articleNo);
|
||||
},
|
||||
|
||||
//======================================
|
||||
// 그리드 컬럼 정의 (각 요청에 맞게 조정)
|
||||
//======================================
|
||||
fields: [
|
||||
{ title:"번호", name: "articleNo" , type: "number" , width: 50, align: "center"},
|
||||
{ title:"제목", name: "title", type: "text" , width: 200, align: "left" },
|
||||
{ title:"작성자", name: "writerName", type: "number", width: 50, align: "center" },
|
||||
{ title:"등록일", name: "regDate", type: "text", width: 100, align: "center"},
|
||||
{ title:"상태", name: "replyStatus", type: "text", width: 80, align: "center" }
|
||||
]
|
||||
});
|
||||
|
||||
// 페이지 크기 변경시 재조회
|
||||
$("#pageSize").on("change", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
// 검색 버튼 클릭
|
||||
$("#btnSearch").on("click", function(e) {
|
||||
fn_searchArticle($("#pageSize").val(), 1);
|
||||
});
|
||||
|
||||
//초기 자료 조회
|
||||
fn_searchArticle();
|
||||
|
||||
}); // document ready
|
||||
|
||||
|
||||
// 선택한 게시글 상세 보기로 이동
|
||||
function fn_viewDetail(articleNo) {
|
||||
$("#articleNo").val(articleNo);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/selectQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 게시글 작성으로 이동
|
||||
function fn_newArticle() {
|
||||
$("#articleNo").val("");
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/insertQnAForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 그리드 데이터 조회 호출
|
||||
function fn_searchArticle(pageSize, pageIndex) {
|
||||
$("#jsGrid").jsGrid("search"
|
||||
, {'pageSize' : (pageSize ? pageSize : fn_getIntValue("pageSize", ${pageSize}) ),
|
||||
'pageIndex' : (pageIndex ? pageIndex : fn_getIntValue("pageIndex", 1))
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : ${message}
|
||||
<br/>
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/listQnAs.do"
|
||||
method="post">
|
||||
|
||||
<!-- 검색조건 -->
|
||||
<select name="pageSize" id="pageSize" title="목록에 보여줄 글 개수">
|
||||
<c:forEach var="pageSizeItem" items="${pageSizeCodes}" varStatus="status">
|
||||
<option value="<c:out value="${pageSizeItem.code }" />" <c:if test="${pageSizeItem.code == pageSize }">selected</c:if> ><c:out value="${pageSizeItem.name }" /></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex }" size="5" maxlength="5" />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword }" size="35" maxlength="50" />
|
||||
<input type="button" name="btnSearch" id="btnSearch" title="검색버튼" value="검색" />
|
||||
|
||||
<div id="jsGrid" name="jsGrid" style="height: 100%"></div>
|
||||
|
||||
|
||||
<button type="button" name="btnNew" id="btnNew" class="float" title="글쓰기버튼"
|
||||
onclick="fn_newArticle()">글쓰기</button>
|
||||
|
||||
<input type="text" name="articleNo" id="articleNo" value="" title="선택글번호" readonly />
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,197 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : selectNotice.jsp
|
||||
*
|
||||
* @Description : 공지사항 상세내용을 조회한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 7. 22. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 7. 22.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(function() {
|
||||
alert("ok");
|
||||
});
|
||||
|
||||
// 이전글/다음글 상세 보기로 이동
|
||||
function fn_view_detail(articleNo) {
|
||||
$("#articleNo").val(articleNo);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/selectNotice.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 목록으로 이동
|
||||
function fn_list() {
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/listNotices.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정 화면 이동
|
||||
function fn_updateForm(passwd) {
|
||||
if(passwd == null || passwd == "") {
|
||||
alert("수정을 위한 게시물의 비밀번호를 입력하여 주시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#articlePassword").val(passwd);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/updateNoticeForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정위한 비밀번호 확인
|
||||
function fn_updatePassword() {
|
||||
fn_promptPassword("수정을 위한 글 비밀번호를 입력하여 주시기 바랍니다.", "111", "fn_updateForm")
|
||||
}
|
||||
|
||||
// 삭제위한 비밀번호 확인
|
||||
function fn_deletePassword() {
|
||||
fn_promptPassword("삭제를 위한 글 비밀번호를 입력하여 주시기 바랍니다.", "111", "fn_delete")
|
||||
}
|
||||
|
||||
// 삭제 처리
|
||||
function fn_delete(passwd) {
|
||||
if(passwd == null || passwd == "") {
|
||||
alert("삭제를 위한 게시물의 비밀번호를 입력하여 주시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#articlePassword").val(passwd);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/deleteNotice.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 파일 다운로드
|
||||
function fn_downloadFile(fid, fname) {
|
||||
|
||||
if(fid == null || fid.trim().length < 1) {
|
||||
alert("파일정보를 확인해 주시기 바랍니다.[1]");
|
||||
return;
|
||||
}
|
||||
|
||||
if(fname == null || fname.trim().length < 1) {
|
||||
alert("파일정보를 확인해 주시기 바랍니다.[2]");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#fid").val(fid);
|
||||
$("#fname").val(fname);
|
||||
$("#downloadFileForm").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : <span style="color:red;">${message }</span>
|
||||
<br />
|
||||
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/listNotices.do"
|
||||
method="post">
|
||||
|
||||
<!-- HIDDEN 영역 : 시작 -->
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex}" readonly />
|
||||
<input type="text" name="pageSize" id="pageSize" title="목록에 보여줄 글개수" value="${pageSize}" readonly />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword}" readonly />
|
||||
<input type="text" name="articleNo" id="articleNo" title="선택글번호" value="${articleNo}" readonly />
|
||||
<input type="text" name="articleType" id="articleType" title="유형" value="${articleType}" readonly />
|
||||
<!-- HIDDEN 영역 : 종료 -->
|
||||
|
||||
<table class="table_content" style="width:100% !important; margin-top: 20px;">
|
||||
<tr>
|
||||
<th>유형</th>
|
||||
<td>${article.articleTypeName }</td>
|
||||
<th>작성일</th>
|
||||
<td>${article.regDate }</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="1">제목</th>
|
||||
<td colspan="3">${article.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="1">질문내용</th>
|
||||
<td colspan="3">${article.contentNotice}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<%
|
||||
// 파일정보 : 저장파일ID=원파일명
|
||||
%>
|
||||
<c:set var="contentNoticeFileList" value="${fn:split(article.contentNoticeFile,';')}" />
|
||||
<c:forEach var="contentNoticeFileItem" items="${contentNoticeFileList }">
|
||||
<c:set var="fInfo" value="${fn:split(contentNoticeFileItem,'=')}" />
|
||||
<a href="javascript:void(0);" onclick="fn_downloadFile('${fInfo[0]}', '${fInfo[1]}')">${fInfo[1]}</a><br/>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<table class="table_content" style="width:100% !important;">
|
||||
<tr>
|
||||
<th>이전글</th>
|
||||
<td>${preArticle.articleTypeName }</td>
|
||||
<td><a href="javascript:void(0)" onclick="fn_view_detail('${preArticle.articleNo }')">${preArticle.title }</a></td>
|
||||
<th>작성일 : ${preArticle.regDate }</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>다음글</th>
|
||||
<td>${nextArticle.articleTypeName }</td>
|
||||
<td><a href="javascript:void(0)" onclick="fn_view_detail('${nextArticle.articleNo }')">${nextArticle.title }</a></td>
|
||||
<th>작성일 : ${nextArticle.regDate }</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- 관련 작업 버튼 -->
|
||||
<button type="button" name="btnList" id="btnList" class="float"
|
||||
onclick="fn_list()">목록</button>
|
||||
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- 첨부파일 다운로드용 폼 -->
|
||||
<form name="downloadFileForm" id="downloadFileForm"
|
||||
action="${pageContext.request.contextPath}/fileupload/downloadFiles.do"
|
||||
method="post">
|
||||
<input type="text" name="subPathKey" id="subPathKey" value="fileupload.bbs.qna.subpath" readonly />
|
||||
<input type="text" name="fid" id="fid" value="" readonly />
|
||||
<input type="text" name="fname" id="fname" value="" readonly />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,217 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : selectQnA.jsp
|
||||
*
|
||||
* @Description : 묻고답하기 상세내용을 조회한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 7. 22. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 7. 22.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
// 이전글/다음글 상세 보기로 이동
|
||||
function fn_view_detail(articleNo) {
|
||||
$("#articleNo").val(articleNo);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/selectQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 목록으로 이동
|
||||
function fn_list() {
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/listQnAs.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정 화면 이동
|
||||
function fn_updateForm(passwd) {
|
||||
if(passwd == null || passwd == "") {
|
||||
alert("수정을 위한 게시물의 비밀번호를 입력하여 주시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#articlePassword").val(passwd);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/updateQnAForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정위한 비밀번호 확인
|
||||
function fn_updatePassword() {
|
||||
fn_promptPassword("수정을 위한 글 비밀번호를 입력하여 주시기 바랍니다.", "111", "fn_updateForm")
|
||||
}
|
||||
|
||||
// 삭제위한 비밀번호 확인
|
||||
function fn_deletePassword() {
|
||||
fn_promptPassword("삭제를 위한 글 비밀번호를 입력하여 주시기 바랍니다.", "111", "fn_delete")
|
||||
}
|
||||
|
||||
// 삭제 처리
|
||||
function fn_delete(passwd) {
|
||||
if(passwd == null || passwd == "") {
|
||||
alert("삭제를 위한 게시물의 비밀번호를 입력하여 주시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#articlePassword").val(passwd);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/deleteQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 파일 다운로드
|
||||
function fn_downloadFile(fid, fname) {
|
||||
|
||||
if(fid == null || fid.trim().length < 1) {
|
||||
alert("파일정보를 확인해 주시기 바랍니다.[1]");
|
||||
return;
|
||||
}
|
||||
|
||||
if(fname == null || fname.trim().length < 1) {
|
||||
alert("파일정보를 확인해 주시기 바랍니다.[2]");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#fid").val(fid);
|
||||
$("#fname").val(fname);
|
||||
$("#downloadFileForm").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : <span style="color:red;">${message }</span>
|
||||
<br />
|
||||
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/listQnAs.do"
|
||||
method="post">
|
||||
|
||||
<!-- HIDDEN 영역 : 시작 -->
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex}" readonly />
|
||||
<input type="text" name="pageSize" id="pageSize" title="목록에 보여줄 글개수" value="${pageSize}" readonly />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword}" readonly />
|
||||
<input type="text" name="articleNo" id="articleNo" title="선택글번호" value="${articleNo}" readonly />
|
||||
<input type="text" name="articleType" id="articleType" title="유형" value="${articleType}" readonly />
|
||||
<input type="text" name="articlePassword" id="articlePassword" title="글비밀번호" value="${articlePassword}" readonly />
|
||||
<!-- HIDDEN 영역 : 종료 -->
|
||||
|
||||
<table class="table_content" style="width:100% !important; margin-top: 20px;">
|
||||
<tr>
|
||||
<th>유형</th>
|
||||
<td>${article.articleTypeName }</td>
|
||||
<th>작성자 : ${article.regUserName }</th>
|
||||
<th>작성일 : ${article.regDate }</th>
|
||||
<th>상태 : ${article.repStatus }</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">질문내용</th>
|
||||
<td colspan="4">${article.contentQeust}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<%
|
||||
// 파일정보 : 저장파일ID=원파일명
|
||||
%>
|
||||
<c:set var="contentQeustFileList" value="${fn:split(article.contentQeustFile,';')}" />
|
||||
<c:forEach var="contentQuestFileItem" items="${contentQeustFileList }">
|
||||
<c:set var="fInfo" value="${fn:split(contentQuestFileItem,'=')}" />
|
||||
<a href="javascript:void(0);" onclick="fn_downloadFile('${fInfo[0]}', '${fInfo[1]}')">${fInfo[1]}</a><br/>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">답변내용</th>
|
||||
<td colspan="4">${article.contentReply}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<%
|
||||
// 파일정보 : 저장파일ID=원파일명
|
||||
%>
|
||||
<c:set var="contentReplyFileList" value="${fn:split(article.contentReplyFile,';')}" />
|
||||
<c:forEach var="contentReplyFileItem" items="${contentReplyFileList }">
|
||||
<c:set var="fInfo" value="${fn:split(contentReplyFileItem,'=')}" />
|
||||
<a href="javascript:void(0);" onclick="fn_downloadFile('${fInfo[0]}', '${fInfo[1]}')">${fInfo[1]}</a><br/>
|
||||
</c:forEach>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<table class="table_content" style="width:100% !important;">
|
||||
<tr>
|
||||
<th>이전글</th>
|
||||
<td>${preArticle.articleTypeName }</td>
|
||||
<td><a href="javascript:void(0)" onclick="fn_view_detail('${preArticle.articleNo }')">${preArticle.title }</a></td>
|
||||
<th>작성자 : ${preArticle.regUserName }</th>
|
||||
<th>작성일 : ${preArticle.regDate }</th>
|
||||
<th>상태 : ${preArticle.repStatus }</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>다음글</th>
|
||||
<td>${nextArticle.articleTypeName }</td>
|
||||
<td><a href="javascript:void(0)" onclick="fn_view_detail('${nextArticle.articleNo }')">${nextArticle.title }</a></td>
|
||||
<th>작성자 : ${nextArticle.regUserName }</th>
|
||||
<th>작성일 : ${nextArticle.regDate }</th>
|
||||
<th>상태 : ${nextArticle.repStatus }</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- 관련 작업 버튼 -->
|
||||
<button type="button" name="btnList" id="btnList" class="float"
|
||||
onclick="fn_list()">목록</button>
|
||||
<button type="button" name="btnUpdate" id="btnUpdate" class="float"
|
||||
onclick="fn_updatePassword()">수정</button>
|
||||
<button type="button" name="btnDelete" id="btnDelete" class="float"
|
||||
onclick="fn_deletePassword()">삭제</button>
|
||||
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- 첨부파일 다운로드용 폼 -->
|
||||
<form name="downloadFileForm" id="downloadFileForm"
|
||||
action="${pageContext.request.contextPath}/fileupload/downloadFiles.do"
|
||||
method="post">
|
||||
<input type="text" name="subPathKey" id="subPathKey" value="fileupload.bbs.qna.subpath" readonly />
|
||||
<input type="text" name="fid" id="fid" value="" readonly />
|
||||
<input type="text" name="fname" id="fname" value="" readonly />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,133 +0,0 @@
|
||||
<%
|
||||
/**
|
||||
* <pre>
|
||||
* @Class Name : updateQnAForm.jsp
|
||||
*
|
||||
* @Description : 묻고답하기 수정화면을 표출한다.
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------------ -------- ---------------------------
|
||||
* @ 2021. 7. 23. KNKIM 최초 생성
|
||||
*
|
||||
*
|
||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
||||
* @since 2021. 7. 23.
|
||||
* @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>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>${pageTitle}</title>
|
||||
|
||||
<script type="text/javaScript">
|
||||
|
||||
//선택한 게시글 상세 보기로 이동
|
||||
function fn_viewDetail(articleNo) {
|
||||
$('#articleForm').removeAttr('onsubmit');
|
||||
|
||||
$("#articleNo").val(articleNo);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/selectQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 선택한 게시글 상세 보기로 이동
|
||||
function fn_list() {
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/listQnAs.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정 처리
|
||||
function fn_update() {
|
||||
if(!validEmail($("#email").val())) {
|
||||
alert("이메일 형식에 맞지 않습니다. 다시 확인하여 주시기 바랍니다.");
|
||||
$("#email").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/updateQnA.do");
|
||||
if(!confirm("저장하시겠습니까?")) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>${pageTitle }</h1>
|
||||
|
||||
메시지 : <span style="color:red;">${message }</span>
|
||||
<br />
|
||||
|
||||
<form name="articleForm" id="articleForm"
|
||||
action="${pageContext.request.contextPath}/board/updateQnA.do"
|
||||
method="post"
|
||||
onsubmit="return fn_update();">
|
||||
|
||||
<!-- HIDDEN 영역 : 시작 -->
|
||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex}" readonly />
|
||||
<input type="text" name="pageSize" id="pageSize" title="목록에 보여줄 글 개수" value="${pageSize}" readonly />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword}" readonly />
|
||||
<input type="text" name="articleNo" id="articleNo" title="선택글번호" value="${articleNo}" readonly />
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<table class="table_content" style="width:100% !important;">
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td><input type="text" name="title" id="title" title="제목" value="${article.title}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>작성자</th>
|
||||
<td><input type="text" name="regUserName" id="regUserName" title="작성자" value="${article.regUserName}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" name="email" id="email" title="이메일" value="${article.email}" size="100" maxlength="200" required /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>기존비밀번호</th>
|
||||
<td><input type="text" name="encArticlePassword" id="encArticlePassword" title="제목" value="${encArticlePassword}" size="100" maxlength="200" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호<br/>(변경시 입력)</th>
|
||||
<td><input type="text" name="articlePassword" id="articlePassword" title="비밀번호" value="" size="100" maxlength="200" /><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>질문내용</th>
|
||||
<td><textarea name="contentQeust" id="contentQeust" cols="80" rows="10">${article.contentQeust}</textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<input type="button" name="btnCancel" id="btnCancel" title="취소버튼" class="float" value="취소"
|
||||
onclick="fn_viewDetail('${articleNo}')" />
|
||||
<input type="submit" name="btnSave" id="btnSave" title="저장버튼" class="float" value="저장" />
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -158,15 +158,6 @@ function fn_changeCartItems(cartTypeCd, cartTypeNm) {
|
||||
$("#frm").submit();
|
||||
}
|
||||
|
||||
|
||||
function fn_changeInterest(masterId, onOff) {
|
||||
alert("관심등록/삭제 준비중 : " + masterId + ", " + onOff);
|
||||
}
|
||||
|
||||
function fn_gotoDetail(masterId) {
|
||||
alert("상세보기 준비중 : " + masterId);
|
||||
}
|
||||
|
||||
// 대출신청으로 이동
|
||||
function fn_appRent() {
|
||||
|
||||
@ -237,11 +228,10 @@ $(document).ready(function() {
|
||||
</script>
|
||||
|
||||
<form name="frm" id="frm" action="${pageContext.request.contextPath}/cart/listCartItems.do" method="post">
|
||||
<input type="text" id="cartTypeCd" name="cartTypeCd" value="${cartTypeCd }" />
|
||||
<input type="text" id="mngOrgNm" name="mngOrgNm" value="${mngOrgNm }" />
|
||||
|
||||
<input type="text" id="mngOrgCd" name="mngOrgCd" value="" />
|
||||
<input type="text" id="selItems" name="selItems" value="" />
|
||||
<input type="hidden" id="cartTypeCd" name="cartTypeCd" value="${cartTypeCd }" />
|
||||
<input type="hidden" id="mngOrgNm" name="mngOrgNm" value="${mngOrgNm }" />
|
||||
<input type="hidden" id="mngOrgCd" name="mngOrgCd" value="" />
|
||||
<input type="hidden" id="selItems" name="selItems" value="" />
|
||||
|
||||
<!-- 카트 섹션 -->
|
||||
<section class="location cart">
|
||||
@ -311,17 +301,17 @@ $(document).ready(function() {
|
||||
<div class="t-chk"><input type="checkbox" name="chk_item_${cart.mngOrgCd }" id="chk_item_${cart.mngOrgCd }" value="${cart.masterId }" ></div>
|
||||
<div class="t-data">
|
||||
<div class="img">${cart.interestYn }
|
||||
<a href="javascript:void(0)"><img src="${cart.rprsThumbUrl }" alt="" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${cart.masterId }')"></a>
|
||||
<a href="javascript:void(0)"><img src="${cart.rprsThumbUrl }" alt="" width="60" height="91" title="상세보기" onclick="gfn_getDetail('${cart.masterId }')"></a>
|
||||
<sec:authorize access="isAuthenticated()">
|
||||
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${cart.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<span id="favorites_${cart.masterId }" class="favorites" onclick="fn_changeInterestBtn('${cart.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
<img src="/images/icon/icon-cart-Favorites.png" class="on" alt="즐겨찾기 아이콘">
|
||||
</span>
|
||||
</c:if>
|
||||
<c:if test='${cart.MUseYn != "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${cart.masterId }', 'on')" title="관심자료로 등록합니다.">
|
||||
<span class="favorites" onclick="fn_changeInterestBtn('${cart.masterId }', 'on')" title="관심자료로 등록합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites.png" class="off" alt="즐겨찾기 아이콘">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="on" alt="즐겨찾기 아이콘">
|
||||
</span>
|
||||
@ -342,7 +332,7 @@ $(document).ready(function() {
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
<div class="title"><a href="javascript:void(0)" onclick="fn_gotoDetail('${cart.masterId }')" title="상세보기">${cart.title }</a></div>
|
||||
<div class="title"><a href="javascript:void(0)" onclick="gfn_getDetail('${cart.masterId }')" title="상세보기">${cart.title }</a></div>
|
||||
</div>
|
||||
<div class="t-state <c:if test="${cart.useStatus != '03' and cart.useStatus != '06' }">poss</c:if> <c:if test="${cart.useStatus == '03' or cart.useStatus == '06' }">imposs</c:if>"><p>${cart.useStatusNm }</p></div>
|
||||
<div class="t-date">${cart.rtnExpctDd }</div>
|
||||
|
||||
@ -29,6 +29,43 @@ function fn_search(keyword) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function fn_viewAncmnt(articleId) {
|
||||
var form = document.createElement("form");
|
||||
form.style.display = "none";
|
||||
$(form).attr("action", "/bbs/selectAncmntArticle.do");
|
||||
$(form).attr("method", "post");
|
||||
|
||||
var element = document.createElement("input");
|
||||
$(element).attr("name", "articleId");
|
||||
|
||||
$(element).attr("value", articleId);
|
||||
form.appendChild(element);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
document.body.removeChild(form);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function fn_viewQna(articleId) {
|
||||
var form = document.createElement("form");
|
||||
form.style.display = "none";
|
||||
$(form).attr("action", "/bbs/selectQnaArticle.do");
|
||||
$(form).attr("method", "post");
|
||||
|
||||
var element = document.createElement("input");
|
||||
$(element).attr("name", "articleId");
|
||||
|
||||
$(element).attr("value", articleId);
|
||||
form.appendChild(element);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
document.body.removeChild(form);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function fn_listPops(typeDivCd) {
|
||||
$("div.tab_content div.tabs_item").hide();
|
||||
$("#listPops_" + typeDivCd).show();
|
||||
@ -204,14 +241,14 @@ function fn_listPops(typeDivCd) {
|
||||
<div class="detail-cover">
|
||||
<strong>${itemOnline.title }</strong>
|
||||
<ul>
|
||||
<li><em>주제유형</em><c:if test="${empty itemOnline.subjectNm }">-</c:if>${itemOnline.subjectNm }</li>
|
||||
<li><em>주제분야</em>문화유산</li>
|
||||
<li><em>자료유형</em><c:if test="${empty itemOnline.typeDivNm }">-</c:if>${itemOnline.typeDivNm }</li>
|
||||
<li><em>주제분야</em><c:if test="${empty itemOnline.subjectNmUp }">-</c:if>${itemOnline.subjectNmUp }</li>
|
||||
<li><em>생산기관</em><c:if test="${empty itemOnline.orgNm }">-</c:if>${itemOnline.orgNm }</span></li>
|
||||
<li><em>생산년도</em><c:if test="${empty itemOnline.creatYyyy }">-</c:if>${itemOnline.creatYyyy }</li>
|
||||
</ul>
|
||||
<div class="btn-box">
|
||||
<div class="view"><a href="javascript:void(0)" onclick="gfn_showDocPdf('${itemOnline.interfaceId }')">원문보기</a></div>
|
||||
<div class="RIS"><a href="#">RIS</a></div>
|
||||
<div class="RIS"><a href="javascript:void(0)" onclick="risShow('${itemOnline.masterId }')">RIS</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -236,68 +273,45 @@ function fn_listPops(typeDivCd) {
|
||||
<div class="Fl notice">
|
||||
<div class="ti"><span>공지사항</span><a href="javascript:void(0)" onclick="location.href='/bbs/listAncmnts.do';"><span>더보기 <img src="/images/icon/icon-more.png" alt="더보기 아이콘"></span></a></div>
|
||||
<div class="con">
|
||||
<c:forEach var="itemAncmnt" items="${listAncmnt }">
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<a href="javascript:void(0)" onclick="fn_viewAncmnt('${itemAncmnt.articleId}')">
|
||||
<div class="box"><p>${fn:substring(itemAncmnt.regDd,8,10) }</p><p> ${fn:substring(itemAncmnt.regDd,2,4) }.${fn:substring(itemAncmnt.regDd,5,7) }</p></div>
|
||||
<div class="text">
|
||||
<p>[공지] 경주문화원에 오신걸 환영합니다.<img src="/images/icon/icon-file.png" class="file" alt="파일 아이콘"></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<div class="text">
|
||||
<p>소장자료관 이용 시 주의사항 안내<img src="/images/icon/icon-file.png" class="file" alt="파일 아이콘"></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<div class="text">
|
||||
<p>[공지] 2021 문화원 휴관일 안내 드립니다.</p>
|
||||
<p><c:if test='${itemAncmnt.notiYn == "Y"}'>[공지]</c:if>${itemAncmnt.title}
|
||||
<c:if test='${itemAncmnt.attachYn == "Y"}'><img src="/images/icon/icon-file.png" class="file" alt="파일 아이콘"></c:if></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Fl qna">
|
||||
<div class="ti"><span>Q&A</span><a href="javascript:void(0)" onclick="location.href='/bbs/listQnas.do';"><span>더보기 <img src="/images/icon/icon-more.png" alt="더보기 아이콘"></span></a></div>
|
||||
<div class="con">
|
||||
<c:forEach var="itemQna" items="${listQna }">
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<a href="javascript:void(0)" onclick="fn_viewQna('${itemQna.articleId}')">
|
||||
<div class="box"><p>${fn:substring(itemQna.regDd,8,10) }</p><p> ${fn:substring(itemQna.regDd,2,4) }.${fn:substring(itemQna.regDd,5,7) }</p></div>
|
||||
<div class="text">
|
||||
<p>[공지] 경주문화원에 오신걸 환영합니다.<img src="/images/icon/icon-password.png" class="pw" alt="잠금 아이콘"></p>
|
||||
</div>
|
||||
<div class="answer">
|
||||
<p>답변대기</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<div class="text">
|
||||
<p>소장자료관 이용 시 주의사항 안내<img src="/images/icon/icon-password.png" class="pw" alt="잠금 아이콘"></p>
|
||||
</div>
|
||||
<div class="answer">
|
||||
<p>답변대기</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="list">
|
||||
<a href="#">
|
||||
<div class="box"><p>05</p><p>21.09</p></div>
|
||||
<div class="text">
|
||||
<p>[공지] 2021 문화원 휴관일 안내 드립니다.</p>
|
||||
<p>${itemQna.title}
|
||||
<c:if test='${itemQna.attachYn == "Y"}'><img src="/images/icon/icon-file.png" class="file" alt="파일 아이콘"></c:if>
|
||||
<c:if test='${itemQna.secretYn == "Y"}'><img src="/images/icon/icon-password.png" class="pw" alt="잠금 아이콘"></c:if>
|
||||
</p>
|
||||
</div>
|
||||
<c:if test='${itemQna.answerYn == "Y"}'>
|
||||
<div class="answer suc">
|
||||
<p>답변완료</p>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test='${itemQna.answerYn != "Y"}'>
|
||||
<div class="answer">
|
||||
<p>답변대기</p>
|
||||
</div>
|
||||
</c:if>
|
||||
</a>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -294,7 +294,7 @@ $(document).ready(function() {
|
||||
<div class="v-date">
|
||||
<select id="hopeReqPridDtmFrom" name="hopeReqPridDtmFrom">
|
||||
<c:forEach var="dtItem" items="${listDates}" varStatus="status">
|
||||
<option value="${dtItem.dt }">${dtItem.dt } (${dtItem.dtName })</option>
|
||||
<option value="${dtItem.dt }">${dtItem.dt }</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<span>에서</span>
|
||||
@ -302,7 +302,7 @@ $(document).ready(function() {
|
||||
<c:forEach var="dtItem" items="${listDates}" varStatus="status">
|
||||
<option value="${dtItem.dt }"
|
||||
<c:if test='${status.count == 2}'>selected</c:if>
|
||||
>${dtItem.dt } (${dtItem.dtName })</option>
|
||||
>${dtItem.dt }</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<span>사이</span>
|
||||
|
||||
@ -244,12 +244,12 @@ $(document).ready(function() {
|
||||
<div class="compl-box">
|
||||
<div class="compl-icon"><img src="/images/icon/icon-cart-com.png" alt="체크 아이콘"></div>
|
||||
|
||||
<c:if test='${readVO.resultMessage == "S"}'>
|
||||
<div class="compl-text">자료 <span>${totCnt}</span>건 방문열람신청이 접수되었습니다. [${readVO.rsrvId}]</div>
|
||||
<c:if test='${readVO.resultCode == "S"}'>
|
||||
<div class="compl-text">자료 <span>${totCnt}</span>건 방문열람신청이 접수되었습니다.</div>
|
||||
<div class="compl-date">(희망방문일자: ${readVO.hopeReqPridDtmFrom} ~ ${readVO.hopeReqPridDtmTo})</div>
|
||||
</c:if>
|
||||
|
||||
<c:if test='${readVO.resultMessage != "S"}'>
|
||||
<c:if test='${readVO.resultCode != "S"}'>
|
||||
<div class="compl-text">처리에 실패하였습니다.</div>
|
||||
<div class="compl-date">${readVO.resultMessage } (${readVO.resultCode })</div>
|
||||
</c:if>
|
||||
|
||||
@ -134,17 +134,19 @@ function fn_search(reqStatusDivCd) {
|
||||
|
||||
var statusHtml1 = "";
|
||||
var statusHtml2 = "";
|
||||
var statusHtml3 = "";
|
||||
if(obj.reqStatusDivCd == null) {
|
||||
statusHtml1 = '<span class="ti imposs">-<span class="da"></span></span>';
|
||||
} else if(obj.reqStatusDivCd == "A0") { // 신청
|
||||
statusHtml1 = '<span class="ti imposs">' + obj.reqStatusDivNm + '<span class="da"></span></span>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_cancel(\"' + obj.title + '\",\"' + obj.mngOrgCd + '\", \"' + obj.reqId + '\", \"' + obj.masterId + '\")>취소</button>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_cancel(\'' + obj.title + '\',\'' + obj.mngOrgCd + '\', \'' + obj.reqId + '\', \'' + obj.masterId + '\')">취소</button>';
|
||||
} else if(obj.reqStatusDivCd == "A1") { // 승인
|
||||
statusHtml1 = '<span class="ti poss">' + obj.reqStatusDivNm + '<span class="da">' + fn_formatDateStr(obj.modDd,"-") + '</span></span>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_cancel(\"' + obj.title + '\",\"' + obj.mngOrgCd + '\", \"' + obj.reqId + '\", \"' + obj.masterId + '\")>취소</button>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_cancel(\'' + obj.title + '\',\'' + obj.mngOrgCd + '\', \'' + obj.reqId + '\', \'' + obj.masterId + '\')">취소</button>';
|
||||
} else if(obj.reqStatusDivCd == "A2") { // 반려
|
||||
statusHtml1 = '<span class="ti poss">' + obj.reqStatusDivNm + '<span class="da">' + fn_formatDateStr(obj.modDd,"-") + '</span></span>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_reson(\"' + obj.title + '\",\"' + obj.mngOrgCd + '\", \"' + obj.reqId + '\", \"' + obj.masterId + '\")>사유</button>';
|
||||
statusHtml2 = '<button type="button" onclick="fn_reson(\'' + obj.reqId + '\')">사유</button>';
|
||||
statusHtml3 = '<div id="rejected_reason_' + obj.reqId + '" style="display:none;">' + obj.rtnCont + '</div>';
|
||||
} else if(obj.reqStatusDivCd == "R") { // 열람완료
|
||||
statusHtml1 = '<span class="ti imposs">' + obj.reqStatusDivNm + '<span class="da">' + fn_formatDateStr(obj.modDd,"-") + '</span></span>';
|
||||
statusHtml2 = '';
|
||||
@ -153,7 +155,7 @@ function fn_search(reqStatusDivCd) {
|
||||
statusHtml2 = '';
|
||||
}
|
||||
|
||||
div.append($('<div />').attr('class', 'n-state').html(statusHtml1 + statusHtml2));
|
||||
div.append($('<div />').attr('class', 'n-state').html(statusHtml1 + statusHtml2 + statusHtml3));
|
||||
|
||||
$("div.list-data").append(div);
|
||||
|
||||
@ -167,6 +169,16 @@ function fn_search(reqStatusDivCd) {
|
||||
});
|
||||
}
|
||||
|
||||
function fn_reson(reqId) {
|
||||
$("#divRejectedReasonDetail").html($("#rejected_reason_" + reqId).text());
|
||||
$("#divRejectedReason").fadeIn();
|
||||
}
|
||||
|
||||
function fn_closeReason() {
|
||||
$("#divRejectedReason").fadeOut();
|
||||
$("#divRejectedReasonDetail").html("");
|
||||
}
|
||||
|
||||
function fn_cancel(title, mngOrgCd, reqId, masterId) {
|
||||
|
||||
if(!confirm(title + " 방문열람을 취소하시겠습니까?")) return;
|
||||
@ -292,3 +304,20 @@ function fn_search(reqStatusDivCd) {
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 소장자료 반려 팝업 -->
|
||||
<div id="divRejectedReason" class="pop-return" style="display:none;">
|
||||
<div class="row Title">
|
||||
<p>지방문화원 소장자료</p>
|
||||
<h3>반려사유</h3>
|
||||
</div>
|
||||
<div class="inner">
|
||||
<div class="row Text">
|
||||
<div class="text-box mCustomScrollbar" data-mcs-theme="dark-2" id="divRejectedReasonDetail"></div>
|
||||
</div>
|
||||
<div class="row btn-box">
|
||||
<button type="button" class="btn btn-color" onclick="fn_closeReason()">확인</button>
|
||||
</div>
|
||||
<button type="button" class="return-close" onclick="fn_closeReason()"></button>
|
||||
</div>
|
||||
<div class="Bg"></div>
|
||||
</div>
|
||||
|
||||
@ -284,8 +284,8 @@ transition: all 0.2s ease-in-out;
|
||||
.sec6 .onlineSwiper .items .List a.inner {display:block;}
|
||||
.sec6 .onlineSwiper .items .List .inner.light-type {color:#666;background-color:#fff;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail {overflow:hidden;position:relative;background-color:#f8f8f8;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail span.image-frame {display:block;height:100%;background:url('/images/img/img-no-image.gif') no-repeat 50% 0;background-size:contain;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail span.image-frame img {width:100%;height:100%;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail span.image-frame {display:block;display:flex;align-items:center;height:350px;background:url('/images/img/img-no-image.gif') no-repeat 50% 0;background-size:contain;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail span.image-frame img {width:100%;vertical-align:middle;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail div.detail-cover {position:absolute;left:0;right:0;top:0;height:100%;padding:0% 15px;border:1px solid #2e2e2e;font-size:12px;text-align:left;color:#fff;background-color:rgba(0,0,0,0.8);opacity:0;border-radius:10px;transition:opacity 0.3s ease;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail div.detail-cover strong {display:block;margin:30px 0px 20px;font-size:18px;height:55px;overflow:hidden;}
|
||||
.sec6 .onlineSwiper .items .List .inner div.thumbnail div.detail-cover ul li {line-height:23px;font-weight:100;}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user