<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page session="true" %>

<% request.setCharacterEncoding("utf-8"); %>
<%
String id = (String)session.getAttribute("id"); //세션에서 아이디 값 가져오기 
String authority = (String)session.getAttribute("authority"); //세션에서 권한값 가져오기
%>
<html>
 <link rel="stylesheet" href="../../visual.css">
<head>
<meta charset="UTF-8">
<title>권한부여</title>

</head>
<body>
<table>
<tr>
<td>
	<h2 style="text-align:center; font-size:50px">회원삭제</h2>
	
	<%
		if(authority.equals("0")){ %>
		<%=id %>님은 권한이 없습니다.<br>
		<p style="text-align:center;">
		<a href="../../Home.jsp"><input type="button" value="이전페이지" class="button"></a>
		</p>
<%		
		}else{ %>
	<form method="post" action="deleteUserPro.jsp">
		삭제할 아이디 <br>
		<input class="box" style="margin:5px auto;width:360px;height:50px;padding:10px;"type="text" name="id" placeHolder="아이디">
		<input style="margin:5px auto;width:85px;height:50px;padding:10px;" type="submit" value="회원삭제"><br>
	</form>
		<%}
	 %>
	

</table>
</body>
</html>

<!-- ----------------------------------------------------------------------- -->
