<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/keyshop" prefix="keyshop" %>
<%@include file="/jsp/pub/pub.jsp"%>
<jsp:useBean id="fgProductForm" class="com.keyshop.shop.product.controller.ProductForm" scope="request"/>
<%
	Product bean = (Product)fgProductForm.getBean();
	String categoryFullName = (String)request.getAttribute("categoryFullName");
	if(categoryFullName == null) categoryFullName = "";
	String currentName = (String)request.getAttribute("currentName");
	if(currentName == null) currentName = "";
	String displayType = request.getParameter("displayType");
	if(displayType == null) displayType = "description";

	if(bean != null) {
		//设置网页title, 关键字,网页描述。
		PAGETITLE = bean.getName() + bean.getKey();
		if(bean.getNote() != null) {
			PAGEDESCRIPTION =  bean.getNote();
		}
		PAGEKEYWORDS = PAGETITLE;
	}
%>
<script>
<%
	if(!StringUtil.isEmpty(bean.getLinkurl())) {
%>
	window.location = '<%=bean.getLinkurl()%>'
<%
	}
%>
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
<%@include file="/jsp/pub/top.jsp"%>
<table width="830"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="181" valign="top">
    	<table width="181" height="828" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top">
				  <!--左侧商品分类列表-->
				  <%@include file="/jsp/pub/index/categorytree.jsp"%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height=5></td>
              </tr>
            </table>
	         <!--商品历史-->
	         <%@include file="/jsp/pub/pub/his_productlist.jsp"%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height=5></td>
              </tr>
            </table>
           <!--左侧信息列表-->
          	<jsp:include page="/jsp/pub/index/leftContentList.jsp"> 
							<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
							<jsp:param name="searchKey" value="<%=LEFT_CONTENT%>"/>
							<jsp:param name="position" value="1"/> 	
						</jsp:include>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height=5></td>
              </tr>
            </table>
            <%
            if(!currentChannel.getId().equals("index")){
            %>
			      <jsp:include page="/jsp/pub/adContentView.jsp"> 
							<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/> 	
							<jsp:param name="searchKey" value="<%=AD_CATEGORY_LEFT%>"/> 	
							<jsp:param name="position" value="1"/> 
						</jsp:include>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height=5></td>
              </tr>
            </table>
						<%
						}
						%>
          </td>
        </tr>
      </table>
    </td>
    <td width="644" align="right" valign="top">
    </td>
  </tr>
</table>
<!--dibu-->
<!--底部文件-->
<%@include file="/jsp/pub/bottom.jsp"%>
