<%@ 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>
<style type="text/css">
#main_menu {

 	font-size:12px;
	color:black;
	background-color:#FFE650;
	margin-top:15px;
	padding:12px;
	text-align:center;
}

#main_menu li{
	padding:0 20px 0 20px;
	display:inline;

}

</style>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>홈페이지 메인</title>
</head>
<body bgcolor="#FF8E99">
<ul id="main_menu">
<%
Object id=session.getAttribute("id");
%>
<%
if(id==null){
%>
<li><a href="http://localhost:8080/member12/abc/inputForm.jsp">회원가입</a></li>
<li><a href="http://localhost:8080/member12/abc/loginForm.jsp">로그인</a></li>
<%
}else{
%>
<li><a href="http://localhost:8080/member12/abc/list.jsp">전체회원 목록보기</a></li>
<li><a href="http://localhost:8080/member12/abc/editForm.jsp">회원정보 수정</a></li>
<li><a href="http://localhost:8080/member12/abc/deleteForm.jsp">회원탈퇴</a></li>
<li><a href="http://localhost:8080/member12/abc/Logout.jsp"><input type="submit" value="로그아웃"></a></li>
<%
out.println(id);
out.println("님 환영합니다.");
}
%>
</ul>
<center><h1>환영합니다!</h1></center>
</body>
</html>