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