<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.DriverManager"%>
<%@ page import="java.sql.PreparedStatement"%>
<%@ page import="java.sql.ResultSet"%>
<%@ page session="true" %>
<% request.setCharacterEncoding("EUC-KR"); 
%>
<script>
function Update(){
	location.href="http://localhost:8080/Park20162515/Edit.jsp";
}
function List(){
	location.href="http://localhost:8080/Park20162515/List.jsp";
}
function toMain(){
	location.href="http://localhost:8080/Park20162515/Main.jsp";
}
</script>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
<form method = "post" action="Logout.jsp" style="text-align : right; padding : 15px 0px 10px;">
<input type="button" value="메인화면으로" onclick="toMain();" style="float : left;">
<%=session.getAttribute("id") %> 님 어서오세요!
<input type = "submit" value="로그아웃">
<% 
if(session.getAttribute("id").equals("admin")){
%>
<input type="button" value="회원 정보 보기" onclick="List();">
<%}else{
%>
<input type="button" value="정보수정" onclick="Update();">
<%} 
%>
</form>
</body>
</html>