관리자 메인페이지(/admin/main.jsp)변경 및 추가 & main.jsp, MemberController.java 누락
코드 commit
This commit is contained in:
@@ -192,6 +192,19 @@ public class MemberController {
|
||||
return "redirect:/main";
|
||||
|
||||
}
|
||||
|
||||
/* 비동기방식 로그아웃 메서드 */
|
||||
@RequestMapping(value="logout.do", method=RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public void logoutPOST(HttpServletRequest request) throws Exception{
|
||||
|
||||
logger.info("비동기 로그아웃 메서드 진입");
|
||||
|
||||
HttpSession session = request.getSession();
|
||||
|
||||
session.invalidate();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,65 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<link rel="stylesheet" href="../resources/css/admin/main.css">
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
<h1>관리자 메인 페이지</h1>
|
||||
|
||||
<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">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02">상품 목록</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
<!--
|
||||
<div class="admin_list_01">
|
||||
<a>상품 관리</a>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<div class="admin_content_wrap">
|
||||
<div>관리자 페이지 입니다.</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,6 +8,10 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Welcome BookMall</title>
|
||||
<link rel="stylesheet" href="resources/css/main.css">
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -28,7 +32,7 @@
|
||||
<li><a href="/admin/main">관리자 페이지</a></li>
|
||||
</c:if>
|
||||
<li>
|
||||
로그아웃
|
||||
<a id="gnb_logout_button">로그아웃</a>
|
||||
</li>
|
||||
<li>
|
||||
마이룸
|
||||
@@ -79,5 +83,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
/* gnb_area 로그아웃 버튼 작동 */
|
||||
$("#gnb_logout_button").click(function(){
|
||||
//alert("버튼 작동");
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"/member/logout.do",
|
||||
success:function(data){
|
||||
alert("로그아웃 성공");
|
||||
document.location.reload();
|
||||
}
|
||||
}); // ajax
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
110
VamPa/src/main/webapp/resources/css/admin/main.css
Normal file
110
VamPa/src/main/webapp/resources/css/admin/main.css
Normal file
@@ -0,0 +1,110 @@
|
||||
@charset "UTF-8";
|
||||
*{
|
||||
margin: 0;
|
||||
padding:0;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
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;
|
||||
}
|
||||
.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_01{
|
||||
background-color: #c8c8c8;
|
||||
} */
|
||||
|
||||
|
||||
/* 관리자페이지 컨텐츠 영역 */
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
height: 700px;
|
||||
|
||||
}
|
||||
.admin_content_wrap div{
|
||||
margin-top: 280px;
|
||||
text-align: center;
|
||||
font-size: 50px;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* float 속성 해제 */
|
||||
.clearfix{
|
||||
clear: both;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Thu Jan 28 07:55:32 KST 2021
|
||||
#Mon Feb 01 03:03:47 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa
|
||||
m2e.projectName=VamPa
|
||||
groupId=com.vam
|
||||
|
||||
@@ -193,5 +193,18 @@ public class MemberController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* 비동기방식 로그아웃 메서드 */
|
||||
@RequestMapping(value="logout.do", method=RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public void logoutPOST(HttpServletRequest request) throws Exception{
|
||||
|
||||
logger.info("비동기 로그아웃 메서드 진입");
|
||||
|
||||
HttpSession session = request.getSession();
|
||||
|
||||
session.invalidate();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,8 +5,65 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<link rel="stylesheet" href="../resources/css/admin/main.css">
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
<h1>관리자 페이지</h1>
|
||||
|
||||
<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">상품 등록</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="admin_list_02">상품 목록</a>
|
||||
</li>
|
||||
<lI>
|
||||
<a class="admin_list_03">작가 등록</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_04">작가 관리</a>
|
||||
</lI>
|
||||
<lI>
|
||||
<a class="admin_list_05">회원 관리</a>
|
||||
</lI>
|
||||
</ul>
|
||||
<!--
|
||||
<div class="admin_list_01">
|
||||
<a>상품 관리</a>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<div class="admin_content_wrap">
|
||||
<div>관리자 페이지 입니다.</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,6 +8,10 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Welcome BookMall</title>
|
||||
<link rel="stylesheet" href="resources/css/main.css">
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -28,7 +32,7 @@
|
||||
<li><a href="/admin/main">관리자 페이지</a></li>
|
||||
</c:if>
|
||||
<li>
|
||||
로그아웃
|
||||
<a id="gnb_logout_button">로그아웃</a>
|
||||
</li>
|
||||
<li>
|
||||
마이룸
|
||||
@@ -79,5 +83,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
/* gnb_area 로그아웃 버튼 작동 */
|
||||
$("#gnb_logout_button").click(function(){
|
||||
//alert("버튼 작동");
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"/member/logout.do",
|
||||
success:function(data){
|
||||
alert("로그아웃 성공");
|
||||
document.location.reload();
|
||||
}
|
||||
}); // ajax
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
110
VamPa_MySQL/src/main/webapp/resources/css/admin/main.css
Normal file
110
VamPa_MySQL/src/main/webapp/resources/css/admin/main.css
Normal file
@@ -0,0 +1,110 @@
|
||||
@charset "UTF-8";
|
||||
*{
|
||||
margin: 0;
|
||||
padding:0;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
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;
|
||||
}
|
||||
.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_01{
|
||||
background-color: #c8c8c8;
|
||||
} */
|
||||
|
||||
|
||||
/* 관리자페이지 컨텐츠 영역 */
|
||||
.admin_content_wrap{
|
||||
width: 80%;
|
||||
float:left;
|
||||
height: 100%;
|
||||
height: 700px;
|
||||
|
||||
}
|
||||
.admin_content_wrap div{
|
||||
margin-top: 280px;
|
||||
text-align: center;
|
||||
font-size: 50px;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* float 속성 해제 */
|
||||
.clearfix{
|
||||
clear: both;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Thu Jan 28 08:32:01 KST 2021
|
||||
#Mon Feb 01 03:03:47 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL
|
||||
m2e.projectName=VamPa_MySQL
|
||||
groupId=com.vam
|
||||
|
||||
Reference in New Issue
Block a user