<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>메인에 접속하셨습니다!</title>
<style>
body { background-color : ghostwhite; }
</style>
</head>
<body>
<center>
<img src="image\success.png" width="200" height="200" border="0"><br>
 <%
if(session.getAttribute("id")==null){
response.sendRedirect("loginForm.jsp");
} else {
%>
<%=session.getAttribute("id")%>님, 환영합니다!<br>
즐거운 하루 되세요!
<% } %>

<hr>
<form method="post" action="logout.jsp">
<input type=submit value="로그아웃" style="width:300px; height:50px; background-color : #FFF0FFF0; 
                                  border : 2; solid : #C3BBDD; font-size:20px; border-radius:12px; " > <br><br>
<input type=button value="회원가입" onClick="location.href='http://localhost:8080/Project/memberForm.jsp'" style="width:300px; height:50px; background-color : #FFF0FFF0; 
                                  border : 2; solid : #C3BBDD; font-size:20px; border-radius:12px;"> <br><br>
<input type=button value="회원정보 수정" onClick="location.href='http://localhost:8080/Project/editForm.jsp'" style="width:300px; height:50px; background-color : #FFF0FFF0; 
                                  border : 2; solid : #C3BBDD; font-size:20px; border-radius:12px; " > <br><br>
<input type=button value="회원탈퇴" onClick="location.href='http://localhost:8080/Project/deleteForm.jsp'" style="width:300px; height:50px; background-color : #FFF0FFF0; 
                                  border : 2; solid : #C3BBDD; font-size:20px; border-radius:12px; " ><br><br>
<input type=button value="회원목록" onClick="location.href='http://localhost:8080/Project/list.jsp'" style="width:300px; height:50px; background-color : #FFF0FFF0; 
                                  border : 2; solid : #C3BBDD; font-size:20px; border-radius:12px; " > 
</form>
</center>
</body>
</html>