Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

까먹지 말자! 자주 보자!

JSP BOARDER(6)_(boardAdmin_CreateBoard.jsp) 본문

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>

'JSP' 카테고리의 다른 글

JSP BOARDER(7)_(logout.jsp)  (0) 2016.05.24
JSP BOARDER(5)_(boardAdmin_AdminLogin.jsp)  (0) 2016.05.24
JSP BOARDER(4)_(ConnectionPool .java)  (0) 2016.05.24
JSP BOARDER(3)_(ConnectionFactory .java)  (0) 2016.05.24
JSP BOARDER(2)_(BoardData .java)  (0) 2016.05.24