| 1 |
<%@ include file="header.jsp" %> |
|---|
| 2 |
<%@ page contentType="text/html; charset=euc-kr" %> |
|---|
| 3 |
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> |
|---|
| 4 |
|
|---|
| 5 |
<script language="javascript"> |
|---|
| 6 |
function saveBoard() { |
|---|
| 7 |
document.boardForm.submit(); |
|---|
| 8 |
} |
|---|
| 9 |
</script> |
|---|
| 10 |
|
|---|
| 11 |
<!-- Support for Spring errors object --> |
|---|
| 12 |
<table align="center"><tr><td class="table_default"> |
|---|
| 13 |
<spring:bind path="boardForm.*"> |
|---|
| 14 |
<c:forEach var="error" items="${status.errorMessages}"> |
|---|
| 15 |
<b><font color="red"><br>. <c:out value="${error}"/></font></b> |
|---|
| 16 |
</c:forEach> |
|---|
| 17 |
</spring:bind> |
|---|
| 18 |
</td></tr></table> |
|---|
| 19 |
|
|---|
| 20 |
<c:if test="${boardForm.newBoard}"> |
|---|
| 21 |
<form name="boardForm" action="<c:url value="/board/insertBoardForm.do"/>" method="POST"> |
|---|
| 22 |
</c:if> |
|---|
| 23 |
<c:if test="${!boardForm.newBoard}"> |
|---|
| 24 |
<form name="boardForm" action="<c:url value="/board/editBoardForm.do"/>" method="POST"> |
|---|
| 25 |
</c:if> |
|---|
| 26 |
|
|---|
| 27 |
<table class="table_default" border="0" cellpadding="3" cellspacing="1" width="80%" align="center" bgcolor="#949EA5"> |
|---|
| 28 |
<tr height="30"> |
|---|
| 29 |
<td bgcolor="#7B869A" colspan="2" align="center"> |
|---|
| 30 |
<c:if test="${boardForm.newBoard}"> |
|---|
| 31 |
<font color="#FFFFFF"><b>글 쓰기</b></font> |
|---|
| 32 |
</c:if> |
|---|
| 33 |
<c:if test="${!boardForm.newBoard}"> |
|---|
| 34 |
<font color="#FFFFFF"><b>글 수정</b></font> |
|---|
| 35 |
</c:if> |
|---|
| 36 |
</td> |
|---|
| 37 |
</tr> |
|---|
| 38 |
<tr height="30"> |
|---|
| 39 |
<td bgcolor="#FFFFFF" align="right">제 목</td> |
|---|
| 40 |
<td bgcolor="#FFFFFF"> |
|---|
| 41 |
<spring:bind path="boardForm.board.title"> |
|---|
| 42 |
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="60" maxlength="60"/> |
|---|
| 43 |
</spring:bind> |
|---|
| 44 |
</td> |
|---|
| 45 |
</tr> |
|---|
| 46 |
<tr height="30"> |
|---|
| 47 |
<td bgcolor="#FFFFFF" align="right">HTML 사용 여부 </td> |
|---|
| 48 |
<td bgcolor="#FFFFFF"> |
|---|
| 49 |
<spring:bind path="boardForm.board.htmlyn"> |
|---|
| 50 |
<select name="<c:out value="${status.expression}"/>"> |
|---|
| 51 |
<c:forEach var="htmlyn" items="${htmlyns}"> |
|---|
| 52 |
<option <c:if test="${htmlyn == status.value}">selected</c:if> value="<c:out value="${htmlyn}"/>"><c:out value="${htmlyn}"/></option> |
|---|
| 53 |
</c:forEach> |
|---|
| 54 |
</select> |
|---|
| 55 |
</spring:bind> |
|---|
| 56 |
</td> |
|---|
| 57 |
</tr> |
|---|
| 58 |
<tr> |
|---|
| 59 |
<td bgcolor="#FFFFFF" align="right">내 용</td> |
|---|
| 60 |
<td bgcolor="#FFFFFF"> |
|---|
| 61 |
<spring:bind path="boardForm.board.content"> |
|---|
| 62 |
<textarea name="<c:out value="${status.expression}"/>" rows="15" cols="60"><c:out value="${status.value}"/></textarea> |
|---|
| 63 |
</spring:bind> |
|---|
| 64 |
</td> |
|---|
| 65 |
</tr> |
|---|
| 66 |
<tr height="30"> |
|---|
| 67 |
<td bgcolor="#FFFFFF" colspan="2" align="center"> |
|---|
| 68 |
[ |
|---|
| 69 |
<a href="<c:url value="javascript:saveBoard()"/>">저장</a> | |
|---|
| 70 |
<a href="<c:url value="/board/listBoard.do"/>">리스트</a> |
|---|
| 71 |
] |
|---|
| 72 |
</td> |
|---|
| 73 |
</tr> |
|---|
| 74 |
</table> |
|---|
| 75 |
|
|---|
| 76 |
</form> |
|---|
| 77 |
|
|---|
| 78 |
<%@ include file="footer.jsp" %> |
|---|