<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<script src="{tpl_path}js/jquery.Slide.js" type="text/javascript" charset="gb2312"></script>
<div class=ad950>
  <script type="text/javascript" src="<?php echo site_url(CTL_FOLDER.'feed/ads/2');?>"></script>
</div>
<div class=index>
<div class=index_header>
  <div class=index_header_left>
    <div class=hot_class_area>
      <div class=hot_class>
        <div class=hot_class_head>
          <div class=hot_class_headl><img src="{tpl_path}images/hot_class.gif"></div>
          <div class=hot_class_headr><a href="<?php echo site_url(CTL_FOLDER.'shop/sitemap');?>">查看所有分类 →</a></div>
        </div>
        <?php foreach($hot_cats as $row){?>
        <div class="class_area">
          <div class="sub_class">
            <div class="classname l"><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=<?php echo $row['cid'];?>" title="<?php echo $row['cat_name'];?>"><?php echo $row['cat_name'];?></a></div>
            <div class="content_area l">
              <p>
                <?php 
			  $i = 1;
			  foreach($row['item'] as $v){?>
                <a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=<?php echo $v['cid'];?>" title="<?php echo $v['cat_name'];?>"><?php echo $v['cat_name'];?></a>
                <?php 
			  	if($i >= 8) break;
			  	$i++;
			  }?>
              </p>
            </div>
            <div style="clear:both"></div>
          </div>
          <div class="hoverbox">
            <ul>
              <?php foreach($row['item'] as $v){?>
              <li><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=<?php echo $v['cid'];?>" title="<?php echo $v['cat_name'];?>"><?php echo $v['cat_name'];?></a></li>
              <?php }?>
            </ul>
          </div>
          <div style="clear:both"></div>
        </div>
        <?php }?>
      </div>
    </div>
  </div>
  <!--右部结束-->
  <div class=index_header_right>
    <!--加载幻灯片-->
    <div id="imgSlide" style="visibility:hidden;">
      <?php
	foreach($flash_img as $row){
	?>
      <a href="<?php echo $row['hplink'];?>" target="_blank"><img src="<?php echo get_real_path($row['pic_path']);?>" alt="<?php echo $row['title'];?>" width="601" height="300" /></a>
      <?php
    }
	?>
    </div>
    <div class=brand_box>
      <div class=brand_box_header><img src="{tpl_path}images/brand.gif"></div>
      <div class=brand_box_img>
        <ul>
          <?php
	$i = 1; 
	foreach($shop as $row){
	?>
          <li><a target="_blank" title="<?php echo $row['title'];?>" href="<?php echo $row['hplink'];?>"><img height="66" width="95" alt="<?php echo $row['title'];?>" src="<?php echo get_real_path($row['pic_path']);?>" /></a></li>
          <?php 
		if($i >= 10) break;
		$i++;
	}?>
        </ul>
      </div>
    </div>
  </div>
</div>
<!--通栏广告-->
<div class=ad950>
    <script type="text/javascript" src="<?php echo site_url(CTL_FOLDER.'feed/ads/3');?>"></script>
  </div>
  <div class=index_goods>
    <!--左部-->
    <div class=goods_left>
      <!--头部-->
      <div class=goods_head>
        <div class=goods_head_title>女装精品</div>
        <div class=goods_head_hot><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=16">更多&gt;&gt;&gt;</a></div>
      </div>
      <div class=goods_div>
        <?php 
		if(isset($nvz)){
		foreach($nvz as $row){
		?>
        <div class=goods_list>
          <div class="goods_list_img" onMouseOver="this.className='goods_list_img_hover'" onMouseOut="this.className='goods_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=goods_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=goods_list_price>市场价:￥<span class=goods_list_scprice><?php echo get_market_price($row['price']);?> </span>元<br>
            <span class=goods_list_tbprice>淘宝价:￥<b><?php echo $row['price'];?></b> 元</span> </div>
        </div>
        <?php 
			}
		}?>
      </div>
    </div>
    <!--本块右部-->
    <div class=goods_right>
      <div class=goods_head>
        <div class=goods_head_title>热门店铺</div>
      </div>
      <div class=index_shop>
        <ul>
          <?php 
		if(isset($nvzd)){
		foreach($nvzd as $row){
		?>
          <li><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo strcut($row['shop_title'],21);?></a> <?php echo get_level_img($row['seller_credit']);?> </li>
          <?php 
			}
		}?>
        </ul>
      </div>
    </div>
  </div>
  <div class=index_goods>
    <!--左部-->
    <div class=goods_left>
      <!--头部-->
      <div class=goods_head>
        <div class=goods_head_title>流行男装</div>
        <div class=goods_head_hot><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=30">更多&gt;&gt;&gt;</a></div>
      </div>
      <div class=goods_div>
        <?php 
		if(isset($men)){
		foreach($men as $row){
		?>
        <div class=goods_list>
          <div class="goods_list_img" onMouseOver="this.className='goods_list_img_hover'" onMouseOut="this.className='goods_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=goods_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=goods_list_price>市场价:￥<span class=goods_list_scprice><?php echo get_market_price($row['price']);?> </span>元<br>
            <span class=goods_list_tbprice>淘宝价:￥<b><?php echo $row['price'];?></b> 元</span> </div>
        </div>
        <?php 
			}
		}?>
      </div>
    </div>
    <!--本块右部-->
    <div class=goods_right>
      <div class=goods_head>
        <div class=goods_head_title>热门店铺</div>
      </div>
      <div class=index_shop>
        <ul>
          <?php 
		if(isset($mend)){
		foreach($mend as $row){
		?>
          <li><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo strcut($row['shop_title'],21);?></a> <?php echo get_level_img($row['seller_credit']);?> </li>
          <?php 
			}
		}?>
        </ul>
      </div>
    </div>
  </div>
  <div class=index_goods>
    <!--左部-->
    <div class=goods_left>
      <!--头部-->
      <div class=goods_head>
        <div class=goods_head_title>美容彩妆</div>
        <div class=goods_head_hot><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=50010788">更多&gt;&gt;&gt;</a></div>
      </div>
      <div class=goods_div>
        <?php 
		if(isset($mr)){
		foreach($mr as $row){
		?>
        <div class=goods_list>
          <div class="goods_list_img" onMouseOver="this.className='goods_list_img_hover'" onMouseOut="this.className='goods_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=goods_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=goods_list_price>市场价:￥<span class=goods_list_scprice><?php echo get_market_price($row['price']);?> </span>元<br>
            <span class=goods_list_tbprice>淘宝价:￥<b><?php echo $row['price'];?></b> 元</span> </div>
        </div>
        <?php 
			}
		}?>
      </div>
    </div>
    <!--本块右部-->
    <div class=goods_right>
      <div class=goods_head>
        <div class=goods_head_title>热门店铺</div>
      </div>
      <div class=index_shop>
        <ul>
          <?php 
		if(isset($mrd)){
		foreach($mrd as $row){
		?>
          <li><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo strcut($row['shop_title'],21);?></a> <?php echo get_level_img($row['seller_credit']);?> </li>
          <?php 
			}
		}?>
        </ul>
      </div>
    </div>
  </div>
  <div class=index_goods>
    <!--左部-->
    <div class=goods_left>
      <!--头部-->
      <div class=goods_head>
        <div class=goods_head_title>热销箱包</div>
        <div class=goods_head_hot><a href="<?php echo site_url(CTL_FOLDER.'search');?>?cid=50006842">更多&gt;&gt;&gt;</a></div>
      </div>
      <div class=goods_div>
        <?php 
		if(isset($xb)){
		foreach($xb as $row){
		?>
        <div class=goods_list>
          <div class="goods_list_img" onMouseOver="this.className='goods_list_img_hover'" onMouseOut="this.className='goods_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=goods_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=goods_list_price>市场价:￥<span class=goods_list_scprice><?php echo get_market_price($row['price']);?> </span>元<br>
            <span class=goods_list_tbprice>淘宝价:￥<b><?php echo $row['price'];?></b> 元</span> </div>
        </div>
        <?php 
			}
		}?>
      </div>
    </div>
    <!--本块右部-->
    <div class=goods_right>
      <div class=goods_head>
        <div class=goods_head_title>热门店铺</div>
      </div>
      <div class=index_shop>
        <ul>
          <?php 
		if(isset($xbd)){
		foreach($xbd as $row){
		?>
          <li><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo strcut($row['shop_title'],21);?></a> <?php echo get_level_img($row['seller_credit']);?> </li>
          <?php 
			}
		}?>
        </ul>
      </div>
    </div>
  </div>
</div>
<div class=ad950>
  <script type="text/javascript" src="<?php echo site_url(CTL_FOLDER.'feed/ads/4');?>"></script>
</div>
<!-- 用户帮助 -->
<div class=mall_desc>
  <div class=mall_desc_bg>
    <div class=mall_desc_boxl>
      <ul>
        <li>本站是淘宝网特约合作导购站点</li>
        <li>本站所有商品均与淘宝同时发布</li>
        <li>交易均在淘宝进行，请放心购买 </li>
      </ul>
    </div>
    <div class=mall_desc_boxr>
      <div class=mall_desc_boxr01>
        <ul>
          <h3>新手上路</h3>
          <li><a href="http://member1.taobao.com/member/newbie.htm" target=_blank>免费注册</a>
          <li><a href="https://lab.alipay.com/user/reg/index.htm" target=_blank>开通支付宝</a>
          <li><a href="http://abc.alipay.com/inpour.html" target=_blank>支付宝充值</a>
          <li><a href="http://service.taobao.com/support/knowledge-1115818.htm" target=_blank>如何购买</a> </li>
        </ul>
      </div>
      <div class=mall_desc_boxr_line></div>
      <div class=mall_desc_boxr02>
        <ul>
          <h3>支付方式</h3>
          <li><a href="http://abc.alipay.com/paymentaccount.html" target=_blank>支付宝支付</a>
          <li><a href="http://abc.alipay.com/paymentcard.html" target=_blank>信誉卡支付</a>
          <li><a href="http://abc.alipay.com/paymentcash.html" target=_blank>货到付款</a>
          <li><a href="http://abc.alipay.com/paymentbank.html" target=_blank>网上银行支付</a> </li>
        </ul>
      </div>
      <div class=mall_desc_boxr_line></div>
      <div class=mall_desc_boxr03>
        <ul>
          <h3>售后服务</h3>
          <li><a href="http://service.taobao.com/support/9799.htm" target=_blank>交易维权</a>
          <li><a href="http://service.taobao.com/support/9801.htm" target=_blank>投诉卖家流程</a>
          <li><a href="http://service.taobao.com/support/9802.htm" target=_blank>举报卖家流程</a>
          <li><a href="http://www.taobao.com/about/contact.php" target=_blank>淘宝网客服电话</a> </li>
        </ul>
      </div>
    </div>
  </div>
</div>
<div class=links>
  <ul>
    <li>友情链接: </li>
    <?php foreach($link as $row){?>
    <li><a href="<?php echo $row->hplink;?>" target="_blank" title="<?php echo $row->title;?>"><?php echo $row->title;?></a></li>
    <?php }?>
  </ul>
</div>
<script type="text/javascript">
$(function(){
	$("#imgSlide").KinSlideshow({
		moveStyle:"down",
		intervalTime:8,
		mouseEvent:"mouseover",
		titleFont:{TitleFont_size:14,TitleFont_color:"#ffffff"}
	});
	$('div.class_area').mouseover(function(){
		$(this).find('div.sub_class').addClass('hoverbd').next('div.hoverbox').show();
	}).mouseout(function(){
		$(this).find('div.sub_class').removeClass('hoverbd').next('div.hoverbox').hide();
	});
})
</script>
<?php $this->load->view(TPL_FOLDER."footer");?>
