
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
	<base href="<%=basePath%>" />
		<title>商品档案</title>
		<link rel="stylesheet" href="css/main.css" type="text/css" />
		<script language="javascript" src="script/main.js"></script>
	</head>
	<body>
	
		<p></p>
		<p><font style="font-size: 10pt;">档案管理->商品档案</font></p>
		<s:form action="merchandiseAction" method="post" theme="simple">
		<p></p>
		<table border="0" cellpadding="1" cellspacing="1" width="95%">
			<tr>
				<td align="right" width="10%" nowrap="true">商品编号</td>
				<td width="20%">
					<s:textfield name="merchandise.code"
				cssClass="TextInput"></s:textfield>
	      </td>
				<td align="right" width="10%" nowrap="true">商品名称</td>
				<td width="20%">
					<s:textfield name="merchandise.name"
				cssClass="TextInput"></s:textfield>
	      </td>	
				<td align="right" width="15%">&nbsp;</td>
			  <td width="20%">&nbsp;</td>	      
	      <td width="10%">&nbsp;</td>     
			</tr>
			<tr>
				<td align="right" width="10%" nowrap="true">&nbsp;</td>
			  <td width="20%">&nbsp;</td>
	      <td width="70%" colspan="5">&nbsp;</td>     
			</tr>			
		</table>
		
		<p></p>
		<div style="margin-left: 30px; margin-right: 0px">
			<table border="0" cellpadding="0" cellspacing="0"  width="95%">
				<tr>
		    	<td width="10%">
		    		<s:submit value="查找" cssClass="BtnAction" method="findMerchandise"></s:submit>                          
		    	</td>
		    	<td width="10%">
		    		<input type="button" class="BtnAction" value="新增" onClick="replaceModulUrl('<%=basePath%>moduls/archive/addMerchandise.jsp');"">
		    	</td>   	
		    	<td width="10%">
		    		<input type="button"
				onClick="deleteRecords('merchandiseAction!deleteMerchandise.action')"
				value="删除" class="BtnAction" />	
		    	</td>
		    	<td width="10%"><input type="reset" value="重置" class="BtnAction" /></td>
		    	<td width="60%">&nbsp;</td>  		    	
		  	</tr>			
			</table>
		</div>

		<p></p>
		
	<div style="margin-left: 30px; margin-right: 0px">
	  <table width="90%" border="1" cellpadding="0" cellspacing="0">
        <tr>
          <td width="9%" class="td_title">选择</td>
          <td width="11%" class="td_title">修改</td>
          <td width="17%" class="td_title">商品编号</td>
          <td width="40%" class="td_title">商品名称</td>
          <td width="23%" class="td_title">商品价格（元）</td>
        </tr>
        <s:iterator var="merchandise" value="merchandises">
        <tr>
          <td align="center" class="td_border"><input name="merchandiseId"
				type="checkbox" title="选中后可进行删除操作"  value='<s:property value="#merchandise.id" />'>         </td>
          <td align="center" class="td_border"><a
				href='merchandiseAction!preUpdateMerchandise.action?merchandise.id=<s:property value="#merchandise.id" />'><img src="image/edit.gif" border="0"></a> </td>
          <td class="td_border"><s:property value="#merchandise.code"/></td>
          <td class="td_border"><s:property value="#merchandise.name"/></td>
          <td class="td_border"><s:property value="#merchandise.price"/></td>
        </tr>
        </s:iterator>
        
      </table>
	</div>
		</s:form>
	</body>
</html>