JSP

JSP BOARDER(6)_(boardAdmin_CreateBoard.jsp)

Phonetographer 2016. 5. 24. 17:15

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

    pageEncoding="UTF-8"%>

<%@ page import = "java.util.*, board.*;" %>

<!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>

</head>

<body>

<%

AdminManager adminManager = AdminManager.getInstance();

if(session.getAttribute("id") != null && adminManager.isAdmin((String)session.getAttribute("id")))

{

%>

<b>*게시판 생성</b>

<form action = "makeBoard.jsp" method = "post" name = "create">

게시판 이름 : <input type = "text" name = "boardName" size = "20"/><br>

게시판 설명 : <textarea name ="boardSubject" cols = "35" rows = "3"></textarea><br>

<input type = "submit" value = "게시판 생성">

</form>

<%

}else {

out.print("관리자 권한이 없습니다.");

}

%>

</body>

</html>