<!-- ------ #Menu ------ -->
<!-- ------ #Group ------ -->
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_Shop_1.php'); ?>
<!-- #Same group -->
<ul class="Shop_Title_1 Margin_Top">
<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>
<ul class="Shop_Box_1">
<?php
$tmpParid=0;
$tmpChildidAR0=$tmpDefault->sDb->getChild($tmpMenuParid,$tmpDefault->sysTableHead.'shopsalegroup','shsgt');
$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 AND (1=2 {Nets.Parid})
	ORDER BY A.shstOrderBy DESC,A.shstID DESC LIMIT 0,5 ';
$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);
$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_0">
<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>

<!-- #Same price -->
<ul class="Shop_Title_1 Margin_Top">
<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>
<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 AND A.shstPrice<{Nets.PriceMax} AND A.shstPrice>{Nets.PriceMin}
	ORDER BY A.shstOrderBy DESC,A.shstID DESC LIMIT 0,5 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.PriceMax}',$tmpMenuPrice+500,$tmpSTR);
$tmpSTR=str_replace('{Nets.PriceMin}',$tmpMenuPrice-500,$tmpSTR);
$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_0">
<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>

<!-- #Groupsale -->
<ul class="Shop_Title_1 Margin_Top">
<li class="Shop_Title_2"><a href="../../../Plus/m_default/Groupsale/groupsaleHome.php" class="Link1 FBlack2" target="_blank">团购活动</a></li>
<li class="Shop_Title_4"><a href="../../../Plus/m_default/Groupsale/groupsaleHome.php" target="_blank"><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_0">
	<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>


