<%@page language="java" contentType="text/html; charset=Windows-31J"%>
<%@taglib uri="/tags/struts-html" prefix="html" %>
<%@taglib uri="/tags/struts-bean" prefix="bean" %>
<%@page import="jp.ossc.petstore.OpenstandiaConst"%>
<%@page import="jp.ossc.petstore.model.Product"%>

<table width="520" border="0">
	<tr>
		<td align="right">
			<html:link action="ShowCart">
				<img src="images/btn_cart.gif" width="120" height="20" border="0" vspace="10" />
			</html:link>
		</td>
	</tr>
</table>

<%-- エラー表示エリア --%>
<html:messages id="msg" message="false">
	<font color="#ff0000"><b><bean:write name="msg"/></b></font><br />
</html:messages>
<%-- エラー表示エリア --%>

<h1>商品情報</h1>
<div class="topDog">
	<img src="images/<bean:write name="<%=OpenstandiaConst.ENV_REQ_ATRBT_PRODUCT%>" property="image"/>" width="120" height="90" />
	<div class="topName"><img src="images/arw.gif" width="7" height="12" /><bean:write name="<%=OpenstandiaConst.ENV_REQ_ATRBT_PRODUCT%>" property="name"/></div>
	<div class="topTxt"><bean:write name="<%=OpenstandiaConst.ENV_REQ_ATRBT_PRODUCT%>" property="explanation"/></div>
</div>
<br />
<h1>購入情報</h1>
<html:form action="InsertCart" method="post">
	<table width="520" border="0" cellspacing="0" cellpadding="0" id="cartTable">
		<tr>
			<th width="140">注文数</th>
			<td width="40">
				<html:text property="quantity" maxlength="2" size="3"/>
			</td>
			<td align="center">
				<html:submit value="ショッピングカートに入れる" />
			</td>
		</tr>
	</table>
	<input type="hidden" name="product_id" value="<bean:write name="<%=OpenstandiaConst.ENV_REQ_ATRBT_PRODUCT%>" property="id"/>" />
</html:form>
