From d18eff2b475a884e9e813daee029a5407b3bccfe Mon Sep 17 00:00:00 2001 From: Hyung Geun Date: Tue, 4 Oct 2022 11:37:28 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=ED=86=B5=EA=B2=8C=EC=8B=9C=ED=8C=90?= =?UTF-8?q?=20=EC=88=98=EC=A0=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/js/publicBoard/board.js | 20 +++ .../resources/static/js/publicBoard/qna.js | 27 ++++ .../static/js/publicBoard/reference.js | 20 +++ .../publicBoard/board/boardEditModal.html | 64 ++++++++ .../publicBoard/board/boardPage.html | 146 ++++++++++++++++++ .../publicBoard/board/boardViewModal.html | 144 +++++++++++++++++ .../publicBoard/qna/qnaEditModal.html | 64 ++++++++ .../publicBoard/qna/qnaViewModal.html | 144 +++++++++++++++++ .../reference/referenceEditModal.html | 64 ++++++++ .../publicBoard/reference/referencePage.html | 146 ++++++++++++++++++ .../reference/referenceViewModal.html | 144 +++++++++++++++++ 11 files changed, 983 insertions(+) create mode 100644 src/main/resources/static/js/publicBoard/board.js create mode 100644 src/main/resources/static/js/publicBoard/qna.js create mode 100644 src/main/resources/static/js/publicBoard/reference.js create mode 100644 src/main/resources/templates/publicBoard/board/boardEditModal.html create mode 100644 src/main/resources/templates/publicBoard/board/boardPage.html create mode 100644 src/main/resources/templates/publicBoard/board/boardViewModal.html create mode 100644 src/main/resources/templates/publicBoard/qna/qnaEditModal.html create mode 100644 src/main/resources/templates/publicBoard/qna/qnaViewModal.html create mode 100644 src/main/resources/templates/publicBoard/reference/referenceEditModal.html create mode 100644 src/main/resources/templates/publicBoard/reference/referencePage.html create mode 100644 src/main/resources/templates/publicBoard/reference/referenceViewModal.html diff --git a/src/main/resources/static/js/publicBoard/board.js b/src/main/resources/static/js/publicBoard/board.js new file mode 100644 index 00000000..5ece21b3 --- /dev/null +++ b/src/main/resources/static/js/publicBoard/board.js @@ -0,0 +1,20 @@ +let files = []; + +$(document).on('click', '#addBoardBtn', function (){ + getEditModal(null, "PLB002") +}) + +$(document).on('click', '.planTr', function (){ + $(".trChkBox").prop("checked", false); + $(this).find(".trChkBox").prop("checked", true); + getViewModal(Number($(this).find(".planKey").val()), "PLB002"); +}) + +$(document).on('click', '#saveBtn', function (){ + savePublicBoard("boardEditForm", "PLB002") +}) + +$(document).on('click', '#editBtn', function (){ + $("#viewModal").modal('hide') + getEditModal($("#viewModalPublicKey").val(), "PLB002") +}) \ No newline at end of file diff --git a/src/main/resources/static/js/publicBoard/qna.js b/src/main/resources/static/js/publicBoard/qna.js new file mode 100644 index 00000000..e5a6a2b3 --- /dev/null +++ b/src/main/resources/static/js/publicBoard/qna.js @@ -0,0 +1,27 @@ +let files = []; + +$(function(){ + $("#dateSelectorDiv").datepicker({ + format: "yyyy-mm-dd", + language: "ko" + }); +}) + +$(document).on('click', '#addQnaBtn', function (){ + getEditModal(null, "PLB004") +}) + +$(document).on('click', '.planTr', function (){ + $(".trChkBox").prop("checked", false); + $(this).find(".trChkBox").prop("checked", true); + getViewModal(Number($(this).find(".planKey").val()), "PLB004"); +}) + +$(document).on('click', '#saveBtn', function (){ + savePublicBoard("qnaEditForm", "PLB004") +}) + +$(document).on('click', '#editBtn', function (){ + $("#viewModal").modal('hide') + getEditModal($("#viewModalPublicKey").val(), "PLB004") +}) \ No newline at end of file diff --git a/src/main/resources/static/js/publicBoard/reference.js b/src/main/resources/static/js/publicBoard/reference.js new file mode 100644 index 00000000..c0a3b906 --- /dev/null +++ b/src/main/resources/static/js/publicBoard/reference.js @@ -0,0 +1,20 @@ +let files = []; + +$(document).on('click', '#addReferenceBtn', function (){ + getEditModal(null, "PLB003") +}) + +$(document).on('click', '.planTr', function (){ + $(".trChkBox").prop("checked", false); + $(this).find(".trChkBox").prop("checked", true); + getViewModal(Number($(this).find(".planKey").val()), "PLB003"); +}) + +$(document).on('click', '#saveBtn', function (){ + savePublicBoard("referenceEditForm", "PLB003") +}) + +$(document).on('click', '#editBtn', function (){ + $("#viewModal").modal('hide') + getEditModal($("#viewModalPublicKey").val(), "PLB003") +}) \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/board/boardEditModal.html b/src/main/resources/templates/publicBoard/board/boardEditModal.html new file mode 100644 index 00000000..dc3fce1d --- /dev/null +++ b/src/main/resources/templates/publicBoard/board/boardEditModal.html @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/board/boardPage.html b/src/main/resources/templates/publicBoard/board/boardPage.html new file mode 100644 index 00000000..9640eb5d --- /dev/null +++ b/src/main/resources/templates/publicBoard/board/boardPage.html @@ -0,0 +1,146 @@ + + + + + + +
+
+

게시판

+ + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
제목관서부서작성자작성일시첨부파일댓글
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+ + + +
+ \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/board/boardViewModal.html b/src/main/resources/templates/publicBoard/board/boardViewModal.html new file mode 100644 index 00000000..d8c86425 --- /dev/null +++ b/src/main/resources/templates/publicBoard/board/boardViewModal.html @@ -0,0 +1,144 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/qna/qnaEditModal.html b/src/main/resources/templates/publicBoard/qna/qnaEditModal.html new file mode 100644 index 00000000..64fbbca8 --- /dev/null +++ b/src/main/resources/templates/publicBoard/qna/qnaEditModal.html @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/qna/qnaViewModal.html b/src/main/resources/templates/publicBoard/qna/qnaViewModal.html new file mode 100644 index 00000000..d8c86425 --- /dev/null +++ b/src/main/resources/templates/publicBoard/qna/qnaViewModal.html @@ -0,0 +1,144 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/reference/referenceEditModal.html b/src/main/resources/templates/publicBoard/reference/referenceEditModal.html new file mode 100644 index 00000000..1e132e00 --- /dev/null +++ b/src/main/resources/templates/publicBoard/reference/referenceEditModal.html @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/reference/referencePage.html b/src/main/resources/templates/publicBoard/reference/referencePage.html new file mode 100644 index 00000000..6160d33e --- /dev/null +++ b/src/main/resources/templates/publicBoard/reference/referencePage.html @@ -0,0 +1,146 @@ + + + + + + +
+
+

자료실

+ + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
제목관서부서작성자작성일시첨부파일댓글
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+ + + +
+ \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/reference/referenceViewModal.html b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html new file mode 100644 index 00000000..d8c86425 --- /dev/null +++ b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html @@ -0,0 +1,144 @@ + + + + + \ No newline at end of file