diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
index 4f7ca2b..fa53181 100644
--- a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
+++ b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
@@ -6,12 +6,14 @@
Insert title here
-
+
+
+
@@ -43,7 +45,7 @@
-
+
@@ -149,7 +151,31 @@ $("#enrollBtn").on("click",function(e){
console.error(error);
});
+/* 캘린더 위젯 적용 */
+ /* 설정 */
+ const config = {
+ dateFormat: 'yy-mm-dd',
+ showOn : "button",
+ buttonText:"날짜 선택",
+ prevText: '이전 달',
+ nextText: '다음 달',
+ monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
+ monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
+ dayNames: ['일','월','화','수','목','금','토'],
+ dayNamesShort: ['일','월','화','수','목','금','토'],
+ dayNamesMin: ['일','월','화','수','목','금','토'],
+ yearSuffix: '년',
+ changeMonth: true,
+ changeYear: true
+ }
+
+ /* 캘린더 */
+ $(function() {
+ $( "input[name='publeYear']" ).datepicker(config);
+ });
+
+
diff --git a/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css b/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css
index 2f411d0..ab790f5 100644
--- a/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css
+++ b/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css
@@ -143,6 +143,22 @@ ul{
height: 170px;
}
+
+.ui-datepicker-trigger { /* 캘린더 css 설정 */
+ margin-left: 25px;
+ width: 14%;
+ height: 38px;
+ font-weight: 600;
+ background-color: #dfe8f5;
+ font-size: 15px;
+ cursor:pointer;
+}
+input[name='publeYear'] {
+ width: 80%;
+ text-align: center;
+}
+
+
/* 버튼 영역 */
.btn_section{
text-align: center;
diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
index 4f7ca2b..fa53181 100644
--- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
+++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp
@@ -6,12 +6,14 @@
Insert title here
-
+
+
+
@@ -43,7 +45,7 @@
-
+
@@ -149,7 +151,31 @@ $("#enrollBtn").on("click",function(e){
console.error(error);
});
+/* 캘린더 위젯 적용 */
+ /* 설정 */
+ const config = {
+ dateFormat: 'yy-mm-dd',
+ showOn : "button",
+ buttonText:"날짜 선택",
+ prevText: '이전 달',
+ nextText: '다음 달',
+ monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
+ monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
+ dayNames: ['일','월','화','수','목','금','토'],
+ dayNamesShort: ['일','월','화','수','목','금','토'],
+ dayNamesMin: ['일','월','화','수','목','금','토'],
+ yearSuffix: '년',
+ changeMonth: true,
+ changeYear: true
+ }
+
+ /* 캘린더 */
+ $(function() {
+ $( "input[name='publeYear']" ).datepicker(config);
+ });
+
+
diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css
index 2f411d0..ab790f5 100644
--- a/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css
+++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css
@@ -143,6 +143,22 @@ ul{
height: 170px;
}
+
+.ui-datepicker-trigger { /* 캘린더 css 설정 */
+ margin-left: 25px;
+ width: 14%;
+ height: 38px;
+ font-weight: 600;
+ background-color: #dfe8f5;
+ font-size: 15px;
+ cursor:pointer;
+}
+input[name='publeYear'] {
+ width: 80%;
+ text-align: center;
+}
+
+
/* 버튼 영역 */
.btn_section{
text-align: center;