| 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 saveUser() { |
|---|
| 7 |
document.userForm.submit(); |
|---|
| 8 |
} |
|---|
| 9 |
</script> |
|---|
| 10 |
|
|---|
| 11 |
<!-- Support for Spring errors object --> |
|---|
| 12 |
<table align="center"><tr><td class="table_default"> |
|---|
| 13 |
<spring:bind path="userForm.*"> |
|---|
| 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="${userForm.newUser}"> |
|---|
| 21 |
<form name="userForm" action="<c:url value="/user/insertUserForm.do"/>" method="POST"> |
|---|
| 22 |
</c:if> |
|---|
| 23 |
<c:if test="${!userForm.newUser}"> |
|---|
| 24 |
<form name="userForm" action="<c:url value="/user/editUserForm.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="${userForm.newUser}"> |
|---|
| 31 |
<font color="#FFFFFF"><b>회원 가입</b></font> |
|---|
| 32 |
</c:if> |
|---|
| 33 |
<c:if test="${!userForm.newUser}"> |
|---|
| 34 |
<font color="#FFFFFF"><b>회원 수정</b></font> |
|---|
| 35 |
</c:if> |
|---|
| 36 |
</td> |
|---|
| 37 |
</tr> |
|---|
| 38 |
<tr height="30"> |
|---|
| 39 |
<td bgcolor="#FFFFFF" align="right">회원 ID</td> |
|---|
| 40 |
<td bgcolor="#FFFFFF"> |
|---|
| 41 |
<c:if test="${userForm.newUser}"> |
|---|
| 42 |
<spring:bind path="userForm.user.userId"> |
|---|
| 43 |
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="10" maxlength="10"/> |
|---|
| 44 |
</spring:bind> |
|---|
| 45 |
</c:if> |
|---|
| 46 |
<c:if test="${!userForm.newUser}"> |
|---|
| 47 |
<c:out value="${status.value}"/> |
|---|
| 48 |
</c:if> |
|---|
| 49 |
</td> |
|---|
| 50 |
</tr> |
|---|
| 51 |
<tr height="30"> |
|---|
| 52 |
<td bgcolor="#FFFFFF" align="right">비밀번호</td> |
|---|
| 53 |
<td bgcolor="#FFFFFF"> |
|---|
| 54 |
<spring:bind path="userForm.user.passwd"> |
|---|
| 55 |
<input type="password" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="10" maxlength="10"/> |
|---|
| 56 |
</spring:bind> |
|---|
| 57 |
</td> |
|---|
| 58 |
</tr> |
|---|
| 59 |
<tr height="30"> |
|---|
| 60 |
<td bgcolor="#FFFFFF" align="right">비밀번호 확인</td> |
|---|
| 61 |
<td bgcolor="#FFFFFF"> |
|---|
| 62 |
<spring:bind path="userForm.repeatedPasswd"> |
|---|
| 63 |
<input type="password" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="10" maxlength="10"/> |
|---|
| 64 |
</spring:bind> |
|---|
| 65 |
</td> |
|---|
| 66 |
</tr> |
|---|
| 67 |
<tr height="30"> |
|---|
| 68 |
<td bgcolor="#FFFFFF" align="right">이름</td> |
|---|
| 69 |
<td bgcolor="#FFFFFF"> |
|---|
| 70 |
<spring:bind path="userForm.user.userName"> |
|---|
| 71 |
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="10" maxlength="10"/> |
|---|
| 72 |
</spring:bind> |
|---|
| 73 |
</td> |
|---|
| 74 |
</tr> |
|---|
| 75 |
<tr height="30"> |
|---|
| 76 |
<td bgcolor="#FFFFFF" align="right">이메일</td> |
|---|
| 77 |
<td bgcolor="#FFFFFF"> |
|---|
| 78 |
<spring:bind path="userForm.user.email"> |
|---|
| 79 |
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="40" maxlength="50"/> |
|---|
| 80 |
</spring:bind> |
|---|
| 81 |
</td> |
|---|
| 82 |
</tr> |
|---|
| 83 |
<tr height="30"> |
|---|
| 84 |
<td bgcolor="#FFFFFF" colspan="2" align="center"> |
|---|
| 85 |
[ |
|---|
| 86 |
<a href="<c:url value="javascript:saveUser()"/>">저장</a> | |
|---|
| 87 |
<a href="<c:url value="/board/listBoard.do"/>">리스트</a> |
|---|
| 88 |
] |
|---|
| 89 |
</td> |
|---|
| 90 |
</tr> |
|---|
| 91 |
</table> |
|---|
| 92 |
|
|---|
| 93 |
</form> |
|---|
| 94 |
|
|---|
| 95 |
<%@ include file="footer.jsp" %> |
|---|