<?php
require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Head_Shop_0.php');
require($tmpDefault->sysFileConfig['PathRoot'].'Cache/DbCache/Adv/Cache_0.php');

?>
<!-- ------ #Ssheet ------ -->
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Zone.css" rel="stylesheet" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Shop.css" rel="stylesheet" />

<!-- ------ #Jscript ------ -->
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Zone.js" type="text/javascript"></script>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Shop.js" type="text/javascript"></script>

<!-- ------ #Navigation ------ -->
<div class="OutFrame_A Navigation_0"><div><a href="../../../Plus/m_default/Cms/default.php" class="Link1 FBlack1">首页</a>
<span>>></span> <a href="../../../Plus/m_default/Shop/saleHome.php" class="Link1 FBlack1">商城首页</a>
<?php
$Coun0=count($tmpDefault->sNavigation)-2;
while ($Coun0>-1) { ?>
<span>>></span> <a href="../../../Plus/m_default/Shop/saleList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['shsgtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['shsgtName']); ?></a>
<?php $Coun0--; } ?>
<span>>></span> <a href="#Here" class="Link1 FBlack1"><?php echo($tmpDefault->sMetaTitle); ?></a></div></div>
<!-- ------ #Content ------ -->

<!-- ------ #Section 0 ------ -->
<div class="OutFrame_A">
<!-- ------ #0.0 ------ -->
<div class="ShopH_0_1"><?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_Shop_1.php'); ?></div>
<!-- ------ #0.1 ------ -->
<div class="ShopH_0_9">
<!-- ### -->
<div class="ShopH_0_20"><?php echo($sysCmsadvData['Shopsale_HomeLeft_EA']); ?></div>
<!-- ### -->
<table class="ShopH_0_21" cellpadding="0" cellspacing="1">
<tr><td class="ShopH_0_22"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/36.jpg" /></td><td class="ShopH_0_23">
<div class="ShopH_0_24">
<a href="#" class="Link1 FBlack2">特卖</a><span>|</span>
<a href="#" class="Link1 FBlack2">新品</a><span>|</span>
<a href="#" class="Link1 FBlack2">热销</a><span>|</span>

</div>
<ul class="ShopH_0_25">
<?php
$tmpParid=5;
$tmpSQL=' SELECT A.shbtID,A.shbtName
	FROM {Nets.TableHead}shopbrand AS A
	WHERE 1=1 AND A.shbtRecycle=0 AND A.shbtChecked>1 AND A.shbtParid={Nets.Parid}
	ORDER BY A.shbtOrderBy DESC,A.shbtID DESC LIMIT 0,12 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_26"><a href="#?ID=<?php echo($Row0['shbtID']); ?>" class="Link1 FBlack2"><?php echo($Row0['shbtName']); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
</td></tr>
<tr><td class="ShopH_0_22"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/37.jpg" /></td><td class="ShopH_0_23">
<div class="ShopH_0_24">
<a href="#" class="Link1 FBlack2">特卖</a><span>|</span>
<a href="#" class="Link1 FBlack2">新品</a><span>|</span>
<a href="#" class="Link1 FBlack2">热销</a><span>|</span>

</div>
<ul class="ShopH_0_25">
<?php
$tmpParid=4;
$tmpSQL=' SELECT A.shbtID,A.shbtName
	FROM {Nets.TableHead}shopbrand AS A
	WHERE 1=1 AND A.shbtRecycle=0 AND A.shbtChecked>1 AND A.shbtParid={Nets.Parid}
	ORDER BY A.shbtOrderBy DESC,A.shbtID DESC LIMIT 0,12 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_26"><a href="#?ID=<?php echo($Row0['shbtID']); ?>" class="Link1 FBlack2"><?php echo($Row0['shbtName']); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
</td></tr>
</table>

</div>
<!-- ------ #0.2 ------ -->
<div class="ShopH_0_10">
<!-- ### -->
<ul class="Shop_Title_1">
<li class="Shop_Title_2"><a href="../../../Plus/m_default/Shop/saleList.php" class="Link1 FBlack2">促销活动</a></li>
<li class="Shop_Title_4"><a href="../../../Plus/m_default/Shop/saleList.php"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/27_B.jpg" /></a></li>

<li class="DClear"></li></ul>
<div class="ShopH_0_15">
<div class="Margin_Top"><a href="#"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/Icon_0.jpg" /></a></div>
<div class="Margin_Top"><a href="#"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/Icon_1.jpg" /></a></div>
<div class="ShopH_0_16"><a href="#"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/Icon_2.jpg" /></a></div>

<div class="ShopH_0_17"><a href="#" class="Link1 FBlack2">我爱“兴”支付：京东礼品卡、iPad</a></div>
<div class="ShopH_0_17"><a href="#" class="Link1 FBlack2">威宝十月记忆“低价”放送</a></div>
<div class="ShopH_0_17"><a href="#" class="Link1 FBlack2">“一生一石”天然晶石超低</a></div>

</div>
<!-- ### -->
<div class="ShopH_0_18"><?php echo($sysCmsadvData['Shopsale_HomeLeft_E']); ?></div>

</div>

<div class="DClear"></div></div>

<!-- ------ #Section 1 ------ -->
<div class="OutFrame_A Margin_Top">
<!-- ------ #1.0 ------ -->
<div class="ShopH_0_31">
<div class="ShopH_0_32"><?php echo($sysCmsadvData['Shopsale_HomeLeft_A']); ?></div>
<div class="ShopH_0_32 Margin_Top"><?php echo($sysCmsadvData['Shopsale_HomeLeft_B']); ?></div>
<div class="ShopH_0_32 Margin_Top"><?php echo($sysCmsadvData['Shopsale_HomeLeft_C']); ?></div>
<div class="ShopH_0_32 Margin_Top"><?php echo($sysCmsadvData['Shopsale_HomeLeft_D']); ?></div>

</div>
<!-- ------ #1.1 ------ -->
<div class="ShopH_0_33">
<ul class="ShopH_0_34">
<?php
$tmpParid=2;
$tmpSQL=' SELECT A.shsgtID,A.shsgtName,A.shsgtParid
	FROM {Nets.TableHead}shopsalegroup AS A
	WHERE 1=1 AND A.shsgtRecycle=0 AND A.shsgtChecked>1 AND A.shsgtParid={Nets.Parid}
	ORDER BY A.shsgtOrderBy DESC,A.shsgtID DESC ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li id="tab0_Button_<?php echo($Coun0); ?>" onmouseover="tmpShop.OnTab_0(<?php echo($Coun0); ?>);" class="ShopH_0_36"><a href="../../../Plus/m_default/Shop/saleList.php?ID=<?php echo($Row0['shsgtID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['shsgtName']); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
<?php
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<ul id="tab0_Box_<?php echo($Coun0); ?>" class="ShopH_0_37">
<?php
$tmpChildidAR0=$tmpDefault->sDb->getChild($Row0['shsgtID'],$tmpDefault->sysTableHead.'shopsalegroup','shsgt');
$tmpSQL=' SELECT A.shstID,A.shstName,A.shstNameStyle,A.shstPrice,B.shsctPrice0,B.shsctDiscount0,B.shsctSourceR00
	FROM {Nets.TableHead}shopsale AS A
	INNER JOIN {Nets.TableHead}shopsalecont AS B ON B.shsctIndexID=A.shstID
	WHERE 1=1 AND A.shstRecycle=0 AND A.shstChecked>1 AND (1=2 {Nets.Parid})
	ORDER BY A.shstOrderBy DESC,A.shstID DESC LIMIT 0,10 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR_0='';
foreach ($tmpChildidAR0 as $Cell){
	$tmpSTR_0.=' OR A.shstParid='.$Cell.' ';
}
$tmpSTR=str_replace('{Nets.Parid}',$tmpSTR_0,$tmpSTR);
$tmpData1=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach($tmpData1 as $Row1){ ?>
<li class="ShopH_0_38">
<div class="ShopH_0_39"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row1['shstID']); ?>" target="_blank"><img src="<?php echo($Row1['shsctSourceR00']); ?>" class="Shop_Img" /></a></div>
<div class="ShopH_0_40"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row1['shstID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row1['shstName']); ?></a></div>
<div class="ShopH_0_41"><span class="ShopH_0_74">￥<?php echo($Row1['shsctPrice0']); ?></span><span class="ShopH_0_75">￥<?php echo($Row1['shstPrice']); ?></span><span class="ShopH_0_76">(<?php echo($Row1['shsctDiscount0']); ?>折)</span></div>
</li>
<?php $Coun1++; } ?>
<li class="DClear"></li></ul>
<?php $Coun0++; } ?>

</div>

<div class="DClear"></div></div>


<!-- ------ #Section 2 ------ -->
<div class="OutFrame_A Margin_Top">
<ul class="Shop_Title_6">
<li class="Shop_Title_7"><a href="../../../Plus/m_default/Shop/saleList.php" class="Link1 FBlack2">热门商品</a></li>
<li class="Shop_Title_8"><a href="../../../Plus/m_default/Shop/saleList.php" class="Link1 FBlack2">更多商品>></a></li>

<li class="DClear"></li></ul>
<ul class="Shop_Box_2">
<?php
$tmpSQL=' SELECT A.shstID,A.shstName,A.shstNameStyle,A.shstPrice,B.shsctPrice0,B.shsctDiscount0,B.shsctSourceR00
	FROM {Nets.TableHead}shopsale AS A
	INNER JOIN {Nets.TableHead}shopsalecont AS B ON B.shsctIndexID=A.shstID
	WHERE 1=1 AND A.shstRecycle=0 AND A.shstChecked>1
	ORDER BY A.shstOrderBy DESC,A.shstID DESC LIMIT 0,5 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$Row0['shsgtID'],$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_71">
<div class="ShopH_0_72"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row0['shstID']); ?>" target="_blank"><img src="<?php echo($Row0['shsctSourceR00']); ?>" class="Shop_Img" /></a></div>
<div class="ShopH_0_73"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row0['shstID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['shstName']); ?></a><br />
	<span class="ShopH_0_74">￥<?php echo($Row0['shsctPrice0']); ?></span><span class="ShopH_0_75">￥<?php echo($Row0['shstPrice']); ?></span><span class="ShopH_0_76">(<?php echo($Row0['shsctDiscount0']); ?>折)</span></div>
</li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
</div>


<!-- ------ #Section 3 ------ -->
<div class="OutFrame_A Margin_Top">
<!-- ------ #3.0 ------ -->
<div class="ShopH_0_45">
<!-- ### -->
<ul class="Shop_Title_1">
<li class="Shop_Title_2"><a href="#Here" class="Link1 FBlack2">用户最新评价</a></li>
<li class="Shop_Title_3"><a href="#Here" class="Link1 FBlack2">更多>></a></li>
<li class="DClear"></li></ul>
<ul class="Shop_Box_1">
<?php
$tmpSQL=' SELECT A.shsdtID,A.shsdtName,B.shsdctContent,B.shsdctPublisher_Name,C.shstID,C.shstName
	FROM {Nets.TableHead}shopsalediscuss AS A
	INNER JOIN {Nets.TableHead}shopsalediscusscont AS B ON B.shsdctIndexID=A.shsdtID
	INNER JOIN {Nets.TableHead}shopsale AS C ON C.shstID=A.shsdtParid
	WHERE 1=1 AND A.shsdtRecycle=0 AND A.shsdtChecked>1 AND C.shstRecycle=0 AND C.shstChecked>1
	ORDER BY A.shsdtOrderBy DESC,A.shsdtID DESC LIMIT 0,8 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_48">
<div class="ShopH_0_49"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/26.jpg" /></div>
<div class="ShopH_0_50"><a href="#Here" class="Link1 FBlack2"><?php echo($Row0['shsdctContent']); ?></a></div>
<div class="DClear"></div></li>
<?php $Coun0++; } ?>
</ul>
<!-- ### -->
<ul class="Shop_Title_1 Margin_Top">
<li class="Shop_Title_2"><a href="../../../Plus/m_default/Cms/docList.php" class="Link1 FBlack2">商城帮助</a></li>
<li class="Shop_Title_3"><a href="../../../Plus/m_default/Cms/docList.php" class="Link1 FBlack2">更多>></a></li>
<li class="DClear"></li></ul>
<ul class="Shop_Box_1">
<?php
$tmpParid=0;
$tmpSQL=' SELECT A.cdtID,A.cdtName,A.cdtNameStyle
	FROM {Nets.TableHead}cmsdoc AS A
	WHERE 1=1 AND A.cdtRecycle=0 AND A.cdtChecked>1 AND A.cdtParid={Nets.Parid}
	ORDER BY A.cdtOrderBy DESC,A.cdtID DESC LIMIT 0,8 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_48">
<div class="ShopH_0_49"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/26.jpg" /></div>
<div class="ShopH_0_50"><a href="../../../Plus/m_default/Cms/docDetail.php?ID=<?php echo($Row0['cdtID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['cdtName']); ?></a></div>
<div class="DClear"></div></li>
<?php $Coun0++; } ?>
</ul>

</div>
<!-- ------ #3.1 ------ -->
<div class="ShopH_0_46">
<!-- ### -->
<ul class="Shop_Title_1">
<li class="Shop_Title_2"><a href="../../../Plus/m_default/Shop/saleList.php" class="Link1 FBlack2">打折商品</a></li>
<li class="Shop_Title_3"><a href="../../../Plus/m_default/Shop/saleList.php" class="Link1 FRed1">更多>></a></li>
<li class="DClear"></li></ul>
<ul class="Shop_Box_1">
<?php
$tmpSQL=' SELECT A.shstID,A.shstName,A.shstNameStyle,A.shstPrice,A.shstCreateTime,
	B.shsctPrice0,B.shsctDiscount0,B.shsctSourceR00,B.shsctContent
	FROM {Nets.TableHead}shopsale AS A
	INNER JOIN {Nets.TableHead}shopsalecont AS B ON B.shsctIndexID=A.shstID
	WHERE 1=1 AND A.shstRecycle=0 AND A.shstChecked>1
	ORDER BY A.shstOrderBy DESC,A.shstID DESC LIMIT 0,10 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_55"><div class="ShopH_0_60">
<div class="ShopH_0_56"><img src="<?php echo($Row0['shsctSourceR00']); ?>" /></div>
<div class="ShopH_0_57">
<div class="ShopH_0_58"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row0['shstID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['shstName']); ?></a></div>
<div class="ShopH_0_59"><!--<span><?php echo($tmpDefault->sCode->SubString($tmpDefault->sCode->FilterHTML($Row0['shsctContent'],'',0),0,42)); ?></span>--><span><?php echo($tmpDefault->sCode->TimeFormat($Row0['shstCreateTime'],0)); ?></span></div>
</div>
<div class="DClear"></div></div></li>
<?php $Coun0++; } ?>
</ul>



</div>
<!-- ------ #3.2 ------ -->
<div class="ShopH_0_47">
<!-- ### -->
<ul class="Shop_Title_1">
<li class="Shop_Title_2"><a href="../../../Plus/m_default/Groupsale/groupsaleHome.php" class="Link1 FBlack2">团购活动</a></li>
<li class="Shop_Title_4"><a href="../../../Plus/m_default/Groupsale/groupsaleHome.php"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/27_B.jpg" /></a></li>

<li class="DClear"></li></ul>
<ul class="Shop_Box_1">
<?php
$tmpSQL=' SELECT A.gstID,A.gstName,A.gstNameStyle,A.gstCreateTime,A.gstPrice,B.gsctSourceR00
	FROM {Nets.TableHead}groupsale AS A
	INNER JOIN {Nets.TableHead}groupsalecont AS B ON B.gsctIndexID=A.gstID
	WHERE 1=1 AND A.gstRecycle=0 AND A.gstChecked>1
	ORDER BY A.gstOrderBy DESC,A.gstID DESC LIMIT 0,4 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="ShopH_0_62"><div class="ShopH_0_65">
<div class="ShopH_0_63"><a href="../../../Plus/m_default/Groupsale/groupsaleDetail.php?ID=<?php echo($Row0['gstID']); ?>" target="_blank"><img src="<?php echo($Row0['gsctSourceR00']); ?>" /></div>
<div class="ShopH_0_64">
	<a href="../../../Plus/m_default/Groupsale/groupsaleDetail.php?ID=<?php echo($Row0['gstID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['gstName']); ?></a><br />
	<span class="FStrong FBlack2">价格：</span><span class="FBlack3"><?php echo($Row0['gstPrice']); ?></span></div>
<div class="DClear"></div></div></li>
<?php $Coun0++; } ?>
</ul>



</div>


<div class="DClear"></div></div><br />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpZone=new Zone();
tmpZone.sFlag="Shop";
var tmpShop=new Shop();
tmpShop.OnNavigation(0);
tmpShop.OnTab_0(0);

</script>
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/End_Shop_0.php'); ?>