From 60453d43083d0bb7f1157ecff4b438b5a5da23c7 Mon Sep 17 00:00:00 2001 From: SeoJin Kim Date: Tue, 16 Mar 2021 05:20:57 +0900 Subject: [PATCH] =?UTF-8?q?[Spring][=EC=87=BC=ED=95=91=EB=AA=B0=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8][17]=20=EC=9E=91=EA=B0=80?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=ED=8E=98=EC=9D=B4=EC=A7=80=20-=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://kimvampa.tistory.com/189 --- .../com/vam/controller/AdminController.java | 4 +- .../WEB-INF/views/admin/authorModify.jsp | 151 +++++++++++ .../resources/css/admin/authorModify.css | 249 ++++++++++++++++++ .../maven/com.vam/controller/pom.properties | 2 +- .../com/vam/controller/AdminController.java | 6 +- .../WEB-INF/views/admin/authorModify.jsp | 151 +++++++++++ .../resources/css/admin/authorModify.css | 249 ++++++++++++++++++ .../maven/com.vam/controller/pom.properties | 2 +- 8 files changed, 807 insertions(+), 7 deletions(-) create mode 100644 VamPa/src/main/webapp/WEB-INF/views/admin/authorModify.jsp create mode 100644 VamPa/src/main/webapp/resources/css/admin/authorModify.css create mode 100644 VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorModify.jsp create mode 100644 VamPa_MySQL/src/main/webapp/resources/css/admin/authorModify.css diff --git a/VamPa/src/main/java/com/vam/controller/AdminController.java b/VamPa/src/main/java/com/vam/controller/AdminController.java index 5961bd3..a370921 100644 --- a/VamPa/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa/src/main/java/com/vam/controller/AdminController.java @@ -86,8 +86,8 @@ public class AdminController { } - /* 작가 상세 페이지 */ - @GetMapping("/authorDetail") + /* 작가 상세, 수정 페이지 */ + @GetMapping({"/authorDetail", "/authorModify"}) public void authorGetInfoGET(int authorId, Criteria cri, Model model) throws Exception { logger.info("authorDetail......." + authorId); diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/authorModify.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/authorModify.jsp new file mode 100644 index 0000000..c09e599 --- /dev/null +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/authorModify.jsp @@ -0,0 +1,151 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> + + + + +Insert title here + + + + + + <%@include file="../includes/admin/header.jsp" %> +
+
작가 상세
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + 작가 이름을 입력 해주세요. +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + 작가 소개를 입력 해주세요. +
+
+
+
+ +
+
+ "> +
+
+
+
+ +
+
+ "> +
+
+
+ + +
+
+
+
+ +
+ + + + +
+ <%@include file="../includes/admin/footer.jsp" %> + + + + + \ No newline at end of file diff --git a/VamPa/src/main/webapp/resources/css/admin/authorModify.css b/VamPa/src/main/webapp/resources/css/admin/authorModify.css new file mode 100644 index 0000000..fe5d746 --- /dev/null +++ b/VamPa/src/main/webapp/resources/css/admin/authorModify.css @@ -0,0 +1,249 @@ +@charset "UTF-8"; +*{ + margin: 0; + padding:0; +} +a{ + text-decoration: none; +} +a:link {color: black;} +a:visited {color: black;} +a:active {color: black;} +a:hover {color: black;} +ul{ + list-style: none; +} +/* 화면 전체 렙 */ +.wrapper{ + width: 100%; +} +/* content 랩 */ +.wrap{ + width : 1080px; + margin: auto; +} +/* 홈페이지 기능 네비 */ +.top_gnb_area{ + width: 100%; + height: 50px; + background-color: #f0f0f1; + position:relative; +} +.top_gnb_area .list{ + position: absolute; + top: 0px; + right: 0; + +} +.top_gnb_area .list li{ + list-style: none; + float : left; + padding: 13px 15px 0 10px; + font-weight: 900; + cursor: pointer; +} + +/* 관리제 페이지 상단 현페이지 정보 */ +.admin_top_wrap{ + height:110px; + line-height: 110px; + background-color: #5080bd; + margin-bottom: 15px; +} +.admin_top_wrap>span{ + margin-left: 30px; + display:inline-block; + color: white; + font-size: 50px; + font-weight: bolder; +} +/* 관리자 wrap(네비+컨텐츠) */ +.admin_wrap{ + + +} + +/* 관리자페이지 네비 영역 */ +.admin_navi_wrap{ + width: 20%; + height: 300px; + float:left; + height: 100%; +} +.admin_navi_wrap li{ + display: block; + height: 80px; + line-height: 80px; + text-align: center; +} +.admin_navi_wrap li a{ + display: block; + height: 100%; + width: 95%; + margin: 0 auto; + cursor: pointer; + font-size: 30px; + font-weight: bolder; +} + +.admin_list_04{ + background-color: #c8c8c8; +} + + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + min-height:700px; +} +/* 관리자 컨텐츠 제목 영역 */ +.admin_content_subject{ + font-size: 40px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 80px; + line-height: 80px; + color: white; +} +/* 관리자 컨텐츠 메인 영역 */ +.form_section{ + width: 95%; + margin-left: 2%; + margin-top: 20px; + border: 1px solid #dbdde2; + background-color: #efefef; +} +.form_section_title{ + padding: 20px 35px; +} +.form_section_title label{ + display: block; + font-size: 20px; + font-weight: 800; +} +.form_section_content{ + padding: 20px 35px; + border-top: 1px solid #dbdde2; +} +.form_section_content input{ + width: 98%; + height: 25px; + font-size: 20px; + padding: 5px 1%; +} +.form_section_content textarea{ + width: 98%; + height: 170px; + font-size: 20px; +} +.form_section_content select{ + width: 98%; + height: 35px; + font-size: 20px; + text-align-last: center; +} +.input_block{ + background-color:#f9f9f9; +} + +/* 입력란 공란 경고 태그 */ +.form_section_content span{ + display: none; + padding-top: 10px; + text-align: center; + color: #e05757; + font-weight: 300; +} + + + +/* 버튼 영역 */ +.btn_section{ + text-align: center; + margin: 80px 0; +} +.btn{ + min-width: 180px; + padding: 4px 30px; + font-size: 25px; + font-weight: 600; + line-height: 40px; +} +.modify_btn{ + background-color: #b8d3e8; + margin-left:15px; +} + + + + +/* footer navai 영역 */ +.footer_nav{ + width:100%; + height:50px; +} +.footer_nav_container{ + width: 100%; + height: 100%; + background-color:#8EC0E4; +} +.footer_nav_container>ul{ + font-weight : bold; + float:left; + list-style:none; + position:relative; + padding-top:10px; + line-height: 27px; + font-family: dotum; + margin-left: 10px; +} +.footer_nav_container>ul>li{ + display:inline; + width: 45px; + height: 19px; + padding: 10px 9px 0 10px; +} +.footer_nav_container>ul>span{ + margin: 0 4px; +} +/* footer 영역 */ +.footer{ + width:100%; + height:130px; + background-color:#D4DFE6; + padding-bottom : 50px; +} +.footer_container{ + width: 100%; + height: 100%; + margin: auto; +} +.footer_left>img { + width: 150%; + height: 130px; + margin-left: -20px; + margin-top: -12px; +} +.footer_left{ + float :left; + width: 170px; + margin-left: 20px; + margin-top : 30px; + +} +.footer_right{ + float :left; + width: 680px; + margin-left: 70px; + margin-top : 30px; +} + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 4c8270b..f3944be 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Mon Mar 15 03:58:10 KST 2021 +#Tue Mar 16 03:54:17 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa m2e.projectName=VamPa groupId=com.vam diff --git a/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java b/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java index d4c0a4b..1977cf2 100644 --- a/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java @@ -86,8 +86,8 @@ public class AdminController { } - /* 작가 상세 페이지 */ - @GetMapping("/authorDetail") + /* 작가 상세, 수정 페이지 */ + @GetMapping({"/authorDetail", "/authorModify"}) public void authorGetInfoGET(int authorId, Criteria cri, Model model) throws Exception { logger.info("authorDetail......." + authorId); @@ -98,7 +98,7 @@ public class AdminController { /* 선택 작가 정보 */ model.addAttribute("authorInfo", authorService.authorGetDetail(authorId)); - } + } } diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorModify.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorModify.jsp new file mode 100644 index 0000000..c09e599 --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorModify.jsp @@ -0,0 +1,151 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> + + + + +Insert title here + + + + + + <%@include file="../includes/admin/header.jsp" %> +
+
작가 상세
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + 작가 이름을 입력 해주세요. +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + 작가 소개를 입력 해주세요. +
+
+
+
+ +
+
+ "> +
+
+
+
+ +
+
+ "> +
+
+
+ + +
+
+
+
+ +
+ + + + +
+ <%@include file="../includes/admin/footer.jsp" %> + + + + + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/authorModify.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorModify.css new file mode 100644 index 0000000..fe5d746 --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorModify.css @@ -0,0 +1,249 @@ +@charset "UTF-8"; +*{ + margin: 0; + padding:0; +} +a{ + text-decoration: none; +} +a:link {color: black;} +a:visited {color: black;} +a:active {color: black;} +a:hover {color: black;} +ul{ + list-style: none; +} +/* 화면 전체 렙 */ +.wrapper{ + width: 100%; +} +/* content 랩 */ +.wrap{ + width : 1080px; + margin: auto; +} +/* 홈페이지 기능 네비 */ +.top_gnb_area{ + width: 100%; + height: 50px; + background-color: #f0f0f1; + position:relative; +} +.top_gnb_area .list{ + position: absolute; + top: 0px; + right: 0; + +} +.top_gnb_area .list li{ + list-style: none; + float : left; + padding: 13px 15px 0 10px; + font-weight: 900; + cursor: pointer; +} + +/* 관리제 페이지 상단 현페이지 정보 */ +.admin_top_wrap{ + height:110px; + line-height: 110px; + background-color: #5080bd; + margin-bottom: 15px; +} +.admin_top_wrap>span{ + margin-left: 30px; + display:inline-block; + color: white; + font-size: 50px; + font-weight: bolder; +} +/* 관리자 wrap(네비+컨텐츠) */ +.admin_wrap{ + + +} + +/* 관리자페이지 네비 영역 */ +.admin_navi_wrap{ + width: 20%; + height: 300px; + float:left; + height: 100%; +} +.admin_navi_wrap li{ + display: block; + height: 80px; + line-height: 80px; + text-align: center; +} +.admin_navi_wrap li a{ + display: block; + height: 100%; + width: 95%; + margin: 0 auto; + cursor: pointer; + font-size: 30px; + font-weight: bolder; +} + +.admin_list_04{ + background-color: #c8c8c8; +} + + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + min-height:700px; +} +/* 관리자 컨텐츠 제목 영역 */ +.admin_content_subject{ + font-size: 40px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 80px; + line-height: 80px; + color: white; +} +/* 관리자 컨텐츠 메인 영역 */ +.form_section{ + width: 95%; + margin-left: 2%; + margin-top: 20px; + border: 1px solid #dbdde2; + background-color: #efefef; +} +.form_section_title{ + padding: 20px 35px; +} +.form_section_title label{ + display: block; + font-size: 20px; + font-weight: 800; +} +.form_section_content{ + padding: 20px 35px; + border-top: 1px solid #dbdde2; +} +.form_section_content input{ + width: 98%; + height: 25px; + font-size: 20px; + padding: 5px 1%; +} +.form_section_content textarea{ + width: 98%; + height: 170px; + font-size: 20px; +} +.form_section_content select{ + width: 98%; + height: 35px; + font-size: 20px; + text-align-last: center; +} +.input_block{ + background-color:#f9f9f9; +} + +/* 입력란 공란 경고 태그 */ +.form_section_content span{ + display: none; + padding-top: 10px; + text-align: center; + color: #e05757; + font-weight: 300; +} + + + +/* 버튼 영역 */ +.btn_section{ + text-align: center; + margin: 80px 0; +} +.btn{ + min-width: 180px; + padding: 4px 30px; + font-size: 25px; + font-weight: 600; + line-height: 40px; +} +.modify_btn{ + background-color: #b8d3e8; + margin-left:15px; +} + + + + +/* footer navai 영역 */ +.footer_nav{ + width:100%; + height:50px; +} +.footer_nav_container{ + width: 100%; + height: 100%; + background-color:#8EC0E4; +} +.footer_nav_container>ul{ + font-weight : bold; + float:left; + list-style:none; + position:relative; + padding-top:10px; + line-height: 27px; + font-family: dotum; + margin-left: 10px; +} +.footer_nav_container>ul>li{ + display:inline; + width: 45px; + height: 19px; + padding: 10px 9px 0 10px; +} +.footer_nav_container>ul>span{ + margin: 0 4px; +} +/* footer 영역 */ +.footer{ + width:100%; + height:130px; + background-color:#D4DFE6; + padding-bottom : 50px; +} +.footer_container{ + width: 100%; + height: 100%; + margin: auto; +} +.footer_left>img { + width: 150%; + height: 130px; + margin-left: -20px; + margin-top: -12px; +} +.footer_left{ + float :left; + width: 170px; + margin-left: 20px; + margin-top : 30px; + +} +.footer_right{ + float :left; + width: 680px; + margin-left: 70px; + margin-top : 30px; +} + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 0fe0a70..da8b3e1 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Mon Mar 15 03:58:12 KST 2021 +#Tue Mar 16 03:54:19 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam