<? if (!defined('ROOT')) exit('Can\'t Access !'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线商城 - <?=config::get('sitename')?></title>
<meta name="Keywords" content="<?=config::get('keywords')?>" />
<meta name="Description" content="<?=config::get('description')?>" />
<link href="<?=$this->tempdir?>style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<? include template('header','wjgw'); ?>
<div class="block">
  <div id="ur_here"> 当前位置: <a href="<?=config::get('siteurl')?>">首页</a> <code>&gt;</code> <a href="<?=Purl("?mod=shop&act=main"); ?>">网上商城</a><? if($_GET['typeid']) { ?> <code>&gt;</code> <?=$this->mysql->value($this->pre."shoptype","typename","id='".$_GET['typeid']."'"); } ?></div>
</div>
<div class="blank"></div>
<div class="block clearfix">
  <div class="AreaL">
    
    
    
    <div class="tpyMp_left"> ﻿
        <div class="tpyMp_left_list" >
          <ul>
            <li>
              <h1>商品分类</h1>
            </li>
            <li style="border:0;">
              <p>              
            <? if(is_array($this->type)) { foreach($this->type as $value) { ?>            <? $url = Purl("?mod=shop&act=main&typeid=".$value['id']); ?>               <a href="<?=$url?>" <? if($value['id']==$_GET['typeid']) { ?>class='on'<? } ?>><?=$value['typename']?></a>       
            <? } } ?>              </p>
            </li>
          </ul>
        </div>
        
        <!--热销排行榜开始-->
        <div class="tpyMp_left_hotTop">
          <p class="tpyMP_left_hotTop_title"> 推荐商品 <img src="<?=$this->tempdir?>images/tpy_mp_hot.jpg" style="display:inline" /></p>
          <ul>

                                
            <? if(is_array($this->hotshop)) { foreach($this->hotshop as $value) { ?>            <? $pics = array_filter(explode('|',$value['pics']));$url = Purl("?mod=shop&act=show&id=".$value['id']); ?>            <li>
              <dl>
                <dt><a href='<?=$url?>'> <img src="<?=$pics['0']?>" /></a></dt>
                <dd><a href='<?=$url?>'><?=$value['name']?></a></dd>
                <dd><em>￥<?=$value['money']?></em><label><font color="red"><?=$value['integral']?></font>分可抵<font color="red"><?=$value['change']?></font>元</label></dd>
              </dl>
            </li>
            <? } } ?>          </ul>
        </div>
        <!--热销排行榜结束-->
        
        
        
        
      </div>
    
    
    
    
    
    <div class="blank" style="height:10px; overflow:hidden"></div>
  </div>
  <div class="AreaR">
    <div class="box">
      <div class="box_1">
        <h3> <span>商品列表</span></h3>
          <div class="clearfix goodsBox" style="border:none;">
            <? if(is_array($this->shop)) { foreach($this->shop as $value) { ?>            <? $pics = array_filter(explode('|',$value['pics']));$url = Purl("?mod=shop&act=show&id=".$value['id']); ?>            
              <div class="goodsItem"  style="background:url(<?=$this->tempdir?>images/line_1.gif) right center no-repeat;"> 
                <a href="<?=$url?>"><img src="<?=$pics['0']?>" class="goodsimg" /></a><br />
                <p class="height_name"><a href="<?=$url?>"><?=$value['name']?></a></p>
                <font class="f1">会员价：<strong><?=$value['money']?>元</strong></font><br />
                <a href="<?=$url?>" class="f6"><img src="<?=$this->tempdir?>images/buy.gif"></a> 
              </div>
            <? } } ?>          </div>
      </div>
    </div>
    <div class="blank5"></div>
    <div class="page" style="border:0; float:right;"><?=$this->showpage?></div>
  </div>
</div>
<? include template('footer','wjgw'); ?>
