
<!--以下为中间主要布局部分:center -->
<div id="center">
  <div id="centerby">
   <div class="tl">
   <div class="tr">
      <!-- 企业新闻分类布局部分 -->
      <div id="pei">
		<div class="tll">
		<div class="bll">
		<div class="trr">
		<div class="brr">
		{* 产品分类 *}
		{if $cp_class}
			{ section name=row loop=$cp_class }
			<div id="nep">
            	<li><a href="cp_class.php?cp_cid={$cp_class[row].cp_c_id}">
            	{$cp_class[row].cp_c_name|stripslashes}</a></li>
			</div>
			{ /section }
		{else}
		没有产品分类...
		{/if}
		</div>
		</div>
		</div>
		</div>
	  </div><!-- pei -->
	  <div id="right">
	  	<div id="inpe">
		{if $allcp}  {* 如果传递过来的是$allcp(所有产品) 则显示*}
	  		{ section name=row loop=$allcp }
				<div class="right_a">
				<div class="right_b">
	  			<a href="cp.php?cp_id={$allcp[row].cp_id}">
	  			<img src="image.php?image={$allcp[row].cp_img|urlencode}
	  			&max_width=200&max_height=200" border="0" align="right"/>
	  			</a>
				</div> <!-- right_b -->
				<div class="right_c">
				<li>产品名称：{$allcp[row].cp_name|stripslashes}</li>
				<li>产品型号：{$allcp[row].cp_xh|stripslashes}</li>
				</div> <!-- right_c -->
				</div> <!-- right_a -->
	  		{/section}
		{else if $cp_class_cp}	{* 如果传递过来的是$cp_class_cp(分类产品) 则显示*}
			{ section name=row loop=$cp_class_cp }
				<div class="right_a">
				<div class="right_b">
	  			<a href="cp.php?cp_id={$cp_class_cp[row].cp_id}">
	  			<img src="image.php?image={$cp_class_cp[row].cp_img|urlencode}
	  			&max_width=200&max_height=200" border="0" align="right"/>
	  			</a>
				</div>
				</div>
	  		{/section}
		{/if}
		{if $cp}  {* 如果传递过来的是单个产品 则显示*}
			<div id="inpey">产 品 展 示</div>
			<div id="cpok">
			<span>产品名称：{$cp.cp_name}</span><br /><br />
			<img src="image.php?image={$cp.cp_img|urlencode}
	  			&max_width=400&max_height=400" border="0" align="right"/>
			</div>
			<div class="xs">产品型号：{$cp.cp_xh}</div>
			<div class="xs">产品说明：{$cp.cp_sm}</div>
		{else if $nocp}
		{$nocp}
		{/if}
		</div> <!-- inpe -->
	  </div><!-- right -->
	  <div id="l_cp"></div>
	</div> <!-- tr -->
	</div> <!-- tl -->
  </div> <!-- centerby -->
</div> <!-- center -->
