commit 정리
This commit is contained in:
parent
47ef6eb778
commit
a280ea8c7b
@ -1,95 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- uac.service.board.qna_GET.xml -->
|
||||
<result>
|
||||
<code>S</code>
|
||||
<message>성공적으로 조회되었습니다.</message>
|
||||
<records>10</records>
|
||||
<page>1</page>
|
||||
<totPages>15</totPages>
|
||||
<record>
|
||||
<noticeNo>1</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
<page>1</page>
|
||||
<totPages>15</totPages>
|
||||
<records>125</records>
|
||||
<results>
|
||||
<articleNo>1</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>15</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>2</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>2</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>3</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>3</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>4</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>4</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>5</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>5</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>6</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>6</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>7</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>7</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>8</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>8</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>9</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>9</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>10</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>10</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>11</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<record>
|
||||
<noticeNo>12</noticeNo>
|
||||
<noticeType>101</noticeType>
|
||||
<title>공지사항 테스트</title>
|
||||
<readCount>55</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
</record>
|
||||
<end>3333</end>
|
||||
</results>
|
||||
</result>
|
||||
|
||||
|
||||
41
data/dataxml/uac.service.board.qna_GET.xml
Normal file
41
data/dataxml/uac.service.board.qna_GET.xml
Normal file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- uac.service.board.qna_GET.xml -->
|
||||
<result>
|
||||
<!-- 상세내용 -->
|
||||
<articleNo>5</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>공지사항 테스트</title>
|
||||
<articlePassword>111</articlePassword>
|
||||
<readCount>15</readCount>
|
||||
<regDate>2021-07-19</regDate>
|
||||
<regUserName>김아무</regUserName>
|
||||
<repStatus>답변완료</repStatus>
|
||||
<email>myid@digitalship.co.kr</email>
|
||||
<contentQeust>질문이 있습니다.</contentQeust>
|
||||
<contentQeustFile>111111=화면캡쳐.jpg;222222=화면캡쳐2.jpg;</contentQeustFile>
|
||||
<contentReply>이렇게 답변 드립니다.</contentReply>
|
||||
<contentReplyFile>333333=결과확인.jpg;</contentReplyFile>
|
||||
|
||||
<!-- 이전글, 다음글 -->
|
||||
<page>1</page>
|
||||
<totPages>1</totPages>
|
||||
<records>2</records>
|
||||
<results>
|
||||
<articleNo>4</articleNo>
|
||||
<articleType>101</articleType>
|
||||
<title>이전의 글제목입니다.</title>
|
||||
<regDate>2021-07-19</regDate>
|
||||
<regUserName>김아무</regUserName>
|
||||
<repStatus>답변완료</repStatus>
|
||||
</results>
|
||||
<results>
|
||||
<articleNo>6</articleNo>
|
||||
<articleType>102</articleType>
|
||||
<title>다음의 글제목입니다.</title>
|
||||
<regDate>2021-07-20</regDate>
|
||||
<regUserName>홍아무</regUserName>
|
||||
<repStatus>답변완료</repStatus>
|
||||
</results>
|
||||
|
||||
</result>
|
||||
|
||||
7
data/dataxml/uac.service.board.qna_POST.xml
Normal file
7
data/dataxml/uac.service.board.qna_POST.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- uac.service.board.qna_POST.xml -->
|
||||
<result>
|
||||
<!-- 상세내용 -->
|
||||
<articleNo>10</articleNo>
|
||||
</result>
|
||||
|
||||
7
data/dataxml/uac.service.board.qna_PUT.xml
Normal file
7
data/dataxml/uac.service.board.qna_PUT.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- uac.service.board.qna_PUT.xml -->
|
||||
<result>
|
||||
<!-- 상세내용 -->
|
||||
<articleNo>10</articleNo>
|
||||
</result>
|
||||
|
||||
143
src/main/webapp/WEB-INF/jsp/nlib/board/updateQnAForm.jsp
Normal file
143
src/main/webapp/WEB-INF/jsp/nlib/board/updateQnAForm.jsp
Normal file
@ -0,0 +1,143 @@
|
||||
<%
|
||||
/**
|
||||
* <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>
|
||||
|
||||
<!-- GRID -->
|
||||
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid.css" />
|
||||
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid-theme.css" />
|
||||
<script src="/nlib/js/jsgrid/nlib-jsgrid.js"></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">
|
||||
|
||||
|
||||
<input type="text" name="pageNo" id="pageNo" title="페이지번호" value="${pageNo}" size="5" maxlength="5" readonly />
|
||||
<input type="text" name="pageRows" id="pageRows" title="목록에 보여줄 글 개" value="${pageRows}" size="5" maxlength="5" readonly />
|
||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword}" size="35" maxlength="50" readonly />
|
||||
<input type="text" name="articleNo" id="articleNo" value="${articleNo}" title="선택글번호" readonly />
|
||||
<input type="text" name="articlePassword" id="articlePassword" value="${articlePassword}" title="글비밀번호" readonly />
|
||||
|
||||
<table class="table_content" style="width:100% !important;">
|
||||
<tr>
|
||||
<td>제목</td>
|
||||
<td><input type="text" name="title" id="title" title="제목" value="${article.title}" size="100" maxlength="200" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>작성자</td>
|
||||
<td><input type="text" name="regUserName" id="regUserName" title="제목" value="${article.regUserName}" size="100" maxlength="200" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>이메일</td>
|
||||
<td><input type="text" name="email" id="email" title="이메일" value="${article.email}" size="100" maxlength="200" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>기존비밀번호</td>
|
||||
<td><input type="text" name="encArticlePassword" id="encArticlePassword" title="제목" value="${encArticlePassword}" size="100" maxlength="200" readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>비밀번호</td>
|
||||
<td><input type="text" name="articlePassword" id="articlePassword" title="비밀번호" value="${article.articlePassword}" size="100" maxlength="200" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>질문내용</td>
|
||||
<td><textarea name="contentQeust" id="contentQeust">${article.contentQeust}</textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<button type="button" name="btnNew" id="btnNew" class="float"
|
||||
onclick="fn_view_detail('${articleNo}')">취소</button>
|
||||
<button type="button" name="btnNew" id="btnNew" class="float"
|
||||
onclick="fn_update()">저장</button>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<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();
|
||||
}
|
||||
|
||||
|
||||
var fn_updateForm = function (passwd) {
|
||||
if(passwd == null || passwd == "") {
|
||||
alert("수정을 위한 게시물의 비밀번호를 입력하여 주시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#articlePassword").val(passwd);
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/updateQnAForm.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
// 수정 처리
|
||||
function fn_update() {
|
||||
if(!confirm("저장하시겠습니까?")) return;
|
||||
|
||||
$("#articleForm").attr("action", "${pageContext.request.contextPath}/board/updateQnA.do");
|
||||
$("#articleForm").submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user