<?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/SOrder.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/SOrder.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>
<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- ------ #Menu ------ -->
<div class="SOrder_M Margin_Top">
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_SOrder_0.php'); ?>
</div>
<!-- ------ #Center ------ -->
<div class="SOrder_C Margin_Top">
<?php if(count($tmpDefault->sDetailData)>0){ ?>
<!-- #Title -->
<h1 class="SOrder_4_1"><?php echo ($tmpDefault->sDetailData[0]['shsotName']); ?></h1>
<table class="SOrder_4_5"><tr>

<td class="SOrder_4_6">编号：</td><td class="SOrder_4_7"><?php echo ($tmpDefault->sDetailData[0]['shsotNumCode']); ?></td>
<td class="SOrder_4_6">类型：</td><td class="SOrder_4_7"><?php foreach($tmpDefault->sState2 as $Row0){ if($tmpDefault->sDetailData[0]['shsotState']==$Row0['Value']){ echo($Row0['Text']); } } ?></td>
</tr><tr>
<td class="SOrder_4_6">总价格：</td><td class="SOrder_4_7">￥<?php echo ($tmpDefault->sDetailData[0]['shsotTotalPrice']); ?></td>
<td class="SOrder_4_6">总积分：</td><td class="SOrder_4_7"><?php echo ($tmpDefault->sDetailData[0]['shsotTotalCode']); ?></td>
</tr><tr>
<td class="SOrder_4_6">订购时间：</td><td class="SOrder_4_7">￥<?php echo ($tmpDefault->sDetailData[0]['shsotCreateTime']); ?></td>
<td class="SOrder_4_6">送货地址：</td><td class="SOrder_4_7"><?php echo ($tmpDefault->sDetailData[0]['shsoctReceiveaddressContent']); ?></td>


</tr></table><br />
<!-- #Sales -->
<div class="SOrder_4_13">订购内容：</div>
<ul class="">
<?php
$tmpSQL=' SELECT A.shstID,A.shstName,A.shstPrice,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.IDS})
	ORDER BY A.shstID DESC ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpAR1=explode($tmpDefault->sysSPLIT5,$tmpDefault->sDetailData[0]['shsoctSales']);
$tmpSTR_0='';
foreach($tmpAR1 as $Row1){
	$tmpAR2=explode($tmpDefault->sysSPLIT2,$Row1);
	if(count($tmpAR2)==9){
		$tmpSTR_0.=' OR A.shstID='.$tmpAR2[0];
	}
}
$tmpSTR=str_replace('{Nets.IDS}',$tmpSTR_0,$tmpSTR);
$tmpData1=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach($tmpData1 as $Row1){ ?>
<li class="SOrder_4_8">
<div class="SOrder_4_9"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row1['shstID']); ?>" target="_blank"><img src="<?php echo($Row1['shsctSourceR00']); ?>" /></a></div>
<div class="SOrder_4_10"><?php echo($Row1['shstPrice']); ?></div>
<div class="SOrder_4_11"><a href="../../../Plus/m_default/Shop/saleDetail.php?ID=<?php echo($Row1['shstID']); ?>" class="Link3 FBlue3" target="_blank"><?php echo($Row1['shstName']); ?></a></div>
</li>
<?php $Coun1++; } ?>
<li class="DClear"></li></ul><br />
<!-- #Introduct -->
<div class="SOrder_4_13">详细说明：</div>
<div class="SOrder_4_12"><?php echo ($tmpDefault->sDetailData[0]['shsoctIntroduct']); ?></div><br />


<?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/orderDetail.php?ID=<?php echo ($Row0['shsotID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['shsotName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['shsotCreateTime'],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 tmpSOrder=new SOrder();



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