<?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" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Auction.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>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Auction.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/auctionHome.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>
<!-- ------ #ADV ------ -->
<div class="OutFrame_A"><a href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Uploadfiles/m_sale/island_03.jpg" /></a></div>
<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- ------ #Menu ------ -->
<div class="Auction_M Margin_Top">
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_Auction_0.php'); ?>
</div>
<!-- ------ #Center ------ -->
<div class="Auction_C Margin_Top">
<!-- ### -->
<ul class="Auction_Title_3">
<li class="Auction_Title_4"><a href="../../../Plus/m_default/Shop/auctionList.php" class="Link1 FWhite1">折扣区</a></li>
<?php
$tmpParid=2;
$tmpSQL=' SELECT A.shagtID,A.shagtName,A.shagtNameStyle
	FROM {Nets.TableHead}shopauctiongroup AS A
	WHERE 1=1 AND A.shagtRecycle=0 AND A.shagtChecked>1 AND A.shagtParid={Nets.Parid}
	ORDER BY A.shagtOrderBy DESC,A.shagtID 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 id="mainTab_A_Button_<?php echo($Coun0); ?>" class="Auction_Title_6"><a href="#Here" onclick="tmpAuction.OnTab_A('A',<?php echo($Coun0); ?>);" class="Link2 FWhite1"><?php echo($Row0['shagtName']); ?></a></li>
<?php $Coun0++; }?>
<li class="DClear"></li></ul>
<?php
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<ul id="mainTab_A_Box_<?php echo($Coun0); ?>" class="Auction_Box_3 DHidden">
<?php
$tmpSQL=' SELECT A.shatID,A.shatName,A.shatNameStyle,A.shatPrice,A.shatType,
	B.shactSourceR00
	FROM {Nets.TableHead}shopauction AS A
	INNER JOIN {Nets.TableHead}shopauctioncont AS B ON B.shactIndexID=A.shatID
	WHERE 1=1 AND A.shatRecycle=0 AND A.shatChecked>1 AND A.shatParid={Nets.Parid}
	ORDER BY A.shatOrderBy DESC,A.shatID DESC LIMIT 0,4 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$Row0['shagtID'],$tmpSTR);
$tmpData1=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach($tmpData1 as $Row1){ ?>
<li class="Auction_3_1">
<div class="Auction_3_2"><a href="../../../Plus/m_default/Shop/auctionDetail.php?ID=<?php echo($Row1['shatID']); ?>" target="_blank"><img src="<?php echo($Row1['shactSourceR00']); ?>" /></a></div>
<div class="Auction_3_3"><a href="../../../Plus/m_default/Shop/auctionDetail.php?ID=<?php echo($Row1['shatID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row1['shatName']); ?></a></div>
<div class="Auction_3_4"><?php if($Row1['shatType']==1){ ?>拍卖<?php }else{ ?>一口价<?php } ?>：￥<?php echo($Row1['shatPrice']); ?></div>
</li>
<?php $Coun1++; }?>
<li class="DClear"></li></ul>
<?php $Coun0++; }?>
<!-- ### -->
<ul class="Auction_Title_7 Margin_Top">
<?php
$tmpAR0=array(
	array('全部',-1),
	array('一口价',0),
	array('拍卖',1),
	);
$Coun0=0;
foreach($tmpAR0 as $Row0){ ?>
<li id="mainTab_B_Button_<?php echo($Coun0); ?>" class="Auction_Title_9"><a href="#Here" onclick="tmpAuction.OnTab_B('B',<?php echo($Coun0); ?>);" class="Link2 FBlue3"><?php echo($Row0[0]); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
<?php
$Coun0=0;
foreach($tmpAR0 as $Row0){ ?>
<ul id="mainTab_B_Box_<?php echo($Coun0); ?>" class="Auction_Box_3 DHidden">
<?php
$tmpSQL=' SELECT A.shatID,A.shatName,A.shatNameStyle,A.shatPrice,A.shatType,
	B.shactSourceR00
	FROM {Nets.TableHead}shopauction AS A
	INNER JOIN {Nets.TableHead}shopauctioncont AS B ON B.shactIndexID=A.shatID
	WHERE 1=1 AND A.shatRecycle=0 AND A.shatChecked>1 ';
if($Row0[1]!=-1){
	$tmpSQL.=' AND A.shatType='.$Row0[1];
}
$tmpSQL.=' ORDER BY A.shatOrderBy DESC,A.shatID DESC LIMIT 0,12 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData1=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach($tmpData1 as $Row1){ ?>
<li class="Auction_3_1">
<div class="Auction_3_2"><a href="../../../Plus/m_default/Shop/auctionDetail.php?ID=<?php echo($Row1['shatID']); ?>" target="_blank"><img src="<?php echo($Row1['shactSourceR00']); ?>" /></a></div>
<div class="Auction_3_3"><a href="../../../Plus/m_default/Shop/auctionDetail.php?ID=<?php echo($Row1['shatID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row1['shatName']); ?></a></div>
<div class="Auction_3_4"><?php if($Row1['shatType']==1){ ?>拍卖<?php }else{ ?>一口价<?php } ?>：￥<?php echo($Row1['shatPrice']); ?></div>
</li>
<?php $Coun1++; } ?>
<li class="DClear"></li></ul>
<?php $Coun0++; } ?>



</div>
<div class="DClear"></div></div><br />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpZone=new Zone();
tmpZone.sFlag="Shop";
var tmpShop=new Shop();
var tmpAuction=new Auction();
tmpAuction.OnTab_A("A",0);
tmpAuction.OnTab_B("B",0);

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