diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp index 217190e..55846d0 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp @@ -13,6 +13,16 @@ integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"> + <%@include file="../includes/admin/header.jsp" %> @@ -135,6 +145,18 @@ + +
+
+ +
+
+ +
+ +
+
+
@@ -272,6 +294,38 @@ } }); + /* 이미지 정보 호출 */ + let bookId = ''; + let uploadReslut = $("#uploadReslut"); + + $.getJSON("/getAttachList", {bookId : bookId}, function(arr){ + + if(arr.length === 0){ + + let str = ""; + str += "
"; + str += ""; + str += "
"; + + uploadReslut.html(str); + + return; + } + + let str = ""; + let obj = arr[0]; + + let fileCallPath = encodeURIComponent(obj.uploadPath + "/s_" + obj.uuid + "_" + obj.fileName); + str += "
"; + str += "
"; + + uploadReslut.html(str); + + }); + }); // $(document).ready diff --git a/VamPa/src/main/webapp/resources/img/goodsNoImage.png b/VamPa/src/main/webapp/resources/img/goodsNoImage.png new file mode 100644 index 0000000..a2e8c90 Binary files /dev/null and b/VamPa/src/main/webapp/resources/img/goodsNoImage.png differ diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp index 217190e..72e1f62 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsDetail.jsp @@ -13,6 +13,16 @@ integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"> + <%@include file="../includes/admin/header.jsp" %> @@ -135,6 +145,18 @@
+ +
+
+ +
+
+ +
+ +
+
+
@@ -272,6 +294,38 @@ } }); + /* 이미지 정보 호출 */ + let bookId = ''; + let uploadReslut = $("#uploadReslut"); + + $.getJSON("/getAttachList", {bookId : bookId}, function(arr){ + + if(arr.length === 0){ + + let str = ""; + str += "
"; + str += ""; + str += "
"; + + uploadReslut.html(str); + + return; + } + + let str = ""; + let obj = arr[0]; + + let fileCallPath = encodeURIComponent(obj.uploadPath + "/s_" + obj.uuid + "_" + obj.fileName); + str += "
"; + str += "
"; + + uploadReslut.html(str); + + }); + }); // $(document).ready diff --git a/VamPa_MySQL/src/main/webapp/resources/img/goodsNoImage.png b/VamPa_MySQL/src/main/webapp/resources/img/goodsNoImage.png new file mode 100644 index 0000000..a2e8c90 Binary files /dev/null and b/VamPa_MySQL/src/main/webapp/resources/img/goodsNoImage.png differ