<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/header.jsp"%>
<html>
<head>
<title><spring:message code="itemEdit.title" /></title>
</head>
<body>
<form:form modelAttribute="item" action="update.html"
	enctype="multipart/form-data">
	<form:hidden path="itemId" />
	<div align="center" class="body">
	<h2><font color="green"><spring:message
		code="itemEdit.title" /></font></h2>
	<table>
		<tr height="40px">
			<td>商品名</td>
			<td><form:input path="itemName" cssClass="itemName"
				maxlength="20" /></td>
			<td><font color="red"><form:errors path="itemName" /></font></td>
		</tr>
		<tr height="40px">
			<td>価格</td>
			<td><form:input path="price" cssClass="price" maxlength="6" />&nbsp;円
			</td>
			<td><font color="red"><form:errors path="price" /></font></td>
		</tr>
		<tr height="40px">
			<td>ファイル</td>
			<td><input type="file" name="picture" /></td>
			<td></td>
		</tr>
		<tr height="40px">
			<td>概要</td>
			<td><form:textarea path="description" cssClass="description" />
			</td>
			<td><font color="red"><form:errors path="description" /></font></td>
		</tr>
	</table>
	<br>
	<input type="submit" value="更新" /> <input type="reset" value="リセット" /><br>
	<br>
	<a href="index.html">戻る</a> <br>
	<a href="../j_spring_security_logout">■ログアウトする</a></div>
</form:form>
</body>
</html>