<?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/Order.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/Order.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/auctionList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['shagtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['shagtName']); ?></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">
<?php if(count($tmpDefault->sDetailData)>0){ ?>
<!-- #Title -->
<h1 class="Auction_4_1"><?php echo ($tmpDefault->sDetailData[0]['shatName']); ?></h1>
<input id="Order_0_ID_Txt" name="Order_0_ID_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shstID']); ?>" type="hidden" />
<input id="Order_0_Count_Txt" name="Order_0_Count_Txt" value="1" type="hidden" />
<!--<input id="Order_0_Price_Txt" name="Order_0_Price_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shstPrice']); ?>" type="hidden" />-->
<input id="Order_0_Price_Txt" name="Order_0_Price_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shatPrice']); ?>" type="hidden" />

<input id="Order_0_Code_Txt" name="Order_0_Code_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shstCode']); ?>" type="hidden" />
<input id="Order_0_Activeid_Txt" name="Order_0_Activeid_Txt" value="0" type="hidden" />
<input id="Order_0_Parentid_Txt" name="Order_0_Parentid_Txt" value="0" type="hidden" />
<input id="Order_0_Type_Txt" name="Order_0_Type_Txt" value="1" type="hidden" />
<input id="Order_0_Parameters_Txt" name="Order_0_Parameters_Txt" value="" type="hidden" />
<input id="Order_0_Parameters_Controls_Txt" name="Order_0_Parameters_Controls_Txt" value="" type="hidden" />

<input id="AuctionTime_Endtime" name="AuctionTime_Endtime" value="<?php echo ($tmpDefault->sDetailData[0]['shactInfo_Endtime']); ?>" type="hidden" />


<!-- #Detail -->
<table class="Auction_4_2" cellpadding="0" cellspacing="0"><tr>
<td class="Auction_4_3"><a href="#Here"><img src="<?php echo ($tmpDefault->sDetailData[0]['shactSourceR00']); ?>" /></a></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class="Auction_4_4"><table class="Auction_4_5"><tr>

<td class="Auction_4_6">编号：</td><td class="Auction_4_7"><?php echo ($tmpDefault->sDetailData[0]['shatNumCode']); ?></td>
<td class="Auction_4_6">类型：</td><td class="Auction_4_7"><?php foreach($tmpDefault->sType1 as $Row0){ if($tmpDefault->sDetailData[0]['shatType']==$Row0['Value']){ echo($Row0['Text']); } } ?></td>
</tr><tr>
<td class="Auction_4_6">使用状态：</td><td class="Auction_4_7"><?php foreach($tmpDefault->sInfo_State1 as $Row0){ if($tmpDefault->sDetailData[0]['shactInfo_State']==$Row0['Value']){ echo($Row0['Text']); } } ?></td>
<td class="Auction_4_6">商城价格：</td><td class="Auction_4_7">￥<?php echo ($tmpDefault->sDetailData[0]['shstPrice']); ?></td>


</tr></table>
<!-- #Introduct -->
<div class="Auction_4_8"><?php echo ($tmpDefault->sDetailData[0]['shactIntroduct']); ?></div>
<!-- #Button -->
<?php if($tmpDefault->sDetailData[0]['shatType']==0){ ?>
<div class="Auction_4_9">
<div class="Auction_4_10">一口价：￥<?php echo ($tmpDefault->sDetailData[0]['shatPrice']); ?></div>

<div class="Auction_4_12"><a href="#Here" onclick="tmpOrder.OnOrder_Submit(0,0);" class="Link2 FWhite1">购买</a></div>
<div class="DClear"></div></div>
<?php } ?>

</td>
</tr></table><br />
<!-- #Auction -->
<?php if($tmpDefault->sDetailData[0]['shatType']==1){ ?>
<div class="Auction_5_1">
<!-- ### -->
<div id="auctionData" class="Auction_5_2">
<table class="Auction_5_4" cellpadding="0" cellspacing="0"><tr>
<td class="Auction_5_5">出价人</td>
<td class="Auction_5_5">价格</td>
<td class="Auction_5_5">时间</td>
</tr></table>
<div class="Auction_5_8_0"><div class="Auction_5_8"><table class="Auction_5_9" cellpadding="0" cellspacing="0">
<?php
$Coun0=0;
foreach($tmpDefault->sData_Bid as $Row0){ ?>
<tr>
<td class="Auction_5_10"><?php echo($Row0['shadctPublisher_Name']); ?></td>
<td class="Auction_5_11">￥<?php echo($Row0['shadtPrice']); ?></td>
<td class="Auction_5_12"><?php echo($Row0['shadtCreateTime']); ?></td>
</tr>
<?php $Coun0++; } ?>
</table></div></div>
</div>
<!-- ### -->
<div class="Auction_5_3">
<table class="Auction_5_15" cellpadding="0" cellspacing="0"><tr>
<td class="Auction_5_16">现价：</td><td class="Auction_5_17" colspan="3">￥<span id="auctionPrice"><?php echo ($tmpDefault->sDetailData[0]['shatPrice']); ?></span></td>
</tr><tr>
<td class="Auction_5_16">离开始还有：</td><td class="Auction_5_18" colspan="3">
<span id="AuctionTime_0_Day">1</span>天
<span id="AuctionTime_0_Hour">1</span>小时
<span id="AuctionTime_0_Min">1</span>分钟
<span id="AuctionTime_0_Seconds">1</span>秒</td>
</tr><tr>
<td colspan="4"><table class="" cellpadding="0" cellspacing="0"><tr>
<td class=""><input id="shadtPriceTxt" name="shadtPriceTxt" value="<?php echo ($tmpDefault->sDetailData[0]['shatPrice']+$tmpDefault->sDetailData[0]['shactInfo_UpdatePrice']); ?>" type="text" class="SControl1 ControlText" onclick="tmpControl.onControlLight(this,'ControlText');" onblur="tmpControl.onControlBlur(this,'ControlText');" /></td><td>&nbsp;&nbsp;</td>
<td class=""><div class="Auction_4_12"><a href="#Here" onclick="tmpCommon.setActionType('','DBid','','ID=<?php echo($tmpDefault->sMainID); ?>'); tmpCommon.netsSubmit();" class="Link2 FWhite1">出价</a></div></td>

</tr></table></td>
</tr><tr>
<td class="Auction_5_19" colspan="4">&nbsp;</td>
</tr><tr>
<td class="Auction_5_16">是否申请：</td><td class="Auction_5_20">不需要</td>
<td class="Auction_5_16">拍卖间隔：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_TimeSplit']); ?></td>
</tr><tr>
<td class="Auction_5_16">起拍价：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_StartPrice']); ?>元</td>
<td class="Auction_5_16">最低加价：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_UpdatePrice']); ?>元</td>
</tr><tr>
<td class="Auction_5_16">最高加价：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_EndPrice']); ?>元</td>
<td class="Auction_5_16">持续时间：</td><td id="" class="Auction_5_20">0</td>
</tr><tr>
<td class="Auction_5_16">起始时间：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_Starttime']); ?></td>
<td class="Auction_5_16">结束时间：</td><td class="Auction_5_20"><?php echo ($tmpDefault->sDetailData[0]['shactInfo_Endtime']); ?></td>


</tr></table>
</div>
<div class="DClear"></div></div><br />
<?php } ?>
<!-- #Info -->
<!-- ### -->
<ul class="Auction_Title_7 Margin_Top">
<li class="Auction_Title_8"><a href="../../../Plus/m_default/Shop/auctionList.php" class="Link1 FBlue3">详细说明</a></li>
<li class="DClear"></li></ul>
<div class="Auction_4_13"><?php echo ($tmpDefault->sDetailData[0]['shactContent']); ?></div>





<?php }else{ ?>
<div class="Error_51"><br /><br /><br /><br /><br /><br /><br />
<div class="Error_52">您所查看的拍卖商品并不存在。</div>
<div class="Error_53">您所查看的拍卖商品并不存在，您可以查看其它拍卖商品：<br />
	<?php foreach ($tmpDefault->sOtherData as $Row0){ ?>
	<a href="../../../Plus/m_default/Shop/auctionDetail.php?ID=<?php echo ($Row0['shatID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['shatName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['shatCreateTime'],0)); ?></span><br />
	<?php } ?></div>
<br /><br /><br /><br /><br /><br /><br /></div>
<?php } ?>
</div>
<div class="DClear"></div></div><br />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpZone=new Zone();
tmpZone.sFlag="Shop";
var tmpShop=new Shop();
var tmpOrder=new Order();
var tmpAuction=new Auction();
tmpAuction.sRefresh_Timespan=<?php echo($tmpDefault->sCode->TimeToInt(date($tmpDefault->sysTimeFormat))); ?>;
tmpAuction.sRefresh_URL="<?php echo($tmpDefault->sURL_Cache); ?>";
tmpAuction.sRefreshData_URL="<?php echo($tmpDefault->sysPage.'?ActionType=Bid_Data&Bid_Data='.$tmpDefault->sMainID); ?>";
tmpAuction.sTimeboxs="0";
//-- ------ # ------ --
<?php $tmpDefault->sTimecallbackDefined=1; ?>
var tmpTimeIndex_0=0;
var tmpTimeIndex_1=0;

function netsTime_callback(){
	if(tmpTimeIndex_0==100){
		tmpAuction.OnRefresh();
		tmpTimeIndex_0=0;
	}
	if(tmpTimeIndex_1==10){
		tmpAuction.OnTimerun();
		tmpTimeIndex_1=0;
	}
	
	tmpTimeIndex_0++;
	tmpTimeIndex_1++;
	tmpFrames.hiddenContent();
}



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