<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sz600.tool.*" %>
<%@ page import="net.sz600.database.*" %>
<%@ page import="net.sz600.database.other.*" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.assess.*" %>
<%@ include file="/sessionInfoWeixin.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<%@ include file="/share/oa_app_title.jsp"%>
 <link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
 <script type="text/javascript" src="<%=strLevel_SESSION%>share/js/commonTool.js"></script> 
</head>

<%
    //获取提交的参数
    String sPage = SzConvert.toZeroStr(request.getParameter("page"));
    String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));
    String sNumber = SzConvert.strWriteData(request.getParameter("txtNumber"));
    String sName = SzConvert.strWriteData(request.getParameter("txtName"));
    String sState = SzConvert.strWriteData(request.getParameter("txtState"));
    String sKEY = SzConvert.toZeroStr(request.getParameter("KEY"));

    String sSortField = SzConvert.toSpaceStr(request.getParameter("txtSortField")); 
    int iSortOrder    = Integer.parseInt(SzConvert.toZeroStr(request.getParameter("txtSortOrder"))); 
   
    int iColumnCount = 13;
    String sTable = "ecs_goods";
	  String sField = "goods_id,goods_name,goods_sn,cat_id,brand_id,shop_price,market_price,give_integral,rank_integral,integral,promote_price,from_unixtime(promote_start_date),from_unixtime(promote_end_date)"; //6
	  String sCond = "goods_id=" + sKEY;
	  //goods_amount,order_amount,order_status
	  SzDataReaderEcs dr = new SzDataReaderEcs();
		
		String str[] = dr.readInfoArray(1, sTable, sField, sCond, iColumnCount);
    int i = 0;
    
    String s_id[] = {"","0","1","2","3","4"};
    String s_name[] = {"全部","未确认","确认","已取消","无效","退货"};
    

%>
<!-----上面的工具栏------>
<form name="formUpdate" method="post">
<%@ include file="/app/title.jsp"%>
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="txtNumber" value="<%=sNumber%>">
  <input type="hidden" name="txtName" value="<%=sName%>">
  <input type="hidden" name="txtState" value="<%=sState%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>"> 
<table width="100%">
  <tr>
    <td>
    	<%
				out.println( SzPageHelp.backButton() );
      %>         
    </td>
  </tr>
</table>

<table width="600" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
<tr>
 <td class="trClassTitle_c" colspan=4>商品信息</td>
</tr>
<tr>
 <td class="tdClassTitle">名称</td>
 <td><%=str[1] %></td>
</tr>

<tr>
 <td class="tdClassTitle">货号</td>
 <td><%=str[2] %></td>
</tr>
<!-- 
<tr>
 <td class="tdClassTitle">商品分类</td>
 <td><%//=str[3] %></td>
</tr>

<tr>
 <td class="tdClassTitle">商品品牌</td>
 <td><%//=str[4] %></td>
</tr>
 -->
<tr>
 <td class="tdClassTitle">本店售价</td>
 <td><%=str[5] %></td>
</tr>

<tr>
 <td class="tdClassTitle">市场售价</td>
 <td><%=str[6] %></td>
</tr>

<tr>
 <td class="tdClassTitle">赠送消费积分数</td>
 <td><%=str[7] %></td>
</tr>

<tr>
 <td class="tdClassTitle">赠送等级积分数</td>
 <td><%=str[8] %></td>
</tr>

<tr>
 <td class="tdClassTitle">积分购买金额</td>
 <td><%=str[9]%></td>
</tr>

<tr>
 <td class="tdClassTitle">促销价</td>
 <td><%=str[10] %></td>
</tr>

<tr>
 <td class="tdClassTitle">促销日期</td>
 <td><%if (!str[11].startsWith("1970-01-01")) { out.println(str[11]);} %>到<%if (!str[12].startsWith("1970-01-01")) { out.println(str[12]);} %></td>
</tr>

</table>


</form>


<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="txtNumber" value="<%=sNumber%>">
  <input type="hidden" name="txtName" value="<%=sName%>">
  <input type="hidden" name="txtState" value="<%=sState%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>">
  <input type="hidden" name="txtSortField" value="<%=sSortField%>"> 
  <input type="hidden" name="txtSortOrder" value="<%=iSortOrder%>">  
</form>
<script language="javascript">

</script>

