<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<link rel="stylesheet" href="{root_path}js/jquery/jquery-zoom/css/jquery.jqzoom.css" type="text/css" />
<script src="{root_path}js/jquery/jquery-zoom/js/jquery.jqzoom-core.js" type="text/javascript" charset="gb2312"></script>
<div class=ad950>
  <script type="text/javascript" src="<?php echo site_url(CTL_FOLDER.'feed/ads/7');?>"></script>
</div>
<div class="list">
  <!-- 左部开始 -->
  <div class="list_left" style="float:left">
    <!-- 热销商品 -->
    <div class="list_left">
      <!-- 热销商品 -->
      <div class="list_hot">
        <div class="hot_head"><span>掌柜热卖</span></div>
        <!--列表模块-->
        <div class="hot_goods">
          <?php if(isset($sale_top)){
				foreach($sale_top as $row){
			?>
          <div class="hot_lgoods_list">
            <div class="hot_lgoods_list_img" onMouseOver="this.className='hot_lgoods_list_img_hover'" onMouseOut="this.className='hot_lgoods_list_img'"> <a href="<?php echo site_url(CTL_FOLDER.'item/'.$row['num_iid']);?>" target="_blank" title="<?php $row['title'];?>"><img alt="<?php $row['title'];?>" src="<?php echo $row['pic_url'];?>_160x160.jpg" align="absmiddle"></a> </div>
            <div class="hot_lgoods_list_title"><a href="<?php echo site_url(CTL_FOLDER.'item/'.$row['num_iid']);?>" target="_blank" title="<?php $row['title'];?>"><?php echo strcut($row['title'],39);?></a> </div>
            <div class="hot_lgoods_list_price">市场价:￥<span class="hot_lgoods_list_scprice"><?php echo get_market_price($row['price']);?> </span> 元<br />
              <span class="hot_lgoods_list_tbprice">淘宝价:￥<b><?php echo $row['price'];?></b> 元</span><br />
              <?php 
					if ($row['commission_num'] >= 5){
						echo '本月热销:<span class="hot_lgoods_list_num"><b>'.$row['commission_num'].'</b></span> 件';
                }
                ?>
            </div>
          </div>
          <?php 
				}
			} ?>
        </div>
      </div>
    </div>
  </div>
  <!-- 右部开始 -->
  <div class="list_right" style="float:right; margin-left:10px">
    <!-- 当前位置 -->
    <div class="list_place">
      <div class="list_place_ioc"><img src="{tpl_path}images/ioc_02.gif" align="absmiddle"/></div>
      <div class="list_place_nav">您的位置: <a href="<?php echo base_url();?>">首页</a> <?php echo $nav;?></div>
    </div>
    <!-- 商品标题 -->
    <div class="goods_title">
      <div class="title_ioc"><img src="{tpl_path}images/title_ioc.gif" /></div>
      <div class="goodstitle"><?php echo $goods['item']['title'];?></div>
      <div class="title_iocr"><a title="收藏该商品" href="javascript:void(0);" onclick="AddFavorite('<?php echo $goods['click_url'];?>','<?php echo $goods['item']['title'];?>')"><img src="{tpl_path}images/list_ioc08.gif" align="absmiddle" alt="收藏商品到收藏夹" /></a></div>
    </div>
    <!-- 商品信息 -->
    <div class="goods_info">
      <div class="goods_info_img" onMouseOver="this.className='goods_info_img_hover'" onMouseOut="this.className='goods_info_img'"><a href="<?php echo $goods['item']['pic_url'];?>" target="_blank" title="<?php echo $goods['item']['title'];?>" class="jqzoom"><img alt="<?php echo $goods['item']['title'];?>" src="<?php echo $goods['item']['pic_url'];?>_310x310.jpg" /></a></div>
      <div class="goods_info_div">
        <ul>
          <li class="scprice">市场售价：<span> <?php echo get_market_price($goods['item']['price']);?> </span>元</li>
          <li class="price">淘宝售价：<b><?php echo $goods['item']['price'];?></b>元</li>
          <li>在线客服：<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid=<?php echo urlencode($goods['item']['nick']);?>&s=1" ><img border="0" src="http://amos1.taobao.com/online.ww?v=2&uid=<?php echo urlencode($goods['item']['nick']);?>&s=1" alt="点击这里给我发消息"/></a></li>
          <li>卖家信用：<?php echo get_level_img($goods['seller_credit_score']);?></li>
          <li>商品来自：<?php echo $goods['item']['location']['state'];?> <?php echo $goods['item']['location']['city'];?></li>
          <li class="ems">运费介绍：<span>平邮：<?php echo $goods['item']['post_fee'];?>元</span><span>快递：<?php echo $goods['item']['express_fee'];?>元</span><span>EMS：<?php echo $goods['item']['ems_fee'];?>元</span></li>
          <li class="stocknum">库存数量：<b><?php echo $goods['item']['num'];?></b>件</li>
          <li>上架时间：<?php echo $goods['item']['list_time'];?></li>
          <li>下架时间：<?php echo $goods['item']['delist_time'];?></li>
        </ul>
        <div class="go_buy"> <a href="<?php echo $goods['click_url'];?>" target="_blank" title="<?php echo $goods['item']['title'];?>"><img src="{tpl_path}images/buy.gif"></a> <a href="<?php echo $goods['shop_click_url'];?>" target="_blank" title="<?php echo $goods['item']['title'];?>"><img src="{tpl_path}images/shop.gif"></a> </div>
      </div>
    </div>
    <!-- 商品头部 -->
    <div class="goods_head">
      <div class="goods_head_ioc"><img src="{tpl_path}images/ioc_02.gif" align="absmiddle"/></div>
      <div class="goods_head_nav">商品详细信息</div>
    </div>
    <!-- 商品属性 -->
    <?php 
	if(isset($props)) {
	?>
    <div class="goods_props">
      <div class="goods_props_catalogs">
        <div class="clear"></div>
        <ul>
          <?php foreach($props as $row){?>
          <li><img src="{tpl_path}images/ioc_03.gif"/><?php echo $row['prop_name'];?> : <?php echo $row['name'];?></li>
          <?php }?>
        </ul>
        <div class="clear"></div>
      </div>
    </div>
    <?php } ?>
    <!-- 商品详细 -->
    <div id="goods_desc"> <?php echo $goods['item']['desc'];?> </div>
  </div>
</div>
<script type="text/javascript">
$(document).ready(function() {
	$('.jqzoom').jqzoom({
		zoomType: 'standard',
		lens:false,
		width:310,
		height:310,
		preloadImages: false,
		alwaysOn:false,
		title:false
	});
});
</script>
<?php $this->load->view(TPL_FOLDER."footer");?>
