@@ -1,10 +1,16 @@
|
||||
package com.vam.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.vam.model.AuthorVO;
|
||||
import com.vam.model.Criteria;
|
||||
|
||||
public interface AuthorMapper {
|
||||
|
||||
/* 작가 등록 */
|
||||
public void authorEnroll(AuthorVO author);
|
||||
|
||||
/* 작가 목록 */
|
||||
public List<AuthorVO> authorGetList(Criteria cri);
|
||||
|
||||
}
|
||||
|
||||
71
VamPa/src/main/java/com/vam/model/Criteria.java
Normal file
71
VamPa/src/main/java/com/vam/model/Criteria.java
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.vam.model;
|
||||
|
||||
public class Criteria {
|
||||
|
||||
/* 현재 페이지 번호 */
|
||||
private int pageNum;
|
||||
|
||||
/* 페이지 표시 개수 */
|
||||
private int amount;
|
||||
|
||||
/* 검색 타입 */
|
||||
private String type;
|
||||
|
||||
/* 검색 키워드 */
|
||||
private String keyword;
|
||||
|
||||
/* Criteria 생성자 */
|
||||
public Criteria(int pageNum, int amount) {
|
||||
this.pageNum = pageNum;
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
/* Criteria 기본 생성자 */
|
||||
public Criteria(){
|
||||
this(1,10);
|
||||
}
|
||||
|
||||
/* 검색 타입 데이터 배열 변환 */
|
||||
public String[] getTypeArr() {
|
||||
return type == null? new String[] {}:type.split("");
|
||||
}
|
||||
|
||||
public int getPageNum() {
|
||||
return pageNum;
|
||||
}
|
||||
|
||||
public void setPageNum(int pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(int amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getKeyword() {
|
||||
return keyword;
|
||||
}
|
||||
|
||||
public void setKeyword(String keyword) {
|
||||
this.keyword = keyword;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Criteria [pageNum=" + pageNum + ", amount=" + amount + ", type=" + type + ", keyword=" + keyword + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -11,4 +11,28 @@
|
||||
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 작가 목록 -->
|
||||
<select id="authorGetList" resultType="com.vam.model.AuthorVO">
|
||||
|
||||
<![CDATA[
|
||||
select * from (
|
||||
select /*+INDEX_DESC(vam_author SYS_C007515) */
|
||||
rownum as rn, authorid, authorname, nationid, regdate, updatedate
|
||||
from vam_author
|
||||
where
|
||||
|
||||
]]>
|
||||
<if test="keyword != null">
|
||||
authorname like '%'||#{keyword}||'%' and
|
||||
</if>
|
||||
|
||||
<![CDATA[
|
||||
rownum <= #{pageNum}*#{amount}
|
||||
)
|
||||
where rn > (#{pageNum} - 1) * #{amount}
|
||||
]]>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -15,43 +15,8 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>작가 등록</span></div>
|
||||
<div class="admin_content_main">
|
||||
@@ -94,49 +59,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@@ -16,89 +16,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>작가 관리</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
@@ -15,89 +15,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>상품 등록</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -15,89 +15,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>상품 관리</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -14,90 +14,13 @@
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div>관리자 페이지 입니다.</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
@@ -0,0 +1,40 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -95,9 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
|
||||
|
||||
min-height:700px;
|
||||
}
|
||||
/* 관리자 컨텐츠 제목 영역 */
|
||||
.admin_content_subject{
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -91,8 +91,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
height:700px;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_wrap div{
|
||||
margin-top: 280px;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.vam.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -7,6 +9,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import com.vam.model.AuthorVO;
|
||||
import com.vam.model.Criteria;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration("file:src/main/webapp/WEB-INF/spring/root-context.xml")
|
||||
@@ -16,6 +19,7 @@ public class AuthorMapperTests {
|
||||
private AuthorMapper mapper;
|
||||
|
||||
/* 작가 등록 테스트 */
|
||||
/*
|
||||
@Test
|
||||
public void authorEnroll() throws Exception{
|
||||
|
||||
@@ -28,5 +32,23 @@ public class AuthorMapperTests {
|
||||
mapper.authorEnroll(author);
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/* 작가 목록 테스트 */
|
||||
@Test
|
||||
public void authorGetListTest() throws Exception{
|
||||
|
||||
Criteria cri = new Criteria(3,10); // 3페이지 & 10개 행 표시
|
||||
cri.setKeyword("엘런");
|
||||
|
||||
List<AuthorVO> list = mapper.authorGetList(cri);
|
||||
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
System.out.println("list" + i + ".........." + list.get(i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -11,4 +11,28 @@
|
||||
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 작가 목록 -->
|
||||
<select id="authorGetList" resultType="com.vam.model.AuthorVO">
|
||||
|
||||
<![CDATA[
|
||||
select * from (
|
||||
select /*+INDEX_DESC(vam_author SYS_C007515) */
|
||||
rownum as rn, authorid, authorname, nationid, regdate, updatedate
|
||||
from vam_author
|
||||
where
|
||||
|
||||
]]>
|
||||
<if test="keyword != null">
|
||||
authorname like '%'||#{keyword}||'%' and
|
||||
</if>
|
||||
|
||||
<![CDATA[
|
||||
rownum <= #{pageNum}*#{amount}
|
||||
)
|
||||
where rn > (#{pageNum} - 1) * #{amount}
|
||||
]]>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Wed Feb 10 07:15:33 KST 2021
|
||||
#Wed Mar 10 06:27:33 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa
|
||||
m2e.projectName=VamPa
|
||||
groupId=com.vam
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
package com.vam.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.vam.model.AuthorVO;
|
||||
import com.vam.model.Criteria;
|
||||
|
||||
public interface AuthorMapper {
|
||||
|
||||
/* 작가 등록 */
|
||||
public void authorEnroll(AuthorVO author);
|
||||
|
||||
/* 작가 목록 */
|
||||
public List<AuthorVO> authorGetList(Criteria cri);
|
||||
|
||||
}
|
||||
|
||||
86
VamPa_MySQL/src/main/java/com/vam/model/Criteria.java
Normal file
86
VamPa_MySQL/src/main/java/com/vam/model/Criteria.java
Normal file
@@ -0,0 +1,86 @@
|
||||
package com.vam.model;
|
||||
|
||||
public class Criteria {
|
||||
|
||||
/* 현재 페이지 번호 */
|
||||
private int pageNum;
|
||||
|
||||
/* 페이지 표시 개수 */
|
||||
private int amount;
|
||||
|
||||
/* 페이지 skip */
|
||||
private int skip;
|
||||
|
||||
/* 검색 타입 */
|
||||
private String type;
|
||||
|
||||
/* 검색 키워드 */
|
||||
private String keyword;
|
||||
|
||||
/* Criteria 생성자 */
|
||||
public Criteria(int pageNum, int amount) {
|
||||
this.pageNum = pageNum;
|
||||
this.amount = amount;
|
||||
this.skip = (pageNum -1) * amount;
|
||||
}
|
||||
|
||||
/* Criteria 기본 생성자 */
|
||||
public Criteria(){
|
||||
this(1,10);
|
||||
}
|
||||
|
||||
/* 검색 타입 데이터 배열 변환 */
|
||||
public String[] getTypeArr() {
|
||||
return type == null? new String[] {}:type.split("");
|
||||
}
|
||||
|
||||
public int getPageNum() {
|
||||
return pageNum;
|
||||
}
|
||||
|
||||
public void setPageNum(int pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
this.skip = (pageNum - 1) * this.amount;
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(int amount) {
|
||||
this.amount = amount;
|
||||
this.skip = (this.pageNum - 1) * amount;
|
||||
}
|
||||
|
||||
public int getSkip() {
|
||||
return skip;
|
||||
}
|
||||
|
||||
public void setSkip(int skip) {
|
||||
this.skip = skip;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getKeyword() {
|
||||
return keyword;
|
||||
}
|
||||
|
||||
public void setKeyword(String keyword) {
|
||||
this.keyword = keyword;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Criteria [pageNum=" + pageNum + ", amount=" + amount + ", skip=" + skip + ", type=" + type
|
||||
+ ", keyword=" + keyword + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -11,4 +11,18 @@
|
||||
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 작가 목록 -->
|
||||
<select id="authorGetList" resultType="com.vam.model.AuthorVO">
|
||||
|
||||
select authorid, authorname, nationid, regdate, updatedate
|
||||
from vam_author
|
||||
<if test="keyword != null">
|
||||
where authorname like concat('%',#{keyword}, '%')
|
||||
</if>
|
||||
order by authorid desc
|
||||
limit #{skip}, #{amount}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -15,43 +15,8 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>작가 등록</span></div>
|
||||
<div class="admin_content_main">
|
||||
@@ -94,49 +59,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@@ -16,89 +16,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>작가 관리</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
@@ -15,89 +15,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>상품 등록</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -15,89 +15,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>상품 관리</span></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<link rel="stylesheet" href="../resources/css/admin/main.css">
|
||||
<link rel="stylesheet" href="../resources/css/admin/authorEnroll.css">
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
@@ -15,89 +15,113 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="admin_content_wrap">
|
||||
<div>관리자 페이지 입니다.</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
<%@include file="../includes/admin/header.jsp" %>
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
<div class="admin_content_wrap">
|
||||
<div class="admin_content_subject"><span>작가 등록</span></div>
|
||||
<div class="admin_content_main">
|
||||
<form action="/admin/authorEnroll.do" method="post" id="enrollForm">
|
||||
<div class="form_section">
|
||||
<div class="form_section_title">
|
||||
<label>작가 이름</label>
|
||||
</div>
|
||||
<div class="form_section_content">
|
||||
<input name="authorName">
|
||||
<span id="warn_authorName">작가 이름을 입력 해주세요.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form_section">
|
||||
<div class="form_section_title">
|
||||
<label>소속 국가</label>
|
||||
</div>
|
||||
<div class="form_section_content">
|
||||
<select name="nationId">
|
||||
<option value="none" selected>=== 선택 ===</option>
|
||||
<option value="01">국내</option>
|
||||
<option value="02">국외</option>
|
||||
</select>
|
||||
<span id="warn_nationId">소속 국가를 선택해주세요.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form_section">
|
||||
<div class="form_section_title">
|
||||
<label>작가소개</label>
|
||||
</div>
|
||||
<div class="form_section_content">
|
||||
<input name="authorIntro" type="text">
|
||||
<span id="warn_authorIntro">작가 소개를 입력 해주세요.</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="btn_section">
|
||||
<button id="cancelBtn" class="btn">취 소</button>
|
||||
<button id="enrollBtn" class="btn enroll_btn">등 록</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%@include file="../includes/admin/footer.jsp" %>
|
||||
|
||||
<script>
|
||||
|
||||
/* 등록 버튼 */
|
||||
$("#enrollBtn").click(function(){
|
||||
/* 검사 통과 유무 변수 */
|
||||
let nameCheck = false; // 작가 이름
|
||||
let nationCheck = false; // 소속 국가
|
||||
let introCheck = false; // 작가 소개
|
||||
|
||||
/* 입력값 변수 */
|
||||
let authorName = $('input[name=authorName]').val(); // 작가 이름
|
||||
let nationId = $('select[name=nationId]').val(); // 소속 국가
|
||||
let authorIntro = $('input[name=authorIntro]').val(); // 작가 소개
|
||||
/* 공란 경고 span태그 */
|
||||
let wAuthorName = $('#warn_authorName');
|
||||
let wNationId = $('#warn_nationId');
|
||||
let wAuthorIntro = $('#warn_authorIntro');
|
||||
|
||||
/* 작기 이름 공란 체크 */
|
||||
if(authorName ===''){
|
||||
wAuthorName.css('display', 'block');
|
||||
nameCheck = false;
|
||||
} else{
|
||||
wAuthorName.css('display', 'none');
|
||||
nameCheck = true;
|
||||
}
|
||||
|
||||
/* 소속 국가 공란 체크 */
|
||||
if(nationId ==='none'){
|
||||
wNationId.css('display', 'block');
|
||||
nationCheck = false;
|
||||
} else{
|
||||
wNationId.css('display', 'none');
|
||||
nationCheck = true;
|
||||
}
|
||||
|
||||
/* 작가 소개 공란 체크 */
|
||||
if(authorIntro ===''){
|
||||
wAuthorIntro.css('display', 'block');
|
||||
introCheck = false;
|
||||
} else{
|
||||
wAuthorIntro.css('display', 'none');
|
||||
introCheck = true;
|
||||
}
|
||||
|
||||
/* 최종 검사 */
|
||||
if(nameCheck && nationCheck && introCheck){
|
||||
$("#enrollForm").submit();
|
||||
} else{
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
/* 취소 버튼 */
|
||||
$("#cancelBtn").click(function(){
|
||||
location.href="/admin/authorManage"
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Footer 영역 -->
|
||||
<div class="footer_nav">
|
||||
<div class="footer_nav_container">
|
||||
<ul>
|
||||
<li>회사소개</li>
|
||||
<span class="line">|</span>
|
||||
<li>이용약관</li>
|
||||
<span class="line">|</span>
|
||||
<li>고객센터</li>
|
||||
<span class="line">|</span>
|
||||
<li>광고문의</li>
|
||||
<span class="line">|</span>
|
||||
<li>채용정보</li>
|
||||
<span class="line">|</span>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- class="footer_nav" -->
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer_container">
|
||||
|
||||
<div class="footer_left">
|
||||
<img src="../resources/img/Logo.png">
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
(주) VamBook 대표이사 : OOO
|
||||
<br>
|
||||
사업자등록번호 : ooo-oo-ooooo
|
||||
<br>
|
||||
대표전화 : oooo-oooo(발신자 부담전화)
|
||||
<br>
|
||||
<br>
|
||||
COPYRIGHT(C) <strong>kimvampa.tistory.com</strong> ALL RIGHTS RESERVED.
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div> <!-- class="footer" -->
|
||||
|
||||
</div> <!-- class="wrap" -->
|
||||
</div> <!-- class="wrapper" -->
|
||||
@@ -0,0 +1,40 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="wrap">
|
||||
<!-- gnv_area -->
|
||||
<div class="top_gnb_area">
|
||||
<ul class="list">
|
||||
<li><a href="/main">메인 페이지</a></li>
|
||||
<li><a href="/member/logout.do">로그아웃</a></li>
|
||||
<li>고객센터</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- top_subject_area -->
|
||||
<div class="admin_top_wrap">
|
||||
<span>관리자 페이지</span>
|
||||
|
||||
</div>
|
||||
<!-- contents-area -->
|
||||
<div class="admin_wrap">
|
||||
<!-- 네비영역 -->
|
||||
<div class="admin_navi_wrap">
|
||||
<ul>
|
||||
<li >
|
||||
<a class="admin_list_01" href="/admin/goodsEnroll">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02" href="/admin/goodsManage">상품 관리</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03" href="/admin/authorEnroll">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04" href="/admin/authorManage">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -95,9 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
|
||||
|
||||
min-height:700px;
|
||||
}
|
||||
/* 관리자 컨텐츠 제목 영역 */
|
||||
.admin_content_subject{
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -95,7 +95,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_subject{ /* 관리자 컨텐츠 제목 영역 */
|
||||
font-size: 40px;
|
||||
|
||||
@@ -91,8 +91,7 @@ ul{
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
height:700px;
|
||||
min-height:700px;
|
||||
}
|
||||
.admin_content_wrap div{
|
||||
margin-top: 280px;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.vam.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -7,6 +9,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import com.vam.model.AuthorVO;
|
||||
import com.vam.model.Criteria;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration("file:src/main/webapp/WEB-INF/spring/root-context.xml")
|
||||
@@ -16,6 +19,7 @@ public class AuthorMapperTests {
|
||||
private AuthorMapper mapper;
|
||||
|
||||
/* 작가 등록 테스트 */
|
||||
/*
|
||||
@Test
|
||||
public void authorEnroll() throws Exception{
|
||||
|
||||
@@ -28,5 +32,21 @@ public class AuthorMapperTests {
|
||||
mapper.authorEnroll(author);
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/* 작가 목록 테스트 */
|
||||
@Test
|
||||
public void authorGetListTest() throws Exception{
|
||||
|
||||
Criteria cri = new Criteria(3,10); // 3페이지 & 10개 행 표시
|
||||
cri.setKeyword("엘런");
|
||||
|
||||
List<AuthorVO> list = mapper.authorGetList(cri);
|
||||
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
System.out.println("list" + i + ".........." + list.get(i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -11,4 +11,18 @@
|
||||
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 작가 목록 -->
|
||||
<select id="authorGetList" resultType="com.vam.model.AuthorVO">
|
||||
|
||||
select authorid, authorname, nationid, regdate, updatedate
|
||||
from vam_author
|
||||
<if test="keyword != null">
|
||||
where authorname like concat('%',#{keyword}, '%')
|
||||
</if>
|
||||
order by authorid desc
|
||||
limit #{skip}, #{amount}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Wed Feb 10 07:15:33 KST 2021
|
||||
#Wed Mar 10 06:27:34 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL
|
||||
m2e.projectName=VamPa_MySQL
|
||||
groupId=com.vam
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
|
||||
<!DOCTYPE log4j:configuration SYSTEM "https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
|
||||
|
||||
<!-- Appenders -->
|
||||
|
||||
Reference in New Issue
Block a user