<?php if (!defined('THINK_PATH')) exit();?>

<!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><?php echo ($site_info["title"]); ?></title>
<meta name="keywords" content="<?php echo ($site_info["keyword"]); ?>" />
<meta name="description" content="<?php echo ($site_info["content"]); ?>" />
	

<link rel="stylesheet" type="text/css" href="<?php echo ($TMPL_PATH); ?>Public/css/style.css" />
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jquery.json.js"></script>
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/script.js"></script>
<script language="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '__URL__';
var ROOT_PATH = '__ROOT__';
var APP	 =	 '__APP__';
var PUBLIC = '<?php echo ($TMPL_PATH); ?>ThemeFiles';
var VAR_MODULE = '<?php echo c('VAR_MODULE');?>';
var VAR_ACTION = '<?php echo c('VAR_ACTION');?>';
var CURR_MODULE = '<?php echo ($module_name); ?>';
var KEYWORDS_EMPTY = '<?php echo L("KEYWORDS_EMPTY");?>';
var REPLY = '<?php echo L("REPLY");?>';
var IS_NAN	=	'<?php echo L("IS_NAN");?>';	
var FANWE_LANG_ID = '<?php echo ($FANWE_LANG_ID); ?>';
//-->
</script>
</head>

<body>
<div id="ajax_loader"></div>
<script type="text/javascript">
	initAjaxLoader();
</script>

<div class="wrap">
    <div id="header">
    	
    	<div class="f_l">
        	<a href="<?php echo c('SHOP_URL');?>" target="_blank" ><img src="__ROOT__<?php echo ($sunnyi_logo); ?>" /></a>
        </div><!--end logo-->
        <div class="f_l" style="padding-left:30px; width:300px;">

        	<ul class="top_menu">
        	<li class="top_home"><a href="__APP__/" >首页</a></li>
			<li class="top_pick"><a href="<?php echo u("Goods/pick");?>" >选购中心</a></li>
			<li class="top_member"><a href="<?php echo u("Message/index");?>" >留言中心</a></li>
			<li class="top_cart"><a href="<?php echo u("Cart/listCart");?>" >购物车</a></li>
        	</ul><!--end top_menu-->

            
            <div class="blank"></div><div class="blank"></div>
            <div class="top_login">
            	<div class="top_member">
<?php if($is_login): ?><?php echo L("WELCOMEBACK");?>&nbsp;&nbsp;<?php echo $_SESSION["user_name"];?>!  &nbsp;&nbsp;<a href="<?php echo u('UserCenter/index');?>"><?php echo L("USER_CENTER");?></a> <a href="<?php echo u('User/logout');?>"><?php echo L("LOGOUT");?></a>
            	<?php else: ?>
            		<?php echo L("WELCOME");?>&nbsp;&nbsp;[<a href="<?php echo u('User/register');?>"><?php echo L("REG");?></a>]&nbsp;&nbsp;[<a href="<?php echo u('User/login');?>"><?php echo L("LOGIN");?></a>]<?php endif; ?></div>
            </div><!--end top_login-->
		
        </div><!--end header_left-->
		<div class="cs_img" ></div>
	</div>
    <div class="blank" style="height:2px; font-size:0px; line-height:0px;"></div>
    <div class="main_nav">
    	<span style="position:absolute; right:0px;">
            	<span class="define_main_nav">
<a href="<?php echo u('Goods/index',array('rec'=>'is_promote'));?>">
特价商品
</a>
<a href="<?php echo u('Goods/isHot');?>">
热卖商品
</a>
<a href="<?php echo u('Message/index');?>">
留言中心
</a>
</span>
       </span>
        <div class="nav_main">
        	<ul class="f_l">
        		<?php if(is_array($main_navs)): foreach($main_navs as $key=>$nav): ?><li><a href="<?php echo ($nav["url"]); ?>" <?php if($nav["act"] == '1'): ?>class="act"<?php endif; ?>  target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["name_1"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
            
        </div><!--end nav_main-->
    </div><!--end main_nav-->
	<div class="sub_main_nav">
		<div id="cart">
			 <a href="<?php echo u('Cart/listCart');?>"><?php echo L("YOUR_CART_HAVE");?> <span style="color:#da6700; font-size:12px; font-weight:bold; font-family:verdana;"><?php echo (intval($cart_info["total_number"])); ?></span> <?php echo L("UNIT_GOODS");?> 

	        </a>
		</div>
		<a href="<?php echo u('Cart/listCart');?>" id="gocheck"></a>
		<form name="search_form" action="__APP__" onsubmit="return checkKeywords();" >
    	<input type="hidden" name="<?php echo c('VAR_MODULE');?>" value="Goods" />
        <input type="hidden" name="<?php echo c('VAR_ACTION');?>" value="advSearch" />
		<input type="hidden" name="search" value="search" />
		<select name="cate_id">
						<option value='0' <?php if($cate_id == 0): ?>selected="selected"<?php endif; ?>><?php echo L("ALL_CATE");?></option>
						<?php if(is_array($cate_list)): foreach($cate_list as $key=>$cate_item): ?><option value="<?php echo ($cate_item["id"]); ?>" <?php if($cate_id == $cate_item['id']): ?>selected="selected"<?php endif; ?>><?php echo ($cate_item["name_1"]); ?></option><?php endforeach; endif; ?>
		</select>
		<select name="brand_id">
						<option value='0' <?php if($brand_id == 0): ?>selected="selected"<?php endif; ?>><?php echo L("ALL_BRAND");?></option>
						<?php if(is_array($brand_list)): foreach($brand_list as $key=>$brand_item): ?><option value="<?php echo ($brand_item["id"]); ?>" <?php if($brand_id == $brand_item['id']): ?>selected="selected"<?php endif; ?>><?php echo ($brand_item["name_1"]); ?></option><?php endforeach; endif; ?>
		</select>
		<?php if($spec_list): ?><?php if(is_array($spec_list)): foreach($spec_list as $key=>$spec_type): ?><select name="spec_type[<?php echo ($spec_type["spec_type"]["id"]); ?>]">
						<option value="" <?php if($spec_search_list[$spec_type['spec_type']['id']] == ''): ?>selected="selected"<?php endif; ?>>==<?php echo L("PLEASE_SELECT");?><?php echo ($spec_type["spec_type"]["name_1"]); ?>==</option>
						<?php if(is_array($spec_type["spec_list"])): foreach($spec_type["spec_list"] as $key=>$spec_item): ?><option value="<?php echo (urlencode($spec_item["spec_name"])); ?>" <?php if($spec_search_list[$spec_type['spec_type']['id']] == $spec_item['spec_name']): ?>selected="selected"<?php endif; ?>><?php echo ($spec_item["spec_name"]); ?></option><?php endforeach; endif; ?>
						</select><?php endforeach; endif; ?><?php endif; ?>
        <input type="text" class="txt_search" name="keywords" id="head_keywords" />&nbsp;&nbsp;<input type="submit" id="searchbtn" value="<?php echo L("SEARCH");?>" />&nbsp;&nbsp;<span ><a href="<?php echo u('Goods/advSearch');?>"><?php echo L("ADV_SEARCH");?></a></span>&nbsp;&nbsp;
</form>
		
	</div><!--end sub_main_nav--> 
</div><!--通用头部 header-->
</div><!--end wrap-->
<div class="blank5"></div>

<div class="blank"></div>
<div class="wrap">
<div class="f_l left">
	<div class="inc_cate_tree">
    	<div class="inc_top"></div>
        <div class="inc_mid clearfix" style="padding:5px; width:184px;">
        	<ul class="list_03">
        	<?php if(is_array($cate_tree)): foreach($cate_tree as $key=>$cate_item): ?><li class="tree_level_<?php echo ($cate_item["level"]); ?>"><a href="<?php echo ($cate_item["url"]); ?>" <?php if($cate_item["act"] == 1): ?>class="cate_act"<?php endif; ?>><?php echo ($cate_item["name_1"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2-->
	<div class="blank"></div>
	<div class="inc_tag">
    	<div class="inc_top">
    	<span class="more"><a href="<?php echo u("Brand/index");?>"><?php echo L("MORE");?></a></span>
		<?php echo L("BRAND_LIST");?>
    	</div>
        <div class="inc_mid clearfix">

        	<?php if(is_array($rec_brand_list)): foreach($rec_brand_list as $key=>$brand_item): ?><div class="brand_item">
            		<a href="<?php echo ($brand_item["url"]); ?>" title="<?php echo ($brand_item["name_1"]); ?>(<?php echo ($brand_item["count"]); ?>)"><img src="__ROOT__<?php echo ($brand_item["logo"]); ?>" /></a>
            	</div><?php endforeach; endif; ?>

        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2-->
	<div class="blank"></div>
	<?php $rec_list = array (
  0 => 
  array (
    'id' => '83',
    'name_1' => ' LINING 李宁男子网球文化鞋 ATCD017-4 YLN09D ',
    'sn' => 'ln0200b',
    'cate_id' => '51',
    'click_count' => '14',
    'cost_price' => '100.0000',
    'shop_price' => '199.0000',
    'market_price' => '279.0000',
    'promote_price' => '122.0000',
    'promote_begin_time' => '1265788800',
    'promote_end_time' => '1360223999',
    'create_time' => '1267056274',
    'update_time' => '1267133306',
    'type_id' => '6',
    'stock' => '52',
    'brief_1' => '',
    'brand_id' => '43',
    'is_best' => '1',
    'is_hot' => '1',
    'status' => '1',
    'sort' => '5',
    'seokeyword_1' => '',
    'seocontent_1' => '',
    'goods_desc_1' => '<img src="./Public/upload/kind/201002/4b862ee80357a.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862eef5b15d.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862ef5b0e74.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862efc30949.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862f030d968.jpg" alt="" border="0" /><br />
',
    'small_img' => '/Public/upload/goods/small/201002/4b862ec41c39e.jpg',
    'big_img' => '/Public/upload/goods/big/201002/4b862ec41c39e.jpg',
    'origin_img' => '/Public/upload/goods/origin/201002/4b862ec41c39e.jpg',
    'is_inquiry' => '0',
    'weight' => '0.0000',
    'spec_type' => '',
    'weight_unit' => '5',
    'score' => 5,
    'url' => '/index.php?m=Goods&a=show&id=83',
    'short' => ' LINING 李宁男子网球文化鞋 ATCD017-4 YL…',
    'update_time_format' => '2010-02-26 13:28:26',
    'create_time_format' => '2010-02-25 16:04:34',
    'promote_begin_time_format' => '2010-02-11 00:00:00',
    'promote_end_time_format' => '2013-02-07 23:59:59',
    'promote_price_format' => '￥ 122.00',
    'market_price_format' => '￥ 279.00',
    'shop_price_format' => '￥ 199.00',
    'score_format' => '获取 199 积分',
    'max_score_format' => '获取 0 积分',
    'review' => '1',
  ),
); $adv = 0; $cate_top_sale = array (
  0 => 
  array (
    'id' => '82',
    'name_1' => '公牛世家男子商务休闲鞋 A9619180 SGN09CD',
    'sn' => 'gn0020a',
    'cate_id' => '62',
    'click_count' => '9',
    'cost_price' => '150.0000',
    'shop_price' => '270.0000',
    'market_price' => '380.0000',
    'promote_price' => '180.0000',
    'promote_begin_time' => '1265011200',
    'promote_end_time' => '1330243199',
    'create_time' => '1267055895',
    'update_time' => '1267133332',
    'type_id' => '6',
    'stock' => '201',
    'brief_1' => '',
    'brand_id' => '42',
    'is_best' => '1',
    'is_hot' => '1',
    'status' => '1',
    'sort' => '4',
    'seokeyword_1' => '',
    'seocontent_1' => '',
    'goods_desc_1' => '<img src="./Public/upload/kind/201002/4b862d726e964.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862d7c440cd.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862d830378b.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862d89bdce4.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862d90a6e30.jpg" alt="" border="0" /><br />
',
    'small_img' => '/Public/upload/goods/small/201002/4b86285dd8468.jpg',
    'big_img' => '/Public/upload/goods/big/201002/4b86285dd8468.jpg',
    'origin_img' => '/Public/upload/goods/origin/201002/4b86285dd8468.jpg',
    'is_inquiry' => '0',
    'weight' => '0.0000',
    'spec_type' => '',
    'weight_unit' => '5',
    'score' => '270',
    'url' => '/index.php?m=Goods&a=show&id=82',
    'short' => '公牛世家男子商务休闲鞋 A9619180 SGN09CD…',
    'update_time_format' => '2010-02-26 13:28:52',
    'create_time_format' => '2010-02-25 15:58:15',
    'promote_begin_time_format' => '2010-02-02 00:00:00',
    'promote_end_time_format' => '2012-02-26 23:59:59',
    'promote_price_format' => '￥ 180.00',
    'market_price_format' => '￥ 380.00',
    'shop_price_format' => '￥ 270.00',
    'weight_format' => '0 公斤',
    'score_format' => '获取 270 积分',
    'max_score_format' => '获取 0 积分',
  ),
  1 => 
  array (
    'id' => '80',
    'name_1' => '正品耐克NIKE女子经典鞋 324862-164 ',
    'sn' => 'nk0045a',
    'cate_id' => '53',
    'click_count' => '10',
    'cost_price' => '200.0000',
    'shop_price' => '359.0000',
    'market_price' => '488.0000',
    'promote_price' => '234.0000',
    'promote_begin_time' => '1264924800',
    'promote_end_time' => '1328342399',
    'create_time' => '1267053843',
    'update_time' => '1267133849',
    'type_id' => '6',
    'stock' => '800',
    'brief_1' => '',
    'brand_id' => '44',
    'is_best' => '1',
    'is_hot' => '1',
    'status' => '1',
    'sort' => '2',
    'seokeyword_1' => '',
    'seocontent_1' => '',
    'goods_desc_1' => '<img src="./Public/upload/kind/201002/4b8625725c309.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b86257c4ff60.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b862582e5c23.jpg" alt="" border="0" /><img src="./Public/upload/kind/201002/4b8625898d175.jpg" alt="" border="0" /><br />
',
    'small_img' => '/Public/upload/goods/small/201002/4b8625ac03521.jpg',
    'big_img' => '/Public/upload/goods/big/201002/4b8625ac03521.jpg',
    'origin_img' => '/Public/upload/goods/origin/201002/4b8625ac03521.jpg',
    'is_inquiry' => '0',
    'weight' => '0.0000',
    'spec_type' => '',
    'weight_unit' => '5',
    'score' => '359',
    'url' => '/index.php?m=Goods&a=show&id=80',
    'short' => '正品耐克NIKE女子经典鞋 324862-164 …',
    'update_time_format' => '2010-02-26 13:37:29',
    'create_time_format' => '2010-02-25 15:24:03',
    'promote_begin_time_format' => '2010-02-01 00:00:00',
    'promote_end_time_format' => '2012-02-04 23:59:59',
    'promote_price_format' => '￥ 234.00',
    'market_price_format' => '￥ 488.00',
    'shop_price_format' => '￥ 359.00',
    'weight_format' => '0 公斤',
    'score_format' => '获取 359 积分',
    'max_score_format' => '获取 0 积分',
  ),
);  ?><?php if(sunnyiC('IS_INQUIRY') != 1): ?><div class="inc_02">
    	<div class="inc_top"><?php echo L("IS_PROMOTE");?>
    	<span class="more"><a href="<?php echo u("Goods/index",array('id'=>0,'rec'=>'is_promote'));?>"><?php echo L("MORE");?></a></span>
    	</div>
        <div class="inc_mid">
         	<?php if(is_array($rec_list)): foreach($rec_list as $key=>$goods_item): ?><div class="promote_row clearfix">
            		<div class="f_l">
            			<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><img src="__ROOT__<?php echo ($goods_item["small_img"]); ?>" width="45" height="45" class="goods_img" alt="<?php echo ($goods_item["name_1"]); ?>"/></a>
            		</div>
            		<div class="f_l" style="padding-left:5px; width:120px;">
            			<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><?php echo (msubstr($goods_item["name_1"],0,8)); ?> </a>
            			<div class="blank5"></div>
            			<span class="market_price" ><?php echo ($goods_item["shop_price_format"]); ?></span><br />
            			<?php if($goods_item['promote_begin_time'] < $time and $goods_item['promote_end_time'] > $time): ?><span class="shop_price"><?php echo ($goods_item["promote_price_format"]); ?> [<?php echo L("PROMOTE");?>]</span>
	                	<?php else: ?>
	                	<span class="shop_price"><?php echo ($goods_item["shop_price_format"]); ?></span><?php endif; ?>
	                	</div>
            		<div class="blank5"></div>
            	</div><?php endforeach; endif; ?>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2--><?php endif; ?>
	<div class="blank"></div>
	<?php if($top_sale): ?><div class="inc_02">
    	<div class="inc_top"><?php echo L("TOP_SALE");?>
    	</div>
        <div class="inc_mid">
         	<?php if(is_array($top_sale)): foreach($top_sale as $key=>$goods_item): ?><div class="promote_row clearfix">
            		<div class="f_l">
            			<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><img src="__ROOT__<?php echo ($goods_item["small_img"]); ?>" width="45" height="45" class="goods_img" alt="<?php echo ($goods_item["name_1"]); ?>"/></a>
            		</div>
            		<div class="f_l" style="padding-left:5px; width:120px;">
            			<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><?php echo (msubstr($goods_item["name_1"],0,8)); ?> </a>
            			<div class="blank5"></div>
            			<span class="market_price"><?php echo ($goods_item["market_price_format"]); ?></span>&nbsp;
            			<?php if($goods_item['promote_begin_time'] < $time and $goods_item['promote_end_time'] > $time): ?><span class="shop_price"><?php echo ($goods_item["promote_price_format"]); ?> [<?php echo L("PROMOTE");?>]</span>
	                	<?php else: ?>
	                	<span class="shop_price"><?php echo ($goods_item["shop_price_format"]); ?></span><?php endif; ?>

            		</div>
            		<div class="blank5"></div>
            	</div><?php endforeach; endif; ?>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2--><?php endif; ?>		
</div><!--end f_l-->
<div class="f_r right">
	<link rel="stylesheet" type="text/css" href="<?php echo ($TMPL_PATH); ?>Public/css/jqzoom.css" />
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jquery.jqzoom.js"></script>
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jcarousellite.js"></script>
<script type="text/javascript">
	$(document).ready(function(){		
		$(".jqzoom").jqzoom();			
	});	
var NOT_SPEC_ITEM = '<?php echo L("NOT_SPEC_ITEM");?>';
</script>
<input type="hidden" id="goods_id" value="<?php echo ($goods_info["id"]); ?>" />
<div class="inc_goods_info">
        <div class="inc_mid clearfix">

			<div class="f_l" style="width:330px;">
				<div class="big_img" id="big_img">
					<?php if(is_array($goods_info["gallery_info"])): foreach($goods_info["gallery_info"] as $key=>$gallery_item): ?><div <?php if($gallery_item["is_default"] == 1): ?>style="z-index:999;"<?php endif; ?>>
						<a href="__ROOT__<?php echo ($gallery_item["origin_img"]); ?>" class="jqzoom" title="<?php echo ($goods_info["name_1"]); ?>"  >
						<img src="__ROOT__<?php echo ($gallery_item["big_img"]); ?>"  alt="<?php echo ($goods_info["name_1"]); ?>" />
						</a>
						</div><?php endforeach; endif; ?>
				</div><!-- end big_img -->
				
				<div class="blank"></div>
				
				<!-- 图库 -->
				<div class="small_img" id="small_img">
					<a href="#" class="prev" onfocus="this.blur();">&nbsp;</a>
					<div class="gallery_list">
					<ul>
					<?php if(is_array($goods_info["gallery_info"])): foreach($goods_info["gallery_info"] as $key=>$gallery_item): ?><li><a href='javascript:;' <?php if($gallery_item["is_default"] == 1): ?>class="act"<?php endif; ?> ><img src="__ROOT__<?php echo ($gallery_item["small_img"]); ?>" /></a></li><?php endforeach; endif; ?>
					</ul>
					</div>
					<a href="#" class="next"  onfocus="this.blur();">&nbsp;</a>	
				</div><!-- end small_img -->			
				<!-- end 图库 -->
				<script type="text/javascript">
				$(".small_img .gallery_list").jCarouselLite({
				    btnNext: ".small_img .next",
				    btnPrev: ".small_img .prev",
				    visible: 5
				});	
				init_gallery();			
				</script>
				<div class="blank"></div>
				<div class="tc">
					<?php if($next_item): ?><a href="<?php echo ($next_item["url"]); ?>" class="prev_b"></a><?php endif; ?>
					<?php if($prev_item): ?><a href="<?php echo ($prev_item["url"]); ?>" class="next_b"></a><?php endif; ?>
				</div>
			</div><!-- end -->
			<div class="f_r" style="width:410px; padding:5px; background:#e1e1e1; border:1px solid #fff;">
			<!-- 商品的相关描述 -->
			<div class="goods_name_box"><?php echo ($goods_info["name_1"]); ?></div>
			<div class="goods_sn_box"><?php echo L("GOODS_SN");?>：<span id="sn"><?php echo ($goods_info["sn"]); ?></span></div>
			<div class="goods_info_box">
				<table class="goods_info_desc">
				<tr>
					<td><?php echo L("GOODS_SCORE");?>：</td>
					<td><?php echo ($goods_info["score_format"]); ?></td>
				</tr>
				<tr>
					<td><?php echo L("MARKET_PRICE");?>：</td>
					<td><span class="market_price" id="market_price" ><?php echo ($goods_info["market_price_format"]); ?></span></td>
				</tr>
				<tr>
					<td><?php echo L("SHOP_PRICE");?>：</td>
					<td><span class="shop_price" id="shop_price"><?php echo ($goods_info["shop_price_format"]); ?></span></td>
				</tr>
				<?php if($is_login): ?><tr>
					<td><?php echo L("MEMBER_PRICE");?>：</td>
					<td><span class="shop_price" id="member_price"><?php echo ($goods_info["member_price_format"]); ?></span></td>
				</tr><?php endif; ?>
				<?php if($goods_info['promote_begin_time'] < $time and $goods_info['promote_end_time'] > $time): ?><tr>
					<td><?php echo L("PROMOTE_PRICE");?>：</td>
					<td><span class="shop_price" id="promote_price"><?php echo ($goods_info["promote_price_format"]); ?></span></td>
				</tr>				
				<tr>
					<td> &nbsp;</td>
					<td><span class="shop_price"><?php echo (substr($goods_info["promote_begin_time_format"],0,10)); ?> - <?php echo (substr($goods_info["promote_end_time_format"],0,10)); ?></span></td>
				</tr><?php endif; ?>
				<?php if($use_stock == 1): ?><tr>
					<td><?php echo L("STOCK");?>：</td>
					<td><span id="stock"><?php echo ($goods_info["stock"]); ?></span></td>
				</tr><?php endif; ?>
		
				<?php if($goods_info['brand_info']['id']): ?><tr>
					<td><?php echo L("GOODS_BRAND");?>：</td>
					<td><a href="<?php echo ($goods_info["brand_info"]["url"]); ?>"><?php echo ($goods_info["brand_info"]["name_1"]); ?></a></td>
				</tr><?php endif; ?>
				<?php if($goods_info['type_info']): ?><tr>
					<td><?php echo L("GOODS_TYPE");?>：</td>
					<td><a href="<?php echo ($goods_info["type_info"]["url"]); ?>"><?php echo ($goods_info["type_info"]["name_1"]); ?></a></td>
				</tr><?php endif; ?>
				</table>
				</div>
				<div class="blank5"></div>
				<div class="goods_info_box">
				<table class="goods_info_desc">
				<!-- 规格 -->
				<tr>
					<td colspan=2>
						<?php if($spec_list): ?><?php if(is_array($spec_list)): foreach($spec_list as $key=>$spec_type): ?><div class="spec_type_row clearfix">
		<label><?php echo ($spec_type["spec_type"]["name_1"]); ?>：</label>
			<?php if(is_array($spec_type['spec_list'])): foreach($spec_type['spec_list'] as $key=>$spec_item): ?><a href="javascript:;" onclick="setSpec(<?php echo ($spec_item["id"]); ?>,this);" id="spec_item_<?php echo ($spec_item["id"]); ?>" onfocus="this.blur();">
				<i></i>
				<?php if($spec_type['spec_type']['type'] == 1): ?><dl><img src="__ROOT__<?php echo ($spec_item["img"]); ?>" /></dl>
				<?php else: ?>
				<span><?php echo ($spec_item["spec_name_1"]); ?></span><?php endif; ?>
			</a><?php endforeach; endif; ?> 
			<input type="hidden" id="type_<?php echo ($spec_type["spec_type"]["id"]); ?>" class="spec_type_input" value="0" />
		</div><?php endforeach; endif; ?><?php endif; ?>
<input type="hidden" id="spec_item" value="0"/>		
					</td>
				</tr>
				<!-- end 规格 -->
				<tr>
					<td><?php echo L("NUMBER");?>：</td>
					<td><input type="text" class="btn_norequire" value="1" size="5" id="number" onchange="cal_price();" /></td>
				</tr>
				<tr>
					<td><?php echo L("TOTAL_PRICE");?>：</td>
					<td><span class="shop_price" id="total_price"></span>&nbsp;&nbsp;<span id="spec_choose"></span></td>
				</tr>

				<tr>
					<td>&nbsp;</td>
					<td><input type="button" id="buy_button" disabled="disabled" class="btn_buy_disable" value="<?php echo L("BUY");?>" onclick="addGoodsToCart(<?php echo ($goods_info["id"]); ?>)" /></td>
				</tr>
			</table>
			</div>
			<!-- 商品的相关描述 -->
			</div><!-- end goods_info -->

        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	

 <script type="text/javascript">
	window.onload = cal_price;
 </script>
  <!-- 商品固定属性 -->
    <div class="blank"></div>
    <div class="inc_03">
    	<div class="inc_top"><?php echo L("GOODS_ATTR");?></div>
        <div class="inc_mid clearfix">
        <table>
		<?php if(is_array($goods_info["only_attr_list"])): foreach($goods_info["only_attr_list"] as $key=>$attr_group): ?><tr>	
									<td><?php echo ($attr_group["attr_info"]["name_1"]); ?>：</td>
									<td>
										<?php if(is_array($attr_group["attr_value"])): foreach($attr_group["attr_value"] as $key=>$value_item): ?><?php if(is_array($value_item["value_list"])): foreach($value_item["value_list"] as $key=>$val): ?><a href="<?php echo ($val["url"]); ?>"><?php echo ($val["value"]); ?></a> &nbsp;&nbsp;<?php endforeach; endif; ?><?php endforeach; endif; ?>							
							</td>
							</tr><?php endforeach; endif; ?>
		</table>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <!-- end 商品固定属性 -->
       
    <!-- 商品详细描述 -->
    <div class="blank"></div>
    <div class="inc_03">
    	<div class="inc_top"><?php echo L("GOODS_DESC");?></div>
        <div class="inc_mid clearfix">
        <?php echo ($goods_info["goods_desc_1"]); ?>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <!-- end 商品详细描述 -->	
	<div class="blank"></div>   
	<div class="inc_03" >
    	<div class="inc_top"><?php echo L("GLOBAL_PROMOTE_LIST");?></div>
        <div class="inc_mid clearfix">
			<?php if(is_array($promote_list)): foreach($promote_list as $key=>$promote_item): ?><div class="promote_row"><?php echo ($promote_item["memo_1"]); ?> 
			<?php if($promote_item["is_card"] == 1): ?><span style="color:#f30;">[<?php echo L("PROMOTE_CARD");?>]</span><?php endif; ?>
			</div><?php endforeach; endif; ?>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
	
	<div class="blank"></div>  
	<div class="inc_03" id="rec_best">
    	<div class="inc_top"><?php echo L("IS_BEST");?></div>
        <div class="inc_mid clearfix">
			<div class="goods_list">
            	<?php if(is_array($relate_best_goods)): foreach($relate_best_goods as $key=>$goods_item): ?><div class="goods_item">
                	<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><img src="__ROOT__<?php echo ($goods_item["small_img"]); ?>" class="goods_img" alt="<?php echo ($goods_item["name_1"]); ?>"/></a>
                    <div class="goods_name"><a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><?php echo ($goods_item["short"]); ?></a></div>
              		<?php if(sunnyiC('IS_INQUIRY') != 1 and $goods_item['is_inquiry'] != 1): ?><span class="market_price"><?php echo ($goods_item["market_price_format"]); ?></span>&nbsp;&nbsp;
              		<?php if($goods_item['promote_begin_time'] < $time and $goods_item['promote_end_time'] > $time): ?><span class="shop_price"><?php echo ($goods_item["promote_price_format"]); ?> [<?php echo L("PROMOTE");?>]</span>
                	<?php else: ?>
                		<?php if($is_login): ?><span class="shop_price"><?php echo ($goods_item["member_price_format"]); ?></span>
                		<?php else: ?>
                		<span class="shop_price"><?php echo ($goods_item["shop_price_format"]); ?></span><?php endif; ?><?php endif; ?><?php endif; ?>
                </div><?php endforeach; endif; ?>
                
                
            </div><!--end goods_list-->
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <script type="text/javascript">
    	toggleTabs("#rec_best");
    </script>	
	<div class="blank"></div>    
	<div class="inc_03" id="rec_best">
    	<div class="inc_top"><?php echo L("IS_HOT");?></div>
        <div class="inc_mid clearfix">
			<div class="goods_list">
            	<?php if(is_array($relate_hot_goods)): foreach($relate_hot_goods as $key=>$goods_item): ?><div class="goods_item">
                	<a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><img src="__ROOT__<?php echo ($goods_item["small_img"]); ?>" class="goods_img" alt="<?php echo ($goods_item["name_1"]); ?>"/></a>
                    <div class="goods_name"><a href="<?php echo ($goods_item["url"]); ?>" title="<?php echo ($goods_item["name_1"]); ?>"><?php echo ($goods_item["short"]); ?></a></div>
              		<?php if(sunnyiC('IS_INQUIRY') != 1 and $goods_item['is_inquiry'] != 1): ?><span class="market_price"><?php echo ($goods_item["market_price_format"]); ?></span>&nbsp;&nbsp;
              		<?php if($goods_item['promote_begin_time'] < $time and $goods_item['promote_end_time'] > $time): ?><span class="shop_price"><?php echo ($goods_item["promote_price_format"]); ?> [<?php echo L("PROMOTE");?>]</span>
                	<?php else: ?>
                		<?php if($is_login): ?><span class="shop_price"><?php echo ($goods_item["member_price_format"]); ?></span>
                		<?php else: ?>
                		<span class="shop_price"><?php echo ($goods_item["shop_price_format"]); ?></span><?php endif; ?><?php endif; ?><?php endif; ?>
                </div><?php endforeach; endif; ?>
                
                
            </div><!--end goods_list-->
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <script type="text/javascript">
    	toggleTabs("#rec_best");
    </script>	
	<div class="blank"></div>    
        <script type="text/javascript">
   function refresh(obj)
   {
	   var timenow = new Date().getTime();
	   obj.src= '__ROOT__/?<?php echo c('VAR_MODULE');?>=Sunnyi&<?php echo c('VAR_ACTION');?>=verify&rand='+timenow;
   }
   </script>
   <div class="inc_03">
    	<div class="inc_top"><?php echo L("MESSAGE_LIST");?></div>
        <div class="inc_mid clearfix">
			<div class="message_list">
        	<?php if(is_array($message_list)): foreach($message_list as $key=>$message_item): ?><div class="message_item" style="padding:10px 0px; margin-bottom:10px;">
				<div class="user_msg">
        		<div class="message_title"><input type="hidden" value="<?php echo ($message_item["id"]); ?>" /> <span class="mainmsg">留言</span><span class="msg_title"> <?php echo ($message_item["title"]); ?> </span>  <?php if($message_item["is_top"] == 1): ?><span class="msgtop">&nbsp;</span><?php endif; ?> <span class="msgname"><?php echo ($message_item["user_name"]); ?></span> 说：<span class="msgtime">	<?php echo ($message_item["create_time_format"]); ?> </span> <a href="#message_form" class="msgreply" onclick="reply_message(this)"><?php echo L("REPLY");?></a></div>
        		<div class="blank5"></div>
        		<div class="message_content"><?php echo (nl2br($message_item["content"])); ?></div>
				</div>
        		<?php if($message_item['user_reply']): ?><div class="blank5"></div>
        		<div class="user_reply">
        		<?php if(is_array($message_item["user_reply"])): foreach($message_item["user_reply"] as $key=>$reply_item): ?><span class="replymsg">回复</span> <span class="message_title"><span class="msg_title"><?php echo ($reply_item["title"]); ?></span>  <span class="msgname"><?php echo ($reply_item["user_name"]); ?></span> 说：	<span class="msgtime"><?php echo ($reply_item["create_time_format"]); ?></span></span>
        			<div class="blank5"></div>
        			<div class="message_content"><?php echo (nl2br($reply_item["content"])); ?></div>
        			<div class="blank5"></div><?php endforeach; endif; ?>
        		</div><?php endif; ?>
        		<?php if($message_item['admin_reply']['id'] != 0): ?><div class="blank5"></div>
        		<div class="admin_reply">
        			<span class="replymsg">回复</span> <span class="message_title"><?php echo ($message_item["admin_reply"]["title"]); ?> <span class="msgtime"><?php echo ($message_item["admin_reply"]["create_time_format"]); ?></span></span>
        			<div class="blank5"></div>
        			<div class="message_content"><?php echo (nl2br($message_item["admin_reply"]["content"])); ?></div>
        			<div class="blank5"></div>
        		</div><?php endif; ?>
        	</div><?php endforeach; endif; ?>
     	   </div>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <div class="blank"></div>
    <div class="pages"><?php echo ($pages); ?></div>
    <div class="blank"></div>


   <form name="message" action="<?php echo ($POST_URL); ?>" id="message_form" method="post" />
    <div class="inc_03" <?php if($hide_msg_form): ?>style="display:none;"<?php endif; ?>>
    	<div class="inc_top"><?php echo L("SUBMIT_MESSAGE");?></div>
        <div class="inc_mid clearfix" style="padding:10px;">
			<table width=100%>
				<tr>
					<td><?php echo L("MESSAGE_USER");?>：</td>
					<td>
					<input type="hidden" value="<?php echo $_SESSION["user_id"];?>" name="user_id" />
					<?php if($is_login): ?><?php echo $_SESSION["user_name"];?>
					<input type="hidden" name="user_name" value="<?php echo $_SESSION["user_name"];?>" class="txt_require"/>
					<?php else: ?>
					<input type="text" name="user_name" class="txt_require" /><?php endif; ?>
					</td>
				</tr>
				<tr>
					<td><?php echo L("EMAIL");?>：</td>
					<td>
					<?php if($is_login): ?><?php echo $_SESSION["user_email"];?>
					<input type="hidden" name="user_email" value="<?php echo $_SESSION["user_email"];?>"/>
					<?php else: ?>
					<input type="text" name="user_email" class="txt_require"/><?php endif; ?>
					</td>
				</tr>
				<?php if($module_name == 'Article' or $module_name == 'Goods'): ?></if>
				<tr>
					<td><?php echo L("SCORE");?>：</td>
					<td>
					<label>1<?php echo L("FEN");?>：<input type="radio" name="score" value="1" /></label>
					<label>2<?php echo L("FEN");?>：<input type="radio" name="score" value="2" /></label>
					<label>3<?php echo L("FEN");?>：<input type="radio" name="score" value="3" /></label>
					<label>4<?php echo L("FEN");?>：<input type="radio" name="score" value="4" /></label>
					<label>5<?php echo L("FEN");?>：<input type="radio" name="score" value="5" checked="checked" /></label>
					</td>
				</tr><?php endif; ?>
				<tr>
					<td><?php echo L("MESSAGE_TITLE");?>：</td>
					<td><input type="text" name="title" id="message_title" class="txt_require" /><span id="message_title_span"></span></td>
				</tr>
				<tr>
					<td><?php echo L("MESSAGE_CONTENT");?>：</td>
					<td><textarea name="content" cols="50" rows="3" id="message_content" class="txt_require"></textarea></td>
				</tr>
				<?php if(sunnyiC('VERIFY_ON') == 1): ?><tr>
					<td><?php echo L("VERIFY_CODE");?>：</td>
					<td>
						<input type="text" name="verify" class="txt_require box" />
						<img id="verifyImg" SRC="__ROOT__/?<?php echo c('VAR_MODULE');?>=Sunnyi&<?php echo c('VAR_ACTION');?>=verify" onClick="refresh(this)" BORDER="0" ALT="<?php echo L("REFRESH_VERIFY_TIP");?>" style="cursor:pointer" align="absmiddle">
					</td>
				</tr><?php endif; ?>
				<tr>
					<td>
						<input type="hidden" name="rec_module" value="<?php echo ($module_name); ?>" />
						<input type="hidden" name="rec_id" value="<?php echo ($rec_id); ?>" />
						<input type="hidden" name="<?php echo c("VAR_MODULE");?>" value="Message" />
						<input type="hidden" name="<?php echo c("VAR_ACTION");?>" value="add" />
						<input type="hidden" name="pid" value="0" id="pid" />
					</td>
					<td><input type="submit" value="<?php echo L("SUBMIT");?>" /> <input type="button" value="<?php echo L("RESET");?>" onclick="reset_reply()" /></td>
				</tr>
			</table>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    <!-- end 商品详细描述 -->
    </form>

	
</div><!--end f_r-->
<div class="blank"></div>
</div><!--主体-->
<div class="wrap">
<div class="help_center clearfix">
<?php if(is_array($help_center)): foreach($help_center as $key=>$help_cate): ?><div class="inc_05">
    	<div class="inc_top"><a href="<?php echo ($help_cate["url"]); ?>"><?php echo ($help_cate["name_1"]); ?></a>

    	</div>
        <div class="inc_mid">
        	<ul class="list_01">
        	<?php if(is_array($help_cate["list"])): foreach($help_cate["list"] as $key=>$article_item): ?><li><a href="<?php echo ($article_item["url"]); ?>" class="f_l" title="<?php echo ($article_item["name_1"]); ?>"><?php echo ($article_item["short"]); ?></a>&nbsp;&nbsp; </li><?php endforeach; endif; ?>
            </ul>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2--><?php endforeach; endif; ?>
</div>
<div class="blank"></div>
<div class="help_center clearfix">
    	<div class="inc_top"><?php echo L("LINK");?>
    	<span class="more"><a href="<?php echo u("Link/index");?>"><?php echo L("MORE");?></a></span>
    	</div>
        <div class="inc_mid clearfix">
        	<div class="blank"></div>
        <div class="img_link">
		
		<?php if(is_array($links["img"])): foreach($links["img"] as $key=>$link): ?><a href="<?php echo ($link["url"]); ?>" target="_blank" title="<?php echo ($link["desc"]); ?>">
				<?php if($link['type'] == 1): ?><img src="__ROOT__<?php echo ($link["logo"]); ?>" alt="<?php echo ($link["name"]); ?>" width=88 height=31 />
				<?php else: ?>
				<img src="<?php echo ($link["logo"]); ?>" alt="<?php echo ($link["name"]); ?>" width=88 height=31 /><?php endif; ?>
			</a><?php endforeach; endif; ?>
		</div>
		<div class="blank"></div>
		<div class="txt_link">

		<?php if(is_array($links["txt"])): foreach($links["txt"] as $key=>$link): ?><a href="<?php echo ($link["url"]); ?>" target="_blank" title="<?php echo ($link["desc"]); ?>">
				<?php echo ($link["name"]); ?>
			</a><?php endforeach; endif; ?>
        </div>
        </div>
        <div class="inc_foot"></div>
</div><!--模块样式6-->

<div class="blank"></div>
	<div class="foot_nav">
    
        <div class="nav_main">
        	<ul class="f_l">
        		<?php if(is_array($foot_navs)): foreach($foot_navs as $key=>$nav): ?><li><a href="<?php echo ($nav["url"]); ?>" <?php if($nav["act"] == '1'): ?>class="act"<?php endif; ?>  target="<?php echo ($nav["target"]); ?>" ><?php echo ($nav["name_1"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
             <span class="f_r">
             	<span class="define_main_nav">
            	<a href="#" style="color:#666;"><?php echo L("TOP");?></a>
                </span>
            </span>
        </div><!--end nav_main-->

    </div><!--end main_nav-->
 <div class="blank"></div>
 
 <div class="blank"></div>
 <div class="foot_info">
 	<?php echo L("SYS_NAME");?>：<?php echo ($Sunnyi["name"]); ?> &nbsp;&nbsp;<?php echo L("SYS_VERSION");?>：<?php echo ($Sunnyi["version"]); ?><br /><?php echo L("SYS_COPYRIGHT");?>&copy; <?php echo ($Sunnyi["author"]); ?>
 </div>
</div>
</body>
</html>