addmember
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/resources/js/lbm.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>[회원가입]</h1>
<form name="frm2" >
<table>
<tr><td colspan="2"><hr></td></tr>
<tr><td>회원 ID</td><td><input type="text" name="id"><a href="">[ID 중복검사]</a></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>비밀번호</td><td><input type="password" name="pw"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>비밀번호 확인</td><td><input type="text" name="pwck"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>이름</td><td><input type="text" name="name"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>성별</td><td><input type="radio" name="gender" value="남자">남자<input type="radio" name="gender" value="여자">여자</td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>집전화</td><td><input type="text" name="homephone"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>휴대전화</td><td><input type="text" name="phone"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>이메일</td><td><input type="text" name="email"></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="회원가입" onclick="btn_click2('addmember')"><input type="submit" value="취소" onclick="btn_click2('gohome')"></td></tr>
</table>
</form>
</body>
</html>
login
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/resources/js/lbm.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>*회원로그인*</h1>
<form name="frm1">
<table>
<tr><td>아이디 :</td><td><input type="text" name="id" ></td></tr>
<tr><td>비밀번호 :</td><td><input type="password" name="pw" ></td></tr>
<tr><td colspan="2">
<input type="submit" value="로그인" onclick="btn_click('login')">
<input type="submit" value="회원가입" onclick="btn_click('addmember')">
<input type="submit" value="게시판 리스트보기" onclick="btn_click('boardlist')"></td></tr>
</table>
</form>
</body>
</html>
boardwrite
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/resources/js/lbm.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>게시글 작성</h1>
<form name="frm5">
<table>
<tr>
<td>제목</td>
</tr>
<tr>
<td><input type="text" name="title" value="제목을 작성해주세요"></td>
</tr>
<tr>
<td>작성자</td>
</tr>
<tr>
<td><input type="text" value="이름을 작성해주세요" readonly></td>
</tr>
<tr>
<td>내용</td>
</tr>
<tr>
<td><textarea rows="30" cols="50" name="content"></textarea></td>
</tr>
<tr>
<td><input type="submit" value="등록하기"
onclick="btn_click5('write')"><input type="submit"
value="목록으로" onclick="btn_click5('gohome')"></td>
</tr>
</table>
</form>
</body>
</html>
boardmodify
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/resources/js/lbm.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>게시글 수정</h1>
<form name="frm4">
<table>
<tr><td colspan="2"><h1><input type="hidden" name="bno" value="${modify.bno}">${modify.bno}</h1></td></tr>
<tr><td>제목</td></tr>
<tr><td><input type="text" name="title" value="${modify.title}" ></td></tr>
<tr><td>작성자</td></tr>
<tr><td><input type="text" name="id" value="작성자쓰기" readonly></td></tr>
<tr><td>내용</td></tr>
<tr><td><textarea name="content" rows="30" cols="50" >${modify.content}</textarea></td></tr>
<tr><td><input type="submit" value="등록하기" onclick="btn_click4('modify')" ><input type="submit" value="목록으로" onclick="btn_click4('boardlist')"></td></tr>
</table>
</form>
</body>
</html>
boardlist
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>게시판</h1>
<form action="/lbm/boardwrite" method="get">
<table border="1" style="border-collapse:collapse">
<tr><td>번호</td><td>제목</td><td>작성자</td><td>작성일</td><td>조회수</td></tr>
<c:forEach items="${list}" var="board">
<tr>
<td>${board.bno}</td>
<td><a href="boarddetail?bno=${board.bno}">${board.title}</a></td>
<td>작성자</td>
<td>${board.date}</td>
<td>${board.view}</td>
</tr>
</c:forEach>
<tr><td colspan="5"><input type="submit" value="글쓰기"></td></tr>
</table>
</form>
</body>
</html>
boarddetail
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/resources/js/lbm.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>게시글 상세보기</h1>
<form name="frm3">
<table border="1" style="border-collapse:collapse">
<tr><td colspan="3"><h1><input type="hidden" name="bno" value="${detail.bno}">${detail.bno}</h1></td></tr>
<tr><td colspan="3"><h1><input type="hidden" name="title" value="${detail.title}">${detail.title}</h1></td></tr>
<tr><td><input type="hidden" name="id" value="작성자">아이디정보</td><td><input type="hidden" name="date" value="${detail.date}">${detail.date}</td><td><input type="hidden" name="view" value="${detail.view}">${detail.view}</td></tr>
<tr><td colspan="3"><input type="hidden" name="content" value="${detail.content}">${detail.content}</td></tr>
<tr><td colspan="3">
<input type="submit" value="수정" onclick="btn_click3('modify')">
<input type="submit" value="삭제" onclick="btn_click3('delete')"></td></tr>
<tr><td colspan="3"><input type="submit" value="목록으로" onclick="btn_click3('gohome')"></td></tr>
</table>
</form>
</body>
</html>
'Programming > 게시판 만들기' 카테고리의 다른 글
[게시판 만들기] MAPPER (0) | 2021.02.14 |
---|---|
[게시판 만들기] DTO (0) | 2021.02.14 |
[게시판 만들기] board controller / member controller (0) | 2021.02.14 |
[게시판 만들기] member add / list / detail (0) | 2021.02.14 |
[게시판 만들기] detail / write / update / list (0) | 2021.02.14 |