diff --git a/VamPa/src/main/java/com/vam/controller/AdminController.java b/VamPa/src/main/java/com/vam/controller/AdminController.java index 1f9f5fa..6901cef 100644 --- a/VamPa/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa/src/main/java/com/vam/controller/AdminController.java @@ -135,10 +135,24 @@ public class AdminController { /* 작가 검색 팝업창 */ @GetMapping("/authorPop") - public void authorPopGET() throws Exception{ + public void authorPopGET(Criteria cri, Model model) throws Exception{ logger.info("authorPopGET......."); - + + cri.setAmount(5); + + /* 게시물 출력 데이터 */ + List list = authorService.authorGetList(cri); + + if(!list.isEmpty()) { + model.addAttribute("list",list); // 작가 존재 경우 + } else { + model.addAttribute("listCheck", "empty"); // 작가 존재하지 않을 경우 + } + + + /* 페이지 이동 인터페이스 데이터 */ + model.addAttribute("pageMaker", new PageDTO(cri, authorService.authorGetTotal(cri))); } } diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/authorPop.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/authorPop.jsp index 3a5cd95..8e4b6ed 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/authorPop.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/authorPop.jsp @@ -1,12 +1,160 @@ <%@ 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 + + -

작가 선택 pop 페이지

+
+
+ 작가 선택 +
+
+ +
+ + +
+ + + + + + + + + + + + + + + +
작가 번호작가 이름작가 국가
+ + + +
+
+
+ + +
+ 등록된 작가가 없습니다. +
+
+ + +
+
+
+ + + + +
+
+
+ + +
+ + + +
+ +
+ + + +
+ + +
+ +
+ \ No newline at end of file diff --git a/VamPa/src/main/webapp/resources/css/admin/authorPop.css b/VamPa/src/main/webapp/resources/css/admin/authorPop.css new file mode 100644 index 0000000..381b790 --- /dev/null +++ b/VamPa/src/main/webapp/resources/css/admin/authorPop.css @@ -0,0 +1,116 @@ +@charset "UTF-8"; + +/* 전체 wrap */ +.wrapper{ + width:100%; + height:535px; +} +.subject_name_warp{ + font-size: 33px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 13%; + line-height: 70px; + color: white; +} +.content_wrap{ + height:87%; +} + + + + + /* 작가 목록 영역 */ +.author_table_wrap{ + padding: 20px 35px +} +.table_exist{ + height:251px; +} +.author_table{ + width: 100%; + border: 1px solid #d3d8e1; + text-align: center; + border-collapse: collapse; +} +.author_table td{ + padding: 10px 5px; + border : 1px solid #e9ebf0; +} +.author_table thead{ + background-color: #f8f9fd; + font-weight: 600; +} +.author_table a{ + color:#1088ed; + font-weight: 500; +} +.th_column_1{ + width:120px; +} +.th_column_3{ + width:110px; +} + + +.table_empty{ + text-align: center; + margin: 101px 0 130px 0; + font-size: 25px; +} + + /* 검색 영역 */ +.search_wrap{ + margin-top:25px; +} +.search_input{ + position: relative; + text-align:center; +} +.search_input input[name='keyword']{ + padding: 4px 10px; + font-size: 15px; + height: 20px; + line-height: 20px; +} +.search_btn{ + height: 32px; + width: 80px; + font-weight: 600; + font-size: 18px; + line-height: 20px; + position: absolute; + margin-left: 15px; + background-color: #c3daf7; +} + + /* 페이지 버튼 인터페이스 */ +.pageMaker_wrap{ + margin-top: 20px; + margin-bottom: 40px; +} +.pageMaker{ + list-style: none; + display: inline-block; +} +.pageMaker_btn { + text-align: center; + float: left; + width: 30px; + height: 30px; + line-height: 30px; + margin-left: 8px; + font-size: 15px; +} +.active{ + border : 2px solid black; + font-weight:400; +} +.next, .prev { + border: 1px solid #ccc; + padding: 0 10px; +} +.next a, .prev a { + color: #ccc; +} \ No newline at end of file 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 7ded0c5..ddd51da 100644 --- a/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java @@ -133,13 +133,29 @@ public class AdminController { return "redirect:/admin/goodsManage"; } + /* 작가 검색 팝업창 */ @GetMapping("/authorPop") - public void authorPopGET() throws Exception{ + public void authorPopGET(Criteria cri, Model model) throws Exception{ logger.info("authorPopGET......."); - - } + + cri.setAmount(5); + + /* 게시물 출력 데이터 */ + List list = authorService.authorGetList(cri); + + if(!list.isEmpty()) { + model.addAttribute("list",list); // 작가 존재 경우 + } else { + model.addAttribute("listCheck", "empty"); // 작가 존재하지 않을 경우 + } + + + /* 페이지 이동 인터페이스 데이터 */ + model.addAttribute("pageMaker", new PageDTO(cri, authorService.authorGetTotal(cri))); + } + } diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorPop.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorPop.jsp index 3a5cd95..8e4b6ed 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorPop.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorPop.jsp @@ -1,12 +1,160 @@ <%@ 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 + + -

작가 선택 pop 페이지

+
+
+ 작가 선택 +
+
+ +
+ + +
+ + + + + + + + + + + + + + + +
작가 번호작가 이름작가 국가
+ + + +
+
+
+ + +
+ 등록된 작가가 없습니다. +
+
+ + +
+
+
+ + + + +
+
+
+ + +
+ + + +
+ +
+ + + +
+ + +
+ +
+ \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/authorPop.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorPop.css new file mode 100644 index 0000000..381b790 --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorPop.css @@ -0,0 +1,116 @@ +@charset "UTF-8"; + +/* 전체 wrap */ +.wrapper{ + width:100%; + height:535px; +} +.subject_name_warp{ + font-size: 33px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 13%; + line-height: 70px; + color: white; +} +.content_wrap{ + height:87%; +} + + + + + /* 작가 목록 영역 */ +.author_table_wrap{ + padding: 20px 35px +} +.table_exist{ + height:251px; +} +.author_table{ + width: 100%; + border: 1px solid #d3d8e1; + text-align: center; + border-collapse: collapse; +} +.author_table td{ + padding: 10px 5px; + border : 1px solid #e9ebf0; +} +.author_table thead{ + background-color: #f8f9fd; + font-weight: 600; +} +.author_table a{ + color:#1088ed; + font-weight: 500; +} +.th_column_1{ + width:120px; +} +.th_column_3{ + width:110px; +} + + +.table_empty{ + text-align: center; + margin: 101px 0 130px 0; + font-size: 25px; +} + + /* 검색 영역 */ +.search_wrap{ + margin-top:25px; +} +.search_input{ + position: relative; + text-align:center; +} +.search_input input[name='keyword']{ + padding: 4px 10px; + font-size: 15px; + height: 20px; + line-height: 20px; +} +.search_btn{ + height: 32px; + width: 80px; + font-weight: 600; + font-size: 18px; + line-height: 20px; + position: absolute; + margin-left: 15px; + background-color: #c3daf7; +} + + /* 페이지 버튼 인터페이스 */ +.pageMaker_wrap{ + margin-top: 20px; + margin-bottom: 40px; +} +.pageMaker{ + list-style: none; + display: inline-block; +} +.pageMaker_btn { + text-align: center; + float: left; + width: 30px; + height: 30px; + line-height: 30px; + margin-left: 8px; + font-size: 15px; +} +.active{ + border : 2px solid black; + font-weight:400; +} +.next, .prev { + border: 1px solid #ccc; + padding: 0 10px; +} +.next a, .prev a { + color: #ccc; +} \ No newline at end of file