<%@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="fgcontentForm" class="com.keyshop.shop.content.controller.ContentForm" scope="request"/>
<%
	Content bean = (Content)fgcontentForm.getBean();
	
	 String categoryId = request.getParameter("categoryId");
  List contentList = com.keyshop.shop.content.util.ContentConst.getContentList(categoryId);
  ContentCategory cc = ContentManager.getContentCategoryById(categoryId);
  
  String title = "";
  if(cc != null) {
  	title = cc.getName();
  }
%>
<script>
	<%
		if("linkurl".equals(bean.getType())) {
	%>
		window.location='<%=bean.getLinkurl()%>';
	<%
		}
	%>
</script>
<%
	//设置网页title, 关键字,网页描述。
	PAGETITLE = bean.getName() + PAGETITLE;
	PAGEDESCRIPTION =  PAGETITLE;
	PAGEKEYWORDS = PAGETITLE;
%>
<%@include file="/jsp/pub/top.jsp"%>

<table width="830" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="191" valign="top">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top">

           <!--左侧商品分类列表-->
				  <%@include file="/jsp/pub/sm/categorytree.jsp"%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height=5></td>
              </tr>
            </table>
	         <!--商品历史-->

            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height=5></td>
              </tr>
            </table>
           <!--左侧信息列表-->
          	<jsp:include page="/jsp/pub/sm/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>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
            <!--左侧广告-->
			      <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>
                </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height=5></td>
              </tr>
            </table>
            <!--网上调查-->
            <%@include file="/jsp/pub/sm/inquisition.jsp"%>

		      </td>
		    </tr>
		  </table>
		</td>
		<td align="center" valign="top">
			<!--主体-->
			<%@include file="/fg/content/content_sub/fgcontentbuttomView_sub.jsp"%>
		</td>
	</tr>
</table>
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td height=4></td>
  </tr>
</table>
		<%@include file="/jsp/pub/bottom.jsp"%>
